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 37faa76fdaccfd9e9dceb68d35a34695ab534adb..5a7d5917e2801d592adcde4a0e44d4a6e9e61ece 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)/' $^ > $@