summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/Makefile
blob: fc08d752a4aa349eab68dd21121f747ecc2ee40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Makefile for the kernel ISDN subsystem and device drivers.

# The target object and module list name.

O_TARGET	:= isdn.a

# Objects that export symbols.

export-objs	:= isdn_common.o

# Multipart objects.

list-multi	:= isdn.o
isdn-objs	:= isdn_net.o isdn_tty.o isdn_v110.o isdn_common.o

# Optional parts of multipart objects.

isdn-objs-$(CONFIG_ISDN_PPP)		+= isdn_ppp.o
isdn-objs-$(CONFIG_ISDN_X25)		+= isdn_concap.o isdn_x25iface.o
isdn-objs-$(CONFIG_ISDN_AUDIO)		+= isdn_audio.o
isdn-objs-$(CONFIG_ISDN_TTY_FAX)	+= isdn_ttyfax.o
isdn-objs-$(CONFIG_ISDN_WITH_ABC)	+= isdn_dwabc.o

isdn-objs				+= $(isdn-objs-y)

# Ordering constraints: isdn.o first, rest doesn't matter

# Each configuration option enables a list of files.

obj-$(CONFIG_ISDN)			+= isdn.o
obj-$(CONFIG_ISDN_PPP_BSDCOMP)		+= isdn_bsdcomp.o

# Object files in subdirectories

mod-subdirs				:= avmb1 eicon
subdir-$(CONFIG_ISDN_DIVERSION)		+= divert
subdir-$(CONFIG_ISDN_DRV_HISAX)		+= hisax
subdir-$(CONFIG_ISDN_DRV_ICN)		+= icn
subdir-$(CONFIG_ISDN_DRV_PCBIT)		+= pcbit
subdir-$(CONFIG_ISDN_DRV_SC)		+= sc
subdir-$(CONFIG_ISDN_CAPI)		+= avmb1
subdir-$(CONFIG_ISDN_DRV_LOOP)		+= isdnloop
subdir-$(CONFIG_ISDN_DRV_ACT2000)	+= act2000
subdir-$(CONFIG_ISDN_DRV_EICON)		+= eicon
subdir-$(CONFIG_HYSDN)			+= hysdn

obj-y += $(addsuffix /vmlinux-obj.o, $(subdir-y))

# The global Rules.make.

include $(TOPDIR)/Rules.make

# Link rules for multi-part drivers.

isdn.o: $(isdn-objs)
	$(LD) -r -o $@ $(isdn-objs)