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
libs:\r
mkdir -p $@\r
\r
+.PHONY all:\r
+\r
all: libs $(dir_cmd_goals)\r
\r
\r
\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
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
@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
$(Q)$(OBJDUMP) -h $<\r
@echo TODO: Parse the file....\r
\r
-.PHONY clean:\r
- @-rm -f *.o *.d *.h *.elf *.a\r