build: Add shorthand for HOSTCC compile macro
authorDiego Biurrun <diego@biurrun.de>
Mon, 2 Dec 2013 02:51:48 +0000 (03:51 +0100)
committerDiego Biurrun <diego@biurrun.de>
Mon, 2 Dec 2013 12:13:09 +0000 (13:13 +0100)
Makefile
common.mak

index 89f04a0..20ce686 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,7 @@ endef
 
 COMPILE_C = $(call COMPILE,CC)
 COMPILE_S = $(call COMPILE,AS)
+COMPILE_HOSTC = $(call COMPILE,HOSTCC)
 
 %.o: %.c
        $(COMPILE_C)
index 01c4b63..6836c11 100644 (file)
@@ -39,7 +39,7 @@ checkheaders: $(HOBJS)
 alltools: $(TOOLS)
 
 $(HOSTOBJS): %.o: %.c
-       $(call COMPILE,HOSTCC)
+       $(COMPILE_HOSTC)
 
 $(HOSTPROGS): %$(HOSTEXESUF): %.o
        $(HOSTLD) $(HOSTLDFLAGS) $(HOSTLD_O) $^ $(HOSTLIBS)