Makefile 3.02 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
# Rewritten to use lists instead of if-statements.
#

8
wanpipe-y			:= sdlamain.o sdla_ft1.o
Linus Torvalds's avatar
Linus Torvalds committed
9 10 11 12
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
13
wanpipe-$(CONFIG_WANPIPE_MULTPPP) += wanpipe_multppp.o
14
wanpipe-objs			:= $(wanpipe-y)
Linus Torvalds's avatar
Linus Torvalds committed
15

16
cyclomx-y                       := cycx_main.o
Linus Torvalds's avatar
Linus Torvalds committed
17
cyclomx-$(CONFIG_CYCLOMX_X25)	+= cycx_x25.o
18
cyclomx-objs			:= $(cyclomx-y)  
Linus Torvalds's avatar
Linus Torvalds committed
19

20
hdlc-y				:= hdlc_generic.o
François Romieu's avatar
François Romieu committed
21
hdlc-$(CONFIG_HDLC_RAW)		+= hdlc_raw.o
22
hdlc-$(CONFIG_HDLC_RAW_ETH)	+= hdlc_raw_eth.o
François Romieu's avatar
François Romieu committed
23 24 25 26
hdlc-$(CONFIG_HDLC_CISCO)	+= hdlc_cisco.o
hdlc-$(CONFIG_HDLC_FR)		+= hdlc_fr.o
hdlc-$(CONFIG_HDLC_PPP)		+= hdlc_ppp.o
hdlc-$(CONFIG_HDLC_X25)		+= hdlc_x25.o
27
hdlc-objs			:= $(hdlc-y)
Linus Torvalds's avatar
Linus Torvalds committed
28

29 30 31 32
pc300-y				:= pc300_drv.o
pc300-$(CONFIG_PC300_MLPPP)	+= pc300_tty.o
pc300-objs			:= $(pc300-y)

Linus Torvalds's avatar
Linus Torvalds committed
33 34 35 36 37 38
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
39
obj-$(CONFIG_COMX_HW_MUNICH)	+=				comx-hw-munich.o
Linus Torvalds's avatar
Linus Torvalds committed
40 41 42 43
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
44
obj-$(CONFIG_FARSYNC)		+=		syncppp.o	farsync.o
Linus Torvalds's avatar
Linus Torvalds committed
45
obj-$(CONFIG_DSCC4)             +=				dscc4.o
Linus Torvalds's avatar
Linus Torvalds committed
46 47 48 49
obj-$(CONFIG_LANMEDIA)		+=		syncppp.o
obj-$(CONFIG_SYNCLINK_SYNCPPP)	+=		syncppp.o
obj-$(CONFIG_X25_ASY)		+= x25_asy.o

50
obj-$(CONFIG_LANMEDIA)		+= lmc/
Linus Torvalds's avatar
Linus Torvalds committed
51 52 53

obj-$(CONFIG_DLCI)		+= dlci.o 
obj-$(CONFIG_SDLA)		+= sdla.o
Linus Torvalds's avatar
Linus Torvalds committed
54 55 56 57 58
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
59 60 61
obj-$(CONFIG_CYCLADES_SYNC)	+= cycx_drv.o cyclomx.o
obj-$(CONFIG_LAPBETHER)		+= lapbether.o
obj-$(CONFIG_SBNI)		+= sbni.o
62
obj-$(CONFIG_PC300)		+= pc300.o
Linus Torvalds's avatar
Linus Torvalds committed
63
obj-$(CONFIG_HDLC)		+= hdlc.o
François Romieu's avatar
François Romieu committed
64 65 66
ifeq ($(CONFIG_HDLC_PPP),y)
  obj-$(CONFIG_HDLC)		+= syncppp.o
endif
Linus Torvalds's avatar
Linus Torvalds committed
67 68
obj-$(CONFIG_N2)		+= n2.o
obj-$(CONFIG_C101)		+= c101.o
69
obj-$(CONFIG_WANXL)		+= wanxl.o
70
obj-$(CONFIG_PCI200SYN)		+= pci200syn.o
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91

ifeq ($(CONFIG_WANXL_BUILD_FIRMWARE),y)
ifeq ($(ARCH),m68k)
  AS68K = $(AS)
  LD68K = $(LD)
else
  AS68K = as68k
  LD68K = ld68k
endif

quiet_cmd_build_wanxlfw = BLD FW  $@
      cmd_build_wanxlfw = \
	$(CPP) -Wp,-MD,$(depfile) -Iinclude $(obj)/wanxlfw.S | $(AS68K) -m68360 -o $(obj)/wanxlfw.o; \
	$(LD68K) --oformat binary -Ttext 0x1000 $(obj)/wanxlfw.o -o $(obj)/wanxlfw.bin; \
	hexdump -ve '"\n" 16/1 "0x%02X,"' $(obj)/wanxlfw.bin | sed 's/0x  ,//g;1s/^/static u8 firmware[]={/;$$s/,$$/\n};\n/' >$(obj)/wanxlfw.inc; \
	rm -f $(obj)/wanxlfw.bin $(obj)/wanxlfw.o

$(obj)/wanxlfw.inc:	$(obj)/wanxlfw.S
	$(call if_changed_dep,build_wanxlfw)
targets += wanxlfw.inc
endif