]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* maintMakefile: Add a rule for storing preprocessor output.
authorPaul Smith <psmith@gnu.org>
Sun, 10 Apr 2016 00:06:06 +0000 (20:06 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 10 Apr 2016 00:06:46 +0000 (20:06 -0400)
maintMakefile

index 0720669afbad3f64cb88ef4eb9f78e84d20250a9..aead0e8b5bb60c4e2cc4a5e821dda0c03d0d3a72 100644 (file)
@@ -39,6 +39,10 @@ MTEMPLATES = Makefile.DOS SMakefile
 # These are built as a side-effect of the dist rule
 #all-am: $(TEMPLATES) $(MTEMPLATES) build.sh.in
 
+# Create preprocessor output files--GCC specific!
+%.i : %.c
+       $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -E -dD -o $@ $<
+
 # General rule for turning a .template into a regular file.
 #
 $(TEMPLATES) : % : %.template Makefile