support build uu -> o
author黄涛 <huangtao@rock-chips.com>
Fri, 17 Dec 2010 14:03:17 +0000 (22:03 +0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 17 Dec 2010 14:03:17 +0000 (22:03 +0800)
Makefile
scripts/Makefile.build

index 240d6a0743a2adb1ebb96a4e7cf051fb5285a038..7be29d6c48cd138952d043b32e3ef67d5088b8c4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1596,3 +1596,7 @@ FORCE:
 # Declare the contents of the .PHONY variable as phony.  We keep that
 # information in a variable so we can use it in if_changed and friends.
 .PHONY: $(PHONY)
+
+
+%.o: %.uu prepare scripts FORCE
+       $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
index 341b58902ffced6d70801f6e90ea85f60bcee88d..17e8638eabba3643424b38dbe1c57a707cdf8c0f 100644 (file)
@@ -388,3 +388,12 @@ endif
 # information in a variable se we can use it in if_changed and friends.
 
 .PHONY: $(PHONY)
+
+
+# .uu -> .o
+# ---------------------------------------------------------------------------
+quiet_cmd_uudecode_o_uu = DECODE  $@
+      cmd_uudecode_o_uu = uudecode -o $@ $<
+
+$(obj)/%.o: $(src)/%.uu FORCE
+       $(call if_changed,uudecode_o_uu)