Makefile 2.08 KB
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3
#
# Makefile for the Linux network (wan) device drivers.
#
4
# 3 Aug 2000, Christoph Hellwig <hch@infradead.org>
Linus Torvalds's avatar
Linus Torvalds committed
5 6 7 8 9 10 11
# Rewritten to use lists instead of if-statements.
#

SUB_DIRS     := 

O_TARGET := wan.o

Linus Torvalds's avatar
Linus Torvalds committed
12
export-objs =	z85230.o syncppp.o comx.o sdladrv.o cycx_drv.o hdlc.o
Linus Torvalds's avatar
Linus Torvalds committed
13 14
list-multi =	wanpipe.o cyclomx.o

Linus Torvalds's avatar
Linus Torvalds committed
15
wanpipe-objs = sdlamain.o sdla_ft1.o $(wanpipe-y)
Linus Torvalds's avatar
Linus Torvalds committed
16 17 18 19
wanpipe-$(CONFIG_WANPIPE_X25)	+= sdla_x25.o
wanpipe-$(CONFIG_WANPIPE_FR)	+= sdla_fr.o
wanpipe-$(CONFIG_WANPIPE_CHDLC)	+= sdla_chdlc.o
wanpipe-$(CONFIG_WANPIPE_PPP)	+= sdla_ppp.o
Linus Torvalds's avatar
Linus Torvalds committed
20
wanpipe-$(CONFIG_WANPIPE_MULTPPP) += wanpipe_multppp.o
Linus Torvalds's avatar
Linus Torvalds committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

cyclomx-objs = cycx_main.o $(cyclomx-y)  
cyclomx-$(CONFIG_CYCLOMX_X25)	+= cycx_x25.o


obj-$(CONFIG_HOSTESS_SV11)	+= z85230.o	syncppp.o	hostess_sv11.o
obj-$(CONFIG_SEALEVEL_4021)	+= z85230.o	syncppp.o	sealevel.o
obj-$(CONFIG_COMX)		+= 				comx.o
obj-$(CONFIG_COMX_HW_COMX)	+= 				comx-hw-comx.o
obj-$(CONFIG_COMX_HW_LOCOMX)	+= z85230.o	syncppp.o	comx-hw-locomx.o
obj-$(CONFIG_COMX_HW_MIXCOM)	+=				comx-hw-mixcom.o
obj-$(CONFIG_COMX_PROTO_PPP)	+=		syncppp.o	comx-proto-ppp.o
obj-$(CONFIG_COMX_PROTO_LAPB)	+=				comx-proto-lapb.o
obj-$(CONFIG_COMX_PROTO_FR)	+=				comx-proto-fr.o
obj-$(CONFIG_COSA)		+=		syncppp.o	cosa.o
Linus Torvalds's avatar
Linus Torvalds committed
36
obj-$(CONFIG_FARSYNC)		+=		syncppp.o	farsync.o
Linus Torvalds's avatar
Linus Torvalds committed
37
obj-$(CONFIG_DSCC4)             +=				dscc4.o
Linus Torvalds's avatar
Linus Torvalds committed
38 39 40 41 42 43 44 45 46 47 48 49
obj-$(CONFIG_LANMEDIA)		+=		syncppp.o
obj-$(CONFIG_SYNCLINK_SYNCPPP)	+=		syncppp.o
obj-$(CONFIG_X25_ASY)		+= x25_asy.o

subdir-$(CONFIG_LANMEDIA) += lmc

ifeq ($(CONFIG_LANMEDIA),y)
  obj-y += lmc/lmc.o
endif
 
obj-$(CONFIG_DLCI)		+= dlci.o 
obj-$(CONFIG_SDLA)		+= sdla.o
Linus Torvalds's avatar
Linus Torvalds committed
50 51 52 53 54
ifeq ($(CONFIG_WANPIPE_MULTPPP),y)
  obj-$(CONFIG_VENDOR_SANGOMA) += sdladrv.o wanpipe.o syncppp.o	
else
  obj-$(CONFIG_VENDOR_SANGOMA) += sdladrv.o wanpipe.o
endif
Linus Torvalds's avatar
Linus Torvalds committed
55 56 57
obj-$(CONFIG_CYCLADES_SYNC)	+= cycx_drv.o cyclomx.o
obj-$(CONFIG_LAPBETHER)		+= lapbether.o
obj-$(CONFIG_SBNI)		+= sbni.o
Linus Torvalds's avatar
Linus Torvalds committed
58 59 60 61
obj-$(CONFIG_HDLC)		+= hdlc.o
obj-$(CONFIG_HDLC_PPP)		+= syncppp.o
obj-$(CONFIG_N2)		+= n2.o
obj-$(CONFIG_C101)		+= c101.o
Linus Torvalds's avatar
Linus Torvalds committed
62 63 64 65 66 67 68 69 70

include $(TOPDIR)/Rules.make

wanpipe.o: $(wanpipe-objs)
	$(LD) -r -o $@ $(wanpipe-objs)

cyclomx.o: $(cyclomx-objs)
	$(LD) -r -o $@ $(cyclomx-objs)