aboutsummaryrefslogtreecommitdiffstats
path: root/mk/lang-c.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/lang-c.mk')
-rw-r--r--mk/lang-c.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/lang-c.mk b/mk/lang-c.mk
index 5d952b6..b8076d6 100644
--- a/mk/lang-c.mk
+++ b/mk/lang-c.mk
@@ -112,11 +112,11 @@ _CPPFLAGS += $(foreach D,$(_ALL_DIRS),-D'$(D)="$($(D))"')
# MORE HELP VARIABLES:
# Compilation and linking flags, and command.
-CPPFLAGS = $(_CPPFLAGS)
-CFLAGS = $(OPTIMISE) $(WARN) $(_CFLAGS)
-LDFLAGS = $(OPTIMISE) $(WARN) $(_LDFLAGS)
-__CC = $(CC) -std=$(_C_STD) -c
-__LD = $(CC) -std=$(_C_STD)
+CPPFLAGS =
+CFLAGS = $(OPTIMISE) $(WARN)
+LDFLAGS = $(OPTIMISE) $(WARN)
+__CC = $(CC) -std=$(_C_STD) -c $(_CPPFLAGS) $(_CFLAGS)
+__LD = $(CC) -std=$(_C_STD) $(_LDFLAGS)
__CC_POST = $(CPPFLAGS) $(CFLAGS) $(EXTRA_CPPFLAGS) $(EXTRA_CFLAGS)
__LD_POST = $(LDFLAGS) $(EXTRA_LDFLAGS)