summaryrefslogtreecommitdiff
path: root/maintMakefile
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2016-04-09 20:06:06 -0400
committerPaul Smith <psmith@gnu.org>2016-04-09 20:06:46 -0400
commit3fc99a48e14b3f61d7103d93eb7159f3b980a086 (patch)
tree146ed1979a3782dc4e5871ae53b0c01176f8fd15 /maintMakefile
parent87a5f98d248fe63fe6e3e53ee3e1b1b1fa5e49dc (diff)
downloadmake-git-3fc99a48e14b3f61d7103d93eb7159f3b980a086.tar.gz
* maintMakefile: Add a rule for storing preprocessor output.
Diffstat (limited to 'maintMakefile')
-rw-r--r--maintMakefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/maintMakefile b/maintMakefile
index 0720669a..aead0e8b 100644
--- a/maintMakefile
+++ b/maintMakefile
@@ -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