1# Makefile for the eicon ISDN device driver
2
3# The target object and module list name.
4
5O_TARGET	:= vmlinux-obj.o
6
7# Objects that export symbols.
8
9export-objs	:= Divas_mod.o eicon_mod.o
10
11# Multipart objects.
12
13list-multi	:= eicon.o divas.o
14eicon-objs	:= eicon_mod.o eicon_isa.o eicon_pci.o eicon_idi.o \
15		   eicon_io.o
16divas-objs	:= common.o idi.o bri.o pri.o log.o xlog.o kprintf.o fpga.o \
17		   fourbri.o lincfg.o linchr.o linsys.o linio.o Divas_mod.o
18
19# Optional parts of multipart objects.
20
21eicon-objs-$(CONFIG_ISDN_DRV_EICON_PCI) += common.o idi.o bri.o pri.o log.o \
22		   xlog.o kprintf.o fpga.o fourbri.o lincfg.o linchr.o \
23		   linsys.o linio.o
24
25eicon-objs 	+= $(eicon-objs-y)
26
27# Each configuration option enables a list of files.
28
29obj-$(CONFIG_ISDN_DRV_EICON_OLD)    	+= eicon.o
30obj-$(CONFIG_ISDN_DRV_EICON_DIVAS)	+= divas.o
31
32include $(TOPDIR)/Rules.make
33
34# Link rules for multi-part drivers.
35
36eicon.o: $(eicon-objs)
37	$(LD) -r -o $@ $(eicon-objs)
38
39divas.o: $(divas-objs)
40	$(LD) -r -o $@ $(divas-objs)
41
42
43