patch-2.2.19 linux/drivers/isdn/eicon/Makefile
Next file: linux/drivers/isdn/eicon/adapter.h
Previous file: linux/drivers/isdn/eicon/Divas_mod.c
Back to the patch index
Back to the overall index
- Lines: 55
- Date:
Sun Mar 25 11:37:32 2001
- Orig file:
v2.2.18/drivers/isdn/eicon/Makefile
- Orig date:
Sun Mar 25 11:13:08 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/isdn/eicon/Makefile linux/drivers/isdn/eicon/Makefile
@@ -1,13 +1,42 @@
-L_OBJS :=
-M_OBJS :=
-O_OBJS := eicon_mod.o eicon_isa.o eicon_pci.o eicon_idi.o eicon_io.o
-
-O_TARGET :=
-ifeq ($(CONFIG_ISDN_DRV_EICON),y)
- O_TARGET += eicon.o
-else
- O_TARGET += eicon.o
- M_OBJS = eicon.o
-endif
+# Makefile for the eicon ISDN device driver
+
+# The target object and module list name.
+
+O_TARGET := vmlinux-obj.o
+
+# Objects that export symbols.
+
+export-objs := Divas_mod.o eicon_mod.o
+
+# Multipart objects.
+
+list-multi := eicon.o divas.o
+eicon-objs := eicon_mod.o eicon_isa.o eicon_pci.o eicon_idi.o \
+ eicon_io.o
+divas-objs := common.o idi.o bri.o pri.o log.o xlog.o kprintf.o fpga.o \
+ fourbri.o lincfg.o linchr.o linsys.o linio.o Divas_mod.o
+
+# Optional parts of multipart objects.
+
+eicon-objs-$(CONFIG_ISDN_DRV_EICON_PCI) += common.o idi.o bri.o pri.o log.o \
+ xlog.o kprintf.o fpga.o fourbri.o lincfg.o linchr.o \
+ linsys.o linio.o
+
+eicon-objs += $(eicon-objs-y)
+
+# Each configuration option enables a list of files.
+
+obj-$(CONFIG_ISDN_DRV_EICON_OLD) += eicon.o
+obj-$(CONFIG_ISDN_DRV_EICON_DIVAS) += divas.o
+
+include $(TOPDIR)/drivers/isdn/Rules.make
+
+# Link rules for multi-part drivers.
+
+eicon.o: $(eicon-objs)
+ $(LD) -r -o $@ $(eicon-objs)
+
+divas.o: $(divas-objs)
+ $(LD) -r -o $@ $(divas-objs)
+
-include $(TOPDIR)/Rules.make
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)