added rule for compiling C++ sources
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 17 Jan 2005 22:33:50 +0000 (22:33 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 17 Jan 2005 22:33:50 +0000 (22:33 +0000)
src/mesa/Makefile

index 272ecd0a1cd59b3581afc557d6ed122359b025fd..f898795ab5433a7d03e5b656a94721c6c66a26ae 100644 (file)
@@ -11,9 +11,14 @@ GL_MINOR = 5
 GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
 
 
+.SUFFIXES : .cc
+
 .c.o:
        $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
 
+.cc.o:
+       $(CXX) -c $(INCLUDE_DIRS) $(CXXFLAGS) $< -o $@
+
 .S.o:
        $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@