summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-01-17 22:33:50 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-01-17 22:33:50 +0000
commit7443c2caa6313bbc1655a41e25a192c8ad88817a (patch)
tree0cdd88138d9d570c04f6d58b2fc6861d638e32b2 /src
parentdb99b8b29dc392097463e06a6dd5933c1c8f6058 (diff)
added rule for compiling C++ sources
Diffstat (limited to 'src')
-rw-r--r--src/mesa/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/Makefile b/src/mesa/Makefile
index 272ecd0a1c..f898795ab5 100644
--- a/src/mesa/Makefile
+++ b/src/mesa/Makefile
@@ -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 $@