* better
[mascara-docs.git] / i386 / linux-2.3.21 / drivers / isdn / Makefile
blob04be19f9cd697db385864f0e38b995ac97802ce7
1 SUB_DIRS :=
2 MOD_SUB_DIRS :=
3 ALL_SUB_DIRS := icn pcbit hisax avmb1 act2000 eicon divert
5 L_OBJS :=
6 LX_OBJS :=
7 M_OBJS :=
8 MX_OBJS :=
9 O_OBJS :=
10 OX_OBJS :=
11 L_TARGET :=
12 O_TARGET :=
14 ifeq ($(CONFIG_ISDN),y)
15 L_TARGET := isdn.a
16 L_OBJS += isdn_net.o isdn_tty.o isdn_cards.o isdn_v110.o
17 LX_OBJS += isdn_common.o
18 ifdef CONFIG_ISDN_PPP
19 L_OBJS += isdn_ppp.o
20 endif
21 ifdef CONFIG_ISDN_X25
22 L_OBJS += isdn_x25iface.o
23 L_OBJS += isdn_concap.o
24 endif
25 ifdef CONFIG_ISDN_AUDIO
26 L_OBJS += isdn_audio.o
27 ifdef CONFIG_ISDN_TTY_FAX
28 L_OBJS += isdn_ttyfax.o
29 endif
30 endif
31 else
32 ifeq ($(CONFIG_ISDN),m)
33 M_OBJS += isdn.o
34 O_TARGET += isdn.o
35 O_OBJS += isdn_net.o isdn_tty.o isdn_v110.o
36 OX_OBJS += isdn_common.o
37 ifdef CONFIG_ISDN_PPP
38 O_OBJS += isdn_ppp.o
39 M_OBJS += isdn_bsdcomp.o
40 endif
41 ifdef CONFIG_ISDN_X25
42 O_OBJS += isdn_x25iface.o
43 O_OBJS += isdn_concap.o
44 endif
45 ifdef CONFIG_ISDN_AUDIO
46 O_OBJS += isdn_audio.o
47 ifdef CONFIG_ISDN_TTY_FAX
48 O_OBJS += isdn_ttyfax.o
49 endif
50 endif
51 endif
52 endif
54 ifeq ($(CONFIG_ISDN_DIVERSION),y)
55 ifeq ($(CONFIG_MODULES),y)
56 MOD_SUB_DIRS += divert
57 endif
58 endif
60 ifeq ($(CONFIG_ISDN_DRV_HISAX),y)
61 L_OBJS += hisax/hisax.o
62 SUB_DIRS += hisax
63 MOD_SUB_DIRS += hisax
64 else
65 ifeq ($(CONFIG_ISDN_DRV_HISAX),m)
66 MOD_SUB_DIRS += hisax
67 endif
68 endif
70 ifeq ($(CONFIG_ISDN_DRV_ICN),y)
71 L_OBJS += icn/icn_obj.o
72 SUB_DIRS += icn
73 MOD_SUB_DIRS += icn
74 else
75 ifeq ($(CONFIG_ISDN_DRV_ICN),m)
76 MOD_SUB_DIRS += icn
77 endif
78 endif
80 ifeq ($(CONFIG_ISDN_DRV_PCBIT),y)
81 L_OBJS += pcbit/pcbit.o
82 SUB_DIRS += pcbit
83 MOD_SUB_DIRS += pcbit
84 else
85 ifeq ($(CONFIG_ISDN_DRV_PCBIT),m)
86 MOD_SUB_DIRS += pcbit
87 endif
88 endif
90 ifeq ($(CONFIG_ISDN_DRV_SC),y)
91 L_OBJS += sc/sc.o
92 SUB_DIRS += sc
93 MOD_SUB_DIRS += sc
94 else
95 ifeq ($(CONFIG_ISDN_DRV_SC),m)
96 MOD_SUB_DIRS += sc
97 endif
98 endif
100 ifeq ($(CONFIG_ISDN_DRV_AVMB1),y)
101 L_OBJS += avmb1/avmb1.o
102 SUB_DIRS += avmb1
103 MOD_SUB_DIRS += avmb1
104 else
105 ifeq ($(CONFIG_ISDN_DRV_AVMB1),m)
106 MOD_SUB_DIRS += avmb1
107 endif
108 endif
110 ifeq ($(CONFIG_ISDN_DRV_LOOP),y)
111 L_OBJS += isdnloop/isdnloop.o
112 SUB_DIRS += isdnloop
113 MOD_SUB_DIRS += isdnloop
114 else
115 ifeq ($(CONFIG_ISDN_DRV_LOOP),m)
116 MOD_SUB_DIRS += isdnloop
117 endif
118 endif
120 ifeq ($(CONFIG_ISDN_DRV_ACT2000),y)
121 L_OBJS += act2000/act2000.o
122 SUB_DIRS += act2000
123 MOD_SUB_DIRS += act2000
124 else
125 ifeq ($(CONFIG_ISDN_DRV_ACT2000),m)
126 MOD_SUB_DIRS += act2000
127 endif
128 endif
130 ifeq ($(CONFIG_ISDN_DRV_EICON),y)
131 L_OBJS += eicon/eicon.o
132 SUB_DIRS += eicon
133 MOD_SUB_DIRS += eicon
134 else
135 ifeq ($(CONFIG_ISDN_DRV_EICON),m)
136 MOD_SUB_DIRS += eicon
137 endif
138 endif
140 include $(TOPDIR)/Rules.make