patch-2.4.4 linux/drivers/s390/char/Makefile
Next file: linux/drivers/s390/char/con3215.c
Previous file: linux/drivers/s390/ccwcache.c
Back to the patch index
Back to the overall index
- Lines: 70
- Date:
Wed Apr 11 19:02:29 2001
- Orig file:
v2.4.3/linux/drivers/s390/char/Makefile
- Orig date:
Tue Feb 13 14:13:44 2001
diff -u --recursive --new-file v2.4.3/linux/drivers/s390/char/Makefile linux/drivers/s390/char/Makefile
@@ -1,33 +1,42 @@
-all: s390-char.o
+# Makefile for the S/390 supported character devices
+#
+# 4 January 2001 Richard Hitt
+# Modeled after similar files of Michael Elizabeth Chastain
+# Rewritten to use lists instead of if-statements.
-CFLAFS +=
-O_TARGET := s390-char.o
+O_TARGET := s390-char.o
-obj-$(CONFIG_3215_CONSOLE) += con3215.o
+export-objs :=
+list-multi := tub3270.o tape390.o
-obj-$(CONFIG_HWC) += hwc_con.o hwc_rw.o hwc_tty.o
+obj-y :=
+obj-m :=
+obj-n :=
+obj- :=
-# stuff for building tape390.o
-T390_OBJS = tape.o
-ifeq ($(CONFIG_S390_TAPE_CHAR),y)
- T390_OBJS += tapechar.o
-endif
-ifeq ($(CONFIG_S390_TAPE_BLOCK),y)
- T390_OBJS += tapeblock.o
-endif
-ifeq ($(CONFIG_S390_TAPE_3480),y)
- T390_OBJS += tape3480.o
- CONFIG_S390_TAPE_NEED_34xx = y
-endif
-ifeq ($(CONFIG_S390_TAPE_3490),y)
- T390_OBJS += tape3490.o
- CONFIG_S390_TAPE_NEED_34xx = y
-endif
-ifeq ($(CONFIG_S390_TAPE_NEED_34xx),y)
- T390_OBJS += tape34xx.o
-endif
-obj-$(CONFIG_S390_TAPE) += tape390.o
+tub3270-objs := tuball.o tubfs.o tubtty.o \
+ tubttyaid.o tubttybld.o tubttyrcl.o \
+ tubttyscl.o tubttysiz.o
+
+obj-y += ctrlchar.o
+obj-$(CONFIG_3215_CONSOLE) += con3215.o
+obj-$(CONFIG_HWC) += hwc_con.o hwc_rw.o hwc_tty.o
+obj-$(CONFIG_3270) += tub3270.o
+
+tape-y := tape.o
+tape-$(CONFIG_S390_TAPE_CHAR) += tapechar.o
+tape-$(CONFIG_S390_TAPE_BLOCK) += tapeblock.o
+tape-$(CONFIG_S390_TAPE_3480) += tape3480.o tape34xx.o
+tape-$(CONFIG_S390_TAPE_3490) += tape3490.o tape34xx.o
+tape390-objs := $(sort $(tape-y))
+obj-$(CONFIG_S390_TAPE) += tape390.o
+
+# Hand off to Rules.make.
-tape390.o: $(T390_OBJS)
- $(LD) -r -o $@ $(T390_OBJS)
include $(TOPDIR)/Rules.make
+
+tub3270.o: $(tub3270-objs)
+ $(LD) -r -o $@ $(tub3270-objs)
+
+tape390.o: $(tape390-objs)
+ $(LD) -r -o $@ $(tape390-objs)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)