1# Makefile for the hisax ISDN device driver
2
3# The target object and module list name.
4
5O_TARGET	  := vmlinux-obj.o
6
7# Define maximum number of cards
8
9EXTRA_CFLAGS      += -DHISAX_MAX_CARDS=$(CONFIG_HISAX_MAX_CARDS)
10
11# Objects that export symbols.
12
13export-objs	  := config.o hisax_isac.o isdnhdlc.o
14
15# Multipart objects.
16
17list-multi	  := hisax.o hisax_st5481.o
18hisax-objs	  := config.o isdnl1.o tei.o isdnl2.o isdnl3.o \
19		     lmgr.o q931.o callc.o fsm.o cert.o
20hisax_st5481-objs := st5481_init.o st5481_usb.o st5481_d.o st5481_b.o
21
22# Optional parts of multipart objects.
23hisax-objs-$(CONFIG_HISAX_EURO) += l3dss1.o
24hisax-objs-$(CONFIG_HISAX_NI1) += l3ni1.o
25hisax-objs-$(CONFIG_HISAX_1TR6) += l3_1tr6.o
26
27hisax-objs-$(CONFIG_HISAX_16_0) += teles0.o isac.o arcofi.o hscx.o
28hisax-objs-$(CONFIG_HISAX_16_3) += teles3.o isac.o arcofi.o hscx.o
29hisax-objs-$(CONFIG_HISAX_TELESPCI) += telespci.o isac.o arcofi.o hscx.o
30hisax-objs-$(CONFIG_HISAX_S0BOX) += s0box.o isac.o arcofi.o hscx.o
31hisax-objs-$(CONFIG_HISAX_AVM_A1) += avm_a1.o isac.o arcofi.o hscx.o
32hisax-objs-$(CONFIG_HISAX_AVM_A1_PCMCIA) += avm_a1p.o isac.o arcofi.o hscx.o
33hisax-objs-$(CONFIG_HISAX_FRITZPCI) += avm_pci.o isac.o arcofi.o
34hisax-objs-$(CONFIG_HISAX_ELSA) += elsa.o isac.o arcofi.o hscx.o
35hisax-objs-$(CONFIG_HISAX_IX1MICROR2) += ix1_micro.o isac.o arcofi.o hscx.o
36hisax-objs-$(CONFIG_HISAX_DIEHLDIVA) += diva.o isac.o arcofi.o hscx.o ipacx.o
37hisax-objs-$(CONFIG_HISAX_ASUSCOM) += asuscom.o isac.o arcofi.o hscx.o
38hisax-objs-$(CONFIG_HISAX_TELEINT) += teleint.o isac.o arcofi.o hfc_2bs0.o
39hisax-objs-$(CONFIG_HISAX_SEDLBAUER) += sedlbauer.o isac.o arcofi.o hscx.o isar.o
40hisax-objs-$(CONFIG_HISAX_SPORTSTER) += sportster.o isac.o arcofi.o hscx.o
41hisax-objs-$(CONFIG_HISAX_MIC) += mic.o isac.o arcofi.o hscx.o
42hisax-objs-$(CONFIG_HISAX_NETJET) += nj_s.o netjet.o isac.o arcofi.o
43hisax-objs-$(CONFIG_HISAX_NETJET_U) += nj_u.o netjet.o icc.o
44hisax-objs-$(CONFIG_HISAX_HFCS) += hfcscard.o hfc_2bds0.o
45hisax-objs-$(CONFIG_HISAX_HFC_PCI) += hfc_pci.o
46hisax-objs-$(CONFIG_HISAX_HFC_SX) += hfc_sx.o
47hisax-objs-$(CONFIG_HISAX_NICCY) += niccy.o isac.o arcofi.o hscx.o
48hisax-objs-$(CONFIG_HISAX_ISURF) += isurf.o isac.o arcofi.o isar.o
49hisax-objs-$(CONFIG_HISAX_HSTSAPHIR) += saphir.o isac.o arcofi.o hscx.o
50hisax-objs-$(CONFIG_HISAX_BKM_A4T) += bkm_a4t.o isac.o arcofi.o jade.o
51hisax-objs-$(CONFIG_HISAX_SCT_QUADRO) += bkm_a8.o isac.o arcofi.o hscx.o
52hisax-objs-$(CONFIG_HISAX_GAZEL) += gazel.o isac.o arcofi.o hscx.o
53hisax-objs-$(CONFIG_HISAX_W6692) += w6692.o
54hisax-objs-$(CONFIG_HISAX_ENTERNOW_PCI) += enternow_pci.o amd7930_fn.o
55#hisax-objs-$(CONFIG_HISAX_TESTEMU) += testemu.o
56
57hisax-objs += $(sort $(hisax-objs-y))
58
59# Each configuration option enables a list of files.
60
61obj-$(CONFIG_ISDN_DRV_HISAX)		+= hisax.o
62obj-$(CONFIG_HISAX_SEDLBAUER_CS)	+= sedlbauer_cs.o
63obj-$(CONFIG_HISAX_ELSA_CS)		+= elsa_cs.o
64obj-$(CONFIG_HISAX_AVM_A1_CS)		+= avma1_cs.o
65obj-$(CONFIG_HISAX_ST5481)		+= hisax_st5481.o isdnhdlc.o
66obj-$(CONFIG_HISAX_FRITZ_PCIPNP)        += hisax_isac.o hisax_fcpcipnp.o
67obj-$(CONFIG_USB_AUERISDN)	        += isdnhdlc.o
68
69CERT := $(shell md5sum -c md5sums.asc >> /dev/null;echo $$?)
70CFLAGS_cert.o := -DCERTIFICATION=$(CERT)
71
72include $(TOPDIR)/Rules.make
73
74# Link rules for multi-part drivers.
75
76hisax.o: $(hisax-objs)
77	$(LD) -r -o $@ $(hisax-objs)
78
79hisax_st5481.o: $(hisax_st5481-objs)
80	$(LD) -r -o $@ $(hisax_st5481-objs)
81