Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add CXX compilation rules.

  • Loading branch information...
commit 34851f7a2f109e3b4a5badd2cd790bb2a75945f1 1 parent e8b60ad
@bacek bacek authored rurban committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 config/gen/makefiles/root.in
View
4 config/gen/makefiles/root.in
@@ -99,6 +99,7 @@ YACC = @yacc@
LEX = @lex@
AS = @as@
CC = @cc@
+CXX = @cxx@
CC_INC = @cc_inc@
C_LIBS = @libs@
CC_SHARED = @cc_shared@
@@ -613,6 +614,9 @@ MAKE_C = @make_c@
.c.i : # suffix rule (limited support)
$(CC) -E $(CFLAGS) -I$(@D) -Isrc/ @cc_o_out@$@ -c $<
+.cpp$(O) : # suffix rule (limited support)
+ $(CXX) $(CFLAGS) $(CXXFLAGS) @optimize@ -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 $<
Please sign in to comment.
Something went wrong with that request. Please try again.