patch-1.3.9 linux/drivers/Makefile

Next file: linux/drivers/block/Makefile
Previous file: linux/arch/sparc/prom/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.8/linux/drivers/Makefile linux/drivers/Makefile
@@ -9,14 +9,13 @@
 
 .S.s:
 	$(CPP) -traditional $< -o $*.s
-.c.s:
-	$(CC) $(CFLAGS) -S $<
 .s.o:
 	$(AS) -c -o $*.o $<
 .c.o:
 	$(CC) $(CFLAGS) -c $<
 
 SUBDIRS	= block char net #streams
+ALL_SUBDIRS = block char net scsi #streams
 
 ifdef CONFIG_PCI
 SUBDIRS := $(SUBDIRS) pci
@@ -36,17 +35,9 @@
 	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i; done
 
 modules: dummy
-	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i modules; done
+	set -e; for i in $(ALL_SUBDIRS); do $(MAKE) -C $$i modules; done
 
 dep:
-	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i dep; done
-
-dummy:
-
-#
-# include a dependency file if one exists
-#
-ifeq (.depend,$(wildcard .depend))
-include .depend
-endif
+	set -e; for i in $(ALL_SUBDIRS); do $(MAKE) -C $$i dep; done
 
+include $(TOPDIR)/Rules.make

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this