summaryrefslogtreecommitdiff
path: root/include/makeinclude/rules.local.GNU
diff options
context:
space:
mode:
Diffstat (limited to 'include/makeinclude/rules.local.GNU')
-rw-r--r--include/makeinclude/rules.local.GNU6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/makeinclude/rules.local.GNU b/include/makeinclude/rules.local.GNU
index 2e947e9a7c4..e381b44f172 100644
--- a/include/makeinclude/rules.local.GNU
+++ b/include/makeinclude/rules.local.GNU
@@ -106,6 +106,12 @@ endif
nullstring :=
CC_OUTPUT_FLAG_SEP ?= $(nullstring) #space
+%.$(PREPROCESS_SUFFIX): %.c
+ $(PREPROCESS.c) $(CC_OUTPUT_FLAG)$(CC_OUTPUT_FLAG_SEP)$@ $<
+
+%.$(PREPROCESS_SUFFIX): %.cpp
+ $(PREPROCESS.cc) $(CC_OUTPUT_FLAG)$(CC_OUTPUT_FLAG_SEP)$@ $<
+
$(VDIR)%.$(OBJEXT): %.c
$(mk_obj_out_dir)
$(COMPILE.c) $(CC_OUTPUT_FLAG)$(CC_OUTPUT_FLAG_SEP)$@ $<