patch-2.1.101 linux/arch/arm/mm/Makefile

Next file: linux/arch/arm/mm/fault-armo.c
Previous file: linux/arch/arm/lib/string.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/arch/arm/mm/Makefile linux/arch/arm/mm/Makefile
@@ -7,6 +7,7 @@
 #
 # Note 2! The CFLAGS definition is now in the main makefile...
 
+all:	lib first_rule
 ifeq ($(MACHINE),a5k)
 MMARCH=arc
 else
@@ -30,13 +31,14 @@
 proc-arm6,7.o:	../lib/constants.h
 proc-sa110.o:	../lib/constants.h
 
-.PHONY: ../lib/constants.h
-../lib/constants.h:
-	@$(MAKE) -C ../lib constants.h
-
-ifneq ($(CONFIG_BINUTILS_NEW),y)
 %.o: %.S
+ifneq ($(CONFIG_BINUTILS_NEW),y)
 	$(CC) $(CFLAGS) -D__ASSEMBLY__ -E $< | tr ';$$' '\n#' > ..$@.tmp.s
 	$(CC) $(CFLAGS:-pipe=) -c -o $@ ..$@.tmp.s
 	$(RM) ..$@.tmp.s
+else
+	$(CC) $(CFLAGS) -D__ASSEMBLY__ -c -o $@ $<
 endif
+
+.PHONY:	lib
+lib:;	@$(MAKE) -C ../lib constants.h

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov