build: Use portable compiler flag constructs in header compilation rule
authorDiego Biurrun <diego@biurrun.de>
Fri, 27 Jul 2012 10:06:01 +0000 (12:06 +0200)
committerDiego Biurrun <diego@biurrun.de>
Sat, 28 Jul 2012 00:02:20 +0000 (02:02 +0200)
Makefile

index 37faa76..5a7d591 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -46,7 +46,7 @@ COMPILE_S = $(call COMPILE,AS)
        $(COMPILE_S)
 
 %.ho: %.h
-       $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ -x c $<
+       $(CC) $(CCFLAGS) -c $(CC_O) -x c $<
 
 %.ver: %.v
        $(Q)sed 's/$$MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ > $@