Accidentially broke sdk and imagebuilder in [6857]
[openwrt.git] / rules.mk
index a6188f4..4bc7dfa 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -83,7 +83,8 @@ TARGET_CONFIGURE_OPTS:= \
   CXX=$(TARGET_CROSS)g++ \
   RANLIB=$(TARGET_CROSS)ranlib \
   STRIP=$(TARGET_CROSS)strip \
-  OBJCOPY=$(TARGET_CROSS)objcopy
+  OBJCOPY=$(TARGET_CROSS)objcopy \
+       OBJDUMP=$(TARGET_CROSS)objdump
 
 # strip an entire directory
 RSTRIP:= \
@@ -130,6 +131,18 @@ $(call shvar,$(1))=$$(call $(1))
 export $(call shvar,$(1))
 endef
 
+# Default targets for subdirectory calls
+# Parameters:
+#      1: dependencies for the prepare step
+define default_subtargets
+  %-download %-prepare %-compile %-install %-clean: FORCE
+       $$(MAKE) -C $$* $$(patsubst $$*-%,%,$$@)
+
+  %-compile: %-prepare 
+  %-install: %-compile
+  .SILENT: %-clean
+endef
+
 
 all:
 FORCE: ;
This page took 0.018979 seconds and 4 git commands to generate.