* add p cc
[mascara-docs.git] / i386 / linux / linux-2.3.21 / drivers / net / wan / Makefile
blob73060f5b971b7fc4b1045e495a7e2d316329e618
1 # File: drivers/net/wan/Makefile
3 # Makefile for the Linux network (wan) device drivers.
5 # Note! Dependencies are done automagically by 'make dep', which also
6 # removes any old dependencies. DON'T put your own dependencies here
7 # unless it's something special (ie not a .c file).
9 # Note 2! The CFLAGS definition is now inherited from the
10 # parent makefile.
13 SUB_DIRS :=
14 MOD_SUB_DIRS := $(SUB_DIRS)
15 ALL_SUB_DIRS := $(SUB_DIRS)
17 L_TARGET := wan.a
18 L_OBJS :=
19 M_OBJS :=
21 # Need these to keep track of whether the 82530 or SYNCPPP
22 # modules should really go in the kernel or a module.
23 CONFIG_85230_BUILTIN :=
24 CONFIG_85230_MODULE :=
25 CONFIG_SYNCPPP_BUILTIN :=
26 CONFIG_SYNCPPP_MODULE :=
28 ifeq ($(CONFIG_HOSTESS_SV11),y)
29 L_OBJS += hostess_sv11.o
30 CONFIG_85230_BUILTIN = y
31 CONFIG_SYNCPPP_BUILTIN = y
32 else
33 ifeq ($(CONFIG_HOSTESS_SV11),m)
34 CONFIG_85230_MODULE = y
35 CONFIG_SYNCPPP_MODULE = y
36 M_OBJS += hostess_sv11.o
37 endif
38 endif
40 ifeq ($(CONFIG_SEALEVEL_4021),y)
41 L_OBJS += sealevel.o
42 CONFIG_85230_BUILTIN = y
43 CONFIG_SYNCPPP_BUILTIN = y
44 else
45 ifeq ($(CONFIG_SEALEVEL_4021),m)
46 CONFIG_85230_MODULE = y
47 CONFIG_SYNCPPP_MODULE = y
48 M_OBJS += sealevel.o
49 endif
50 endif
52 ifeq ($(CONFIG_COSA),y)
53 L_OBJS += cosa.o
54 CONFIG_SYNCPPP_BUILTIN = y
55 else
56 ifeq ($(CONFIG_COSA),m)
57 CONFIG_SYNCPPP_MODULE = y
58 M_OBJS += cosa.o
59 endif
60 endif
62 # If anything built-in uses syncppp, then build it into the kernel also.
63 # If not, but a module uses it, build as a module.
65 ifdef CONFIG_SYNCPPP_BUILTIN
66 LX_OBJS += syncppp.o
67 else
68 ifdef CONFIG_SYNCPPP_MODULE
69 MX_OBJS += syncppp.o
70 endif
71 endif
73 # If anything built-in uses Z85230, then build it into the kernel also.
74 # If not, but a module uses it, build as a module.
76 ifdef CONFIG_85230_BUILTIN
77 LX_OBJS += z85230.o
78 else
79 ifdef CONFIG_85230_MODULE
80 MX_OBJS += z85230.o
81 endif
82 endif
84 ifeq ($(CONFIG_DLCI),y)
85 L_OBJS += dlci.o
86 else
87 ifeq ($(CONFIG_DLCI),m)
88 M_OBJS += dlci.o
89 endif
90 endif
92 ifeq ($(CONFIG_SDLA),y)
93 L_OBJS += sdla.o
94 else
95 ifeq ($(CONFIG_SDLA),m)
96 M_OBJS += sdla.o
97 endif
99 ifeq ($(CONFIG_VENDOR_SANGOMA),y)
100 LX_OBJS += sdladrv.o
101 L_OBJS += sdlamain.o
102 ifeq ($(CONFIG_WANPIPE_X25),y)
103 L_OBJS += sdla_x25.o
104 endif
105 ifeq ($(CONFIG_WANPIPE_FR),y)
106 L_OBJS += sdla_fr.o
107 endif
108 ifeq ($(CONFIG_WANPIPE_PPP),y)
109 L_OBJS += sdla_ppp.o
110 endif
111 endif
113 endif
115 ifeq ($(CONFIG_VENDOR_SANGOMA),m)
116 MX_OBJS += sdladrv.o
117 M_OBJS += wanpipe.o
118 WANPIPE_OBJS = sdlamain.o
119 ifeq ($(CONFIG_WANPIPE_X25),y)
120 WANPIPE_OBJS += sdla_x25.o
121 endif
122 ifeq ($(CONFIG_WANPIPE_FR),y)
123 WANPIPE_OBJS += sdla_fr.o
124 endif
125 ifeq ($(CONFIG_WANPIPE_PPP),y)
126 WANPIPE_OBJS += sdla_ppp.o
127 endif
128 endif
130 ifeq ($(CONFIG_CYCLADES_SYNC),y)
131 LX_OBJS += cycx_drv.o
132 L_OBJS += cycx_main.o
133 ifeq ($(CONFIG_CYCLOMX_X25),y)
134 L_OBJS += cycx_x25.o
135 endif
136 endif
138 ifeq ($(CONFIG_CYCLADES_SYNC),m)
139 MX_OBJS += cycx_drv.o
140 M_OBJS += cyclomx.o
141 CYCLOMX_OBJS = cycx_main.o
142 ifeq ($(CONFIG_CYCLOMX_X25),y)
143 CYCLOMX_OBJS += cycx_x25.o
144 endif
145 endif
147 ifeq ($(CONFIG_X25_ASY),y)
148 L_OBJS += x25_asy.o
149 else
150 ifeq ($(CONFIG_X25_ASY),m)
151 M_OBJS += x25_asy.o
152 endif
153 endif
155 ifeq ($(CONFIG_LAPBETHER),y)
156 L_OBJS += lapbether.o
157 else
158 ifeq ($(CONFIG_LAPBETHER),m)
159 M_OBJS += lapbether.o
160 endif
161 endif
163 ifeq ($(CONFIG_SBNI),y)
164 L_OBJS += sbni.o
165 else
166 ifeq ($(CONFIG_SBNI),m)
167 M_OBJS += sbni.o
168 endif
169 endif
171 include $(TOPDIR)/Rules.make
173 clean:
174 rm -f core *.o *.a *.s
176 wanpipe.o: $(WANPIPE_OBJS)
177 ld -r -o $@ $(WANPIPE_OBJS)
179 cyclomx.o: $(CYCLOMX_OBJS)
180 ld -r -o $@ $(CYCLOMX_OBJS)