]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Made config work
authormahi <devnull@localhost>
Sun, 20 Jun 2010 08:00:19 +0000 (10:00 +0200)
committermahi <devnull@localhost>
Sun, 20 Jun 2010 08:00:19 +0000 (10:00 +0200)
makefile
scripts/rules.mk

index 8ac4e4e0c2bf533ecbac9b94659d6946c90ffc8a..423eaf11fa535e5adb9dce3cd2ad3d748d10a6c9 100644 (file)
--- a/makefile
+++ b/makefile
@@ -103,7 +103,7 @@ export def-y+=$(CFG_ARCH_$(ARCH)) $(CFG_MCU) $(CFG_CPU)
 comma:= ,\r
 split = $(subst $(comma), ,$(1))\r
 dir_cmd_goals  := $(call split,$(BDIR))\r
-cmd_cmd_goals := $(filter clean all config,$(MAKECMDGOALS))\r
+cmd_cmd_goals := $(filter all clean config,$(MAKECMDGOALS))\r
 \r
 # Check for CROSS_COMPILE\r
 ifneq ($(cmd_cmd_goals),)\r
@@ -125,6 +125,8 @@ endif
 libs:\r
        mkdir -p $@\r
 \r
+.PHONY all:\r
+\r
 all: libs $(dir_cmd_goals)\r
 \r
 \r
@@ -160,6 +162,7 @@ clean_all:
        \r
 config: $(dir_cmd_goals)       \r
        \r
+.PHONY clean:  \r
 clean: $(dir_cmd_goals)\r
        @echo "Clean:"\r
        @echo "  Removing objectfiles and libs for ARCH=$(ARCH)"\r
index 8a290062174b3044d8f2366318af5fce749f668c..171bb0433c14c5e87ea28df0bf5e7379dea019a6 100644 (file)
@@ -68,12 +68,15 @@ include $(ROOTDIR)/scripts/cc_$(COMPILER).mk
 include ../makefile\r
 \r
 inc-y += $(ROOTDIR)/include\r
-#inc-$(CFG_PPC) += $(ROOTDIR)/include/ppc\r
-#inc-$(CFG_ARM) += $(ROOTDIR)/include/arm\r
 inc-y += $(ROOTDIR)/include/$(ARCH_FAM)\r
 \r
-.PHONY config:\r
 \r
+.PHONY clean: \r
+clean: FORCE\r
+       @-rm -f *.o *.d *.h *.elf *.a\r
+\r
+\r
+.PHONY config: \r
 config: FORCE\r
        @echo "board   modules:" $(MOD_AVAIL)\r
        @echo "example modules:" $(MOD_USE)\r
@@ -85,12 +88,10 @@ $(ROOTDIR)/binaries:
        @mkdir -p $@\r
 \r
 # build- targets are "end" target that the included makefile want's to build\r
+.PHONY all:\r
 all: $(build-exe-y) $(build-hex-y) $(build-lib-y) $(ROOTDIR)/binaries\r
        @cp -v $(build-lib-y) $(build-exe-y) $(build-hex-y) $(ROOTDIR)/binaries\r
 \r
-#.PHONY post_process:\r
-#post_process:: $(ROOTDIR)/binaries\r
-        \r
 \r
 # Determine what kind of filetype to build from  \r
 VPATH += $(ROOTDIR)/$(SUBDIR)/src\r
@@ -166,5 +167,3 @@ $(size-exe-y): $(build-exe-y)
        $(Q)$(OBJDUMP) -h $<\r
        @echo TODO: Parse the file....\r
 \r
-.PHONY clean:\r
-       @-rm -f *.o *.d *.h *.elf *.a\r