11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Makefile for the Linux network (wan) device drivers. 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds# 3 Aug 2000, Christoph Hellwig <hch@infradead.org> 51da177e4SLinus Torvalds# Rewritten to use lists instead of if-statements. 61da177e4SLinus Torvalds# 71da177e4SLinus Torvalds 81da177e4SLinus Torvaldswanpipe-y := sdlamain.o sdla_ft1.o 91da177e4SLinus Torvaldswanpipe-$(CONFIG_WANPIPE_X25) += sdla_x25.o 101da177e4SLinus Torvaldswanpipe-$(CONFIG_WANPIPE_FR) += sdla_fr.o 111da177e4SLinus Torvaldswanpipe-$(CONFIG_WANPIPE_CHDLC) += sdla_chdlc.o 121da177e4SLinus Torvaldswanpipe-$(CONFIG_WANPIPE_PPP) += sdla_ppp.o 131da177e4SLinus Torvaldswanpipe-$(CONFIG_WANPIPE_MULTPPP) += wanpipe_multppp.o 141da177e4SLinus Torvaldswanpipe-objs := $(wanpipe-y) 151da177e4SLinus Torvalds 161da177e4SLinus Torvaldscyclomx-y := cycx_main.o 171da177e4SLinus Torvaldscyclomx-$(CONFIG_CYCLOMX_X25) += cycx_x25.o 181da177e4SLinus Torvaldscyclomx-objs := $(cyclomx-y) 191da177e4SLinus Torvalds 201da177e4SLinus Torvaldshdlc-y := hdlc_generic.o 211da177e4SLinus Torvaldshdlc-$(CONFIG_HDLC_RAW) += hdlc_raw.o 221da177e4SLinus Torvaldshdlc-$(CONFIG_HDLC_RAW_ETH) += hdlc_raw_eth.o 231da177e4SLinus Torvaldshdlc-$(CONFIG_HDLC_CISCO) += hdlc_cisco.o 241da177e4SLinus Torvaldshdlc-$(CONFIG_HDLC_FR) += hdlc_fr.o 251da177e4SLinus Torvaldshdlc-$(CONFIG_HDLC_PPP) += hdlc_ppp.o 261da177e4SLinus Torvaldshdlc-$(CONFIG_HDLC_X25) += hdlc_x25.o 271da177e4SLinus Torvaldshdlc-objs := $(hdlc-y) 281da177e4SLinus Torvalds 291da177e4SLinus Torvaldspc300-y := pc300_drv.o 301da177e4SLinus Torvaldspc300-$(CONFIG_PC300_MLPPP) += pc300_tty.o 311da177e4SLinus Torvaldspc300-objs := $(pc300-y) 321da177e4SLinus Torvalds 331da177e4SLinus Torvaldsobj-$(CONFIG_HOSTESS_SV11) += z85230.o syncppp.o hostess_sv11.o 341da177e4SLinus Torvaldsobj-$(CONFIG_SEALEVEL_4021) += z85230.o syncppp.o sealevel.o 351da177e4SLinus Torvaldsobj-$(CONFIG_COSA) += syncppp.o cosa.o 361da177e4SLinus Torvaldsobj-$(CONFIG_FARSYNC) += syncppp.o farsync.o 371da177e4SLinus Torvaldsobj-$(CONFIG_DSCC4) += dscc4.o 381da177e4SLinus Torvaldsobj-$(CONFIG_LANMEDIA) += syncppp.o 391da177e4SLinus Torvaldsobj-$(CONFIG_SYNCLINK_SYNCPPP) += syncppp.o 401da177e4SLinus Torvaldsobj-$(CONFIG_X25_ASY) += x25_asy.o 411da177e4SLinus Torvalds 421da177e4SLinus Torvaldsobj-$(CONFIG_LANMEDIA) += lmc/ 431da177e4SLinus Torvalds 441da177e4SLinus Torvaldsobj-$(CONFIG_DLCI) += dlci.o 451da177e4SLinus Torvaldsobj-$(CONFIG_SDLA) += sdla.o 461da177e4SLinus Torvaldsifeq ($(CONFIG_WANPIPE_MULTPPP),y) 471da177e4SLinus Torvalds obj-$(CONFIG_VENDOR_SANGOMA) += sdladrv.o wanpipe.o syncppp.o 481da177e4SLinus Torvaldselse 491da177e4SLinus Torvalds obj-$(CONFIG_VENDOR_SANGOMA) += sdladrv.o wanpipe.o 501da177e4SLinus Torvaldsendif 511da177e4SLinus Torvaldsobj-$(CONFIG_CYCLADES_SYNC) += cycx_drv.o cyclomx.o 521da177e4SLinus Torvaldsobj-$(CONFIG_LAPBETHER) += lapbether.o 531da177e4SLinus Torvaldsobj-$(CONFIG_SBNI) += sbni.o 541da177e4SLinus Torvaldsobj-$(CONFIG_PC300) += pc300.o 551da177e4SLinus Torvaldsobj-$(CONFIG_HDLC) += hdlc.o 561da177e4SLinus Torvaldsifeq ($(CONFIG_HDLC_PPP),y) 571da177e4SLinus Torvalds obj-$(CONFIG_HDLC) += syncppp.o 581da177e4SLinus Torvaldsendif 591da177e4SLinus Torvaldsobj-$(CONFIG_N2) += n2.o 601da177e4SLinus Torvaldsobj-$(CONFIG_C101) += c101.o 611da177e4SLinus Torvaldsobj-$(CONFIG_WANXL) += wanxl.o 621da177e4SLinus Torvaldsobj-$(CONFIG_PCI200SYN) += pci200syn.o 631da177e4SLinus Torvalds 641da177e4SLinus Torvaldsclean-files := wanxlfw.inc 651da177e4SLinus Torvalds$(obj)/wanxl.o: $(obj)/wanxlfw.inc 661da177e4SLinus Torvalds 671da177e4SLinus Torvaldsifeq ($(CONFIG_WANXL_BUILD_FIRMWARE),y) 681da177e4SLinus Torvaldsifeq ($(ARCH),m68k) 691da177e4SLinus Torvalds AS68K = $(AS) 701da177e4SLinus Torvalds LD68K = $(LD) 711da177e4SLinus Torvaldselse 721da177e4SLinus Torvalds AS68K = as68k 731da177e4SLinus Torvalds LD68K = ld68k 741da177e4SLinus Torvaldsendif 751da177e4SLinus Torvalds 761da177e4SLinus Torvaldsquiet_cmd_build_wanxlfw = BLD FW $@ 771da177e4SLinus Torvalds cmd_build_wanxlfw = \ 781da177e4SLinus Torvalds $(CPP) -Wp,-MD,$(depfile) -I$(srctree)/include $< | $(AS68K) -m68360 -o $(obj)/wanxlfw.o; \ 791da177e4SLinus Torvalds $(LD68K) --oformat binary -Ttext 0x1000 $(obj)/wanxlfw.o -o $(obj)/wanxlfw.bin; \ 801da177e4SLinus Torvalds hexdump -ve '"\n" 16/1 "0x%02X,"' $(obj)/wanxlfw.bin | sed 's/0x ,//g;1s/^/static u8 firmware[]={/;$$s/,$$/\n};\n/' >$(obj)/wanxlfw.inc; \ 811da177e4SLinus Torvalds rm -f $(obj)/wanxlfw.bin $(obj)/wanxlfw.o 821da177e4SLinus Torvalds 831da177e4SLinus Torvalds$(obj)/wanxlfw.inc: $(src)/wanxlfw.S 841da177e4SLinus Torvalds $(call if_changed_dep,build_wanxlfw) 851da177e4SLinus Torvaldstargets += wanxlfw.inc 861da177e4SLinus Torvaldsendif 87