build: Add rule for building host-specific object files
authorDiego Biurrun <diego@biurrun.de>
Sun, 1 Dec 2013 05:01:51 +0000 (06:01 +0100)
committerDiego Biurrun <diego@biurrun.de>
Mon, 2 Dec 2013 12:13:09 +0000 (13:13 +0100)
Makefile

index 20ce686..25c3b32 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,9 @@ COMPILE_HOSTC = $(call COMPILE,HOSTCC)
 %.o: %.S
        $(COMPILE_S)
 
+%_host.o: %.c
+       $(COMPILE_HOSTC)
+
 %.i: %.c
        $(CC) $(CCFLAGS) $(CC_E) $<