diff options
author | Sascha Schumann <sas@php.net> | 2000-07-10 08:45:07 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-07-10 08:45:07 +0000 |
commit | dad6ac414e10619d0385a0cf221ed07bd91bd885 (patch) | |
tree | 100939482775b08792c46cfb7e40729ade86bd81 /build | |
parent | eb0cbbd2d979dd425d5c0653c76dead84df6927e (diff) | |
download | php-git-dad6ac414e10619d0385a0cf221ed07bd91bd885.tar.gz |
Make the cxx suffix easily adjustable
Diffstat (limited to 'build')
-rw-r--r-- | build/rules.mk | 10 |
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: |