Skip to content

Commit

Permalink
Add .c.i: suffix rule for convenience
Browse files Browse the repository at this point in the history
.i files as in perl5 are preprocessed files.
  • Loading branch information
Reini Urban committed Sep 23, 2012
1 parent cea0a74 commit 543fc03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/gen/makefiles/root.in
Expand Up @@ -591,10 +591,12 @@ MAKE_C = @make_c@
# These need to be above lines that define suffix rules to be portable
# (certainly FreeBSD make doesn't grok the pir.pbc rule otherwise)

.SUFFIXES : .c .S .s .pmc .dump $(O) .str .pir .pbc
.SUFFIXES : .c .S .s .i .pmc .dump $(O) .str .pir .pbc

.c$(O) : # suffix rule (limited support)
$(CC) $(CFLAGS) @optimize@ $(CC_WARN) -I$(@D) -Isrc/ @cc_o_out@$@ -c $<
.c.i : # suffix rule (limited support)
$(CC) -E $(CFLAGS) -I$(@D) -Isrc/ @cc_o_out@$@ -c $<

#UNLESS(win32):.s$(O) : # suffix rule (limited support)
#UNLESS(win32): $(CC) $(CFLAGS) @optimize@ $(CC_WARN) -I$(@D) @cc_o_out@$@ -c $<
Expand Down

0 comments on commit 543fc03

Please sign in to comment.