Browse files

Add CXX compilation rules.

  • Loading branch information...
1 parent 04933aa commit 9a03493ba7b0ac450f361a1c877647000d2791b5 @bacek bacek committed Apr 25, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 config/gen/makefiles/root.in
View
4 config/gen/makefiles/root.in
@@ -88,6 +88,7 @@ YACC = @yacc@
LEX = @lex@
AS = @as@
CC = @cc@
+CXX = @cxx@
CC_INC = @cc_inc@
C_LIBS = @libs@
CC_SHARED = @cc_shared@
@@ -596,6 +597,9 @@ MAKE_C = @make_c@
.c$(O) : # suffix rule (limited support)
$(CC) $(CFLAGS) @optimize@ $(CC_WARN) -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 $<

0 comments on commit 9a03493

Please sign in to comment.