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
14 MOD_SUB_DIRS
:= $(SUB_DIRS
)
15 ALL_SUB_DIRS
:= $(SUB_DIRS
)
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
33 ifeq ($(CONFIG_HOSTESS_SV11
),m
)
34 CONFIG_85230_MODULE
= y
35 CONFIG_SYNCPPP_MODULE
= y
36 M_OBJS
+= hostess_sv11.o
40 ifeq ($(CONFIG_SEALEVEL_4021
),y
)
42 CONFIG_85230_BUILTIN
= y
43 CONFIG_SYNCPPP_BUILTIN
= y
45 ifeq ($(CONFIG_SEALEVEL_4021
),m
)
46 CONFIG_85230_MODULE
= y
47 CONFIG_SYNCPPP_MODULE
= y
52 ifeq ($(CONFIG_COSA
),y
)
54 CONFIG_SYNCPPP_BUILTIN
= y
56 ifeq ($(CONFIG_COSA
),m
)
57 CONFIG_SYNCPPP_MODULE
= y
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
68 ifdef CONFIG_SYNCPPP_MODULE
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
79 ifdef CONFIG_85230_MODULE
84 ifeq ($(CONFIG_DLCI
),y
)
87 ifeq ($(CONFIG_DLCI
),m
)
92 ifeq ($(CONFIG_SDLA
),y
)
95 ifeq ($(CONFIG_SDLA
),m
)
99 ifeq ($(CONFIG_VENDOR_SANGOMA
),y
)
102 ifeq ($(CONFIG_WANPIPE_X25
),y
)
105 ifeq ($(CONFIG_WANPIPE_FR
),y
)
108 ifeq ($(CONFIG_WANPIPE_PPP
),y
)
115 ifeq ($(CONFIG_VENDOR_SANGOMA
),m
)
118 WANPIPE_OBJS
= sdlamain.o
119 ifeq ($(CONFIG_WANPIPE_X25
),y
)
120 WANPIPE_OBJS
+= sdla_x25.o
122 ifeq ($(CONFIG_WANPIPE_FR
),y
)
123 WANPIPE_OBJS
+= sdla_fr.o
125 ifeq ($(CONFIG_WANPIPE_PPP
),y
)
126 WANPIPE_OBJS
+= sdla_ppp.o
130 ifeq ($(CONFIG_CYCLADES_SYNC
),y
)
131 LX_OBJS
+= cycx_drv.o
132 L_OBJS
+= cycx_main.o
133 ifeq ($(CONFIG_CYCLOMX_X25
),y
)
138 ifeq ($(CONFIG_CYCLADES_SYNC
),m
)
139 MX_OBJS
+= cycx_drv.o
141 CYCLOMX_OBJS
= cycx_main.o
142 ifeq ($(CONFIG_CYCLOMX_X25
),y
)
143 CYCLOMX_OBJS
+= cycx_x25.o
147 ifeq ($(CONFIG_X25_ASY
),y
)
150 ifeq ($(CONFIG_X25_ASY
),m
)
155 ifeq ($(CONFIG_LAPBETHER
),y
)
156 L_OBJS
+= lapbether.o
158 ifeq ($(CONFIG_LAPBETHER
),m
)
159 M_OBJS
+= lapbether.o
163 ifeq ($(CONFIG_SBNI
),y
)
166 ifeq ($(CONFIG_SBNI
),m
)
171 include $(TOPDIR
)/Rules.make
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
)