patch-2.4.4 linux/drivers/s390/Makefile

Next file: linux/drivers/s390/block/Makefile
Previous file: linux/drivers/s390/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/drivers/s390/Makefile linux/drivers/s390/Makefile
@@ -1,39 +1,14 @@
 #
-# Makefile for the linux i386-specific parts of the memory manager.
+# Makefile for the S/390 specific device drivers
 #
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definition is now in the main makefile...
-
-all: io.o
 
-CFLAGS += 
 O_TARGET := io.o
 
-obj-y	:= s390io.o s390mach.o s390dyn.o idals.o ccwcache.o
-
 subdir-y := block char misc net
 subdir-m := $(subdir-y)
+obj-y := $(foreach dir,$(subdir-y),$(dir)/s390-$(dir).o)
 
-obj-y += block/s390-block.o \
-  char/s390-char.o \
-  misc/s390-misc.o \
-  net/s390-net.o 
-
-io.o: $(obj-y)
-
-block/s390-block.o: dummy
-	$(MAKE)  -C block
-
-char/s390-char.o: dummy
-	$(MAKE)  -C char
-
-misc/s390-misc.o: dummy
-	$(MAKE) -C misc
-
-net/s390-net.o: dummy
-	$(MAKE) -C net
+obj-y += s390io.o s390mach.o s390dyn.o idals.o ccwcache.o
+export-objs += ccwcache.o idals.o s390dyn.o s390io.o
 
 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)