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