import of ftp.dlink.com/GPL/DSMG-600_reB/ppclinux.tar.gz
[linux-2.4.21-pre4.git] / drivers / isdn / Makefile
1 # Makefile for the kernel ISDN subsystem and device drivers.
2
3 # The target object and module list name.
4
5 O_TARGET        := vmlinux-obj.o
6
7 # Objects that export symbols.
8
9 export-objs     := isdn_common.o
10
11 # Multipart objects.
12
13 list-multi      := isdn.o
14 isdn-objs       := isdn_net.o isdn_tty.o isdn_v110.o isdn_common.o
15
16 # Optional parts of multipart objects.
17
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
23
24 isdn-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
30 obj-$(CONFIG_ISDN)                      += isdn.o
31 obj-$(CONFIG_ISDN_PPP_BSDCOMP)          += isdn_bsdcomp.o
32
33 # Object files in subdirectories
34
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
47
48 obj-y += $(addsuffix /vmlinux-obj.o, $(subdir-y))
49
50 # The global Rules.make.
51
52 include $(TOPDIR)/Rules.make
53
54 # Link rules for multi-part drivers.
55
56 isdn.o: $(isdn-objs)
57         $(LD) -r -o $@ $(isdn-objs)