1# Makefile for the kernel ISDN subsystem and device drivers. 2 3# The target object and module list name. 4 5O_TARGET := vmlinux-obj.o 6 7# Objects that export symbols. 8 9export-objs := isdn_common.o 10 11# Multipart objects. 12 13list-multi := isdn.o 14isdn-objs := isdn_net.o isdn_tty.o isdn_v110.o isdn_common.o 15 16# Optional parts of multipart objects. 17 18isdn-objs-$(CONFIG_ISDN_PPP) += isdn_ppp.o 19isdn-objs-$(CONFIG_ISDN_X25) += isdn_concap.o isdn_x25iface.o 20isdn-objs-$(CONFIG_ISDN_AUDIO) += isdn_audio.o 21isdn-objs-$(CONFIG_ISDN_TTY_FAX) += isdn_ttyfax.o 22isdn-objs-$(CONFIG_ISDN_WITH_ABC) += isdn_dwabc.o 23 24isdn-objs += $(isdn-objs-y) 25 26# Ordering constraints: isdn.o first, rest doesn't matter 27 28# Each configuration option enables a list of files. 29 30obj-$(CONFIG_ISDN) += isdn.o 31obj-$(CONFIG_ISDN_PPP_BSDCOMP) += isdn_bsdcomp.o 32 33# Object files in subdirectories 34 35mod-subdirs := avmb1 eicon hisax 36subdir-$(CONFIG_ISDN_DIVERSION) += divert 37subdir-$(CONFIG_ISDN_HISAX) += hisax 38subdir-$(CONFIG_ISDN_DRV_ICN) += icn 39subdir-$(CONFIG_ISDN_DRV_PCBIT) += pcbit 40subdir-$(CONFIG_ISDN_DRV_SC) += sc 41subdir-$(CONFIG_ISDN_CAPI) += avmb1 42subdir-$(CONFIG_ISDN_DRV_LOOP) += isdnloop 43subdir-$(CONFIG_ISDN_DRV_ACT2000) += act2000 44subdir-$(CONFIG_ISDN_DRV_EICON) += eicon 45subdir-$(CONFIG_HYSDN) += hysdn 46subdir-$(CONFIG_ISDN_DRV_TPAM) += tpam 47 48obj-y += $(addsuffix /vmlinux-obj.o, $(subdir-y)) 49 50# The global Rules.make. 51 52include $(TOPDIR)/Rules.make 53 54# Link rules for multi-part drivers. 55 56isdn.o: $(isdn-objs) 57 $(LD) -r -o $@ $(isdn-objs) 58