summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/rules.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/build/rules.mk b/build/rules.mk
index 3097da5076..c2f23b5f19 100644
--- a/build/rules.mk
+++ b/build/rules.mk
@@ -43,13 +43,15 @@ DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/main
moduledir = $(EXTENSION_DIR)
+CXX_SUFFIX = .cxx
+
.SUFFIXES:
-.SUFFIXES: .slo .c .cxx .lo .o .s .y .l
+.SUFFIXES: .slo .c $(CXX_SUFFIX) .lo .o .s .y .l
.c.o:
$(COMPILE) -c $<
-.cxx.o:
+$(CXX_SUFFIX).o:
$(CXX_COMPILE) -c $<
.s.o:
@@ -58,7 +60,7 @@ moduledir = $(EXTENSION_DIR)
.c.lo:
$(PHP_COMPILE)
-.cxx.lo:
+$(CXX_SUFFIX).lo:
$(CXX_PHP_COMPILE)
.s.lo:
@@ -67,7 +69,7 @@ moduledir = $(EXTENSION_DIR)
.c.slo:
$(SHARED_COMPILE)
-.cxx.slo:
+$(CXX_SUFFIX).slo:
$(CXX_SHARED_COMPILE)
.y.c: