diff options
Diffstat (limited to 'arch/arm/mm/Makefile')
-rw-r--r-- | arch/arm/mm/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/arm/mm/Makefile b/arch/arm/mm/Makefile index be9be35f0..fc9809144 100644 --- a/arch/arm/mm/Makefile +++ b/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-arm2,3.o: ../lib/constants.h 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 |