]> rtime.felk.cvut.cz Git - arc.git/blobdiff - scripts/rules.mk
Made config work
[arc.git] / scripts / rules.mk
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