1# Makefile for the AVM ISDN device drivers and CAPI subsystem.
2
3# The target object and module list name.
4
5O_TARGET	:= vmlinux-obj.o
6
7# Objects that export symbols.
8
9export-objs	:= kcapi.o capiutil.o b1dma.o b1pcmcia.o b1.o capifs.o
10
11# Multipart objects.
12
13list-multi	:= kernelcapi.o
14kernelcapi-objs	:= kcapi.o
15
16# Ordering constraints: kernelcapi.o first
17
18# Each configuration option enables a list of files.
19
20obj-$(CONFIG_ISDN_CAPI)			+= kernelcapi.o capiutil.o
21obj-$(CONFIG_ISDN_CAPI_CAPI20)		+= capi.o
22obj-$(CONFIG_ISDN_CAPI_CAPIDRV)		+= capidrv.o
23obj-$(CONFIG_ISDN_CAPI_CAPIFS)		+= capifs.o
24obj-$(CONFIG_ISDN_DRV_AVMB1_B1ISA)	+= b1isa.o b1.o
25obj-$(CONFIG_ISDN_DRV_AVMB1_B1PCI)	+= b1pci.o b1.o b1dma.o
26obj-$(CONFIG_ISDN_DRV_AVMB1_B1PCMCIA)	+= b1pcmcia.o b1.o
27obj-$(CONFIG_ISDN_DRV_AVMB1_AVM_CS)	+= avm_cs.o
28obj-$(CONFIG_ISDN_DRV_AVMB1_T1ISA)	+= t1isa.o b1.o
29obj-$(CONFIG_ISDN_DRV_AVMB1_T1PCI)	+= t1pci.o b1.o b1dma.o
30obj-$(CONFIG_ISDN_DRV_AVMB1_C4)		+= c4.o b1.o
31
32# The global Rules.make.
33
34include $(TOPDIR)/Rules.make
35
36# Link rules for multi-part drivers.
37
38kernelcapi.o: $(kernelcapi-objs)
39	$(LD) -r -o $@ $(kernelcapi-objs)
40
41