summaryrefslogtreecommitdiffstats
path: root/net/irda/Makefile
blob: 3ab07c88dec90f886f0979fef445a93dd0edc855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#
# Makefile for the Linux IrDA protocol layer.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definition is now in the main makefile...

ALL_SUB_DIRS := irlan irnet ircomm compressors
SUB_DIRS :=
MOD_SUB_DIRS :=
OX_OBJS :=

O_TARGET := irda.o
O_OBJS	 := iriap.o iriap_event.o irlmp.o irlmp_event.o irlmp_frame.o \
            irlap.o irlap_event.o irlap_frame.o timer.o qos.o irqueue.o \
            irttp.o irda_device.o irias_object.o crc.o wrapper.o af_irda.o \
	    discovery.o parameters.o
OX_OBJS := irsyms.o

ifeq ($(CONFIG_IRDA),m)
M_OBJS   := $(O_TARGET)
endif

ifeq ($(CONFIG_IRDA_COMPRESSION),y)
O_OBJS += irlap_comp.o
endif

ifeq ($(CONFIG_PROC_FS),y)
O_OBJS += irproc.o
endif

ifeq ($(CONFIG_SYSCTL),y)
O_OBJS += irsysctl.o
endif

ifeq ($(CONFIG_IRLAN),y)
SUB_DIRS += irlan
O_OBJS += irlan/irlan.o
else
  ifeq ($(CONFIG_IRLAN),m)
  MOD_SUB_DIRS += irlan
  endif
endif

ifeq ($(CONFIG_IRNET),y)
SUB_DIRS += irnet
O_OBJS += irnet/irnet.o
else
  ifeq ($(CONFIG_IRNET),m)
  MOD_SUB_DIRS += irnet
  endif
endif

ifeq ($(CONFIG_IRDA_COMPRESSION),y)
SUB_DIRS += compressors
MOD_IN_SUB_DIRS += compressors
endif

ifeq ($(CONFIG_IRDA_DEFLATE),y)
O_OBJS += compressors/irda_deflate.o
else
  ifeq ($(CONFIG_IRDA_DEFLATE),m)
  MOD_TO_LIST += irda_deflate.o
  endif
endif

ifeq ($(CONFIG_IRCOMM),y)
SUB_DIRS += ircomm
O_OBJS += ircomm/ircomm_and_tty.o
else
  ifeq ($(CONFIG_IRCOMM),m)
  MOD_SUB_DIRS += ircomm
  endif
endif

include $(TOPDIR)/Rules.make

tar:
		tar -cvf /dev/f1 .