cvs: /php4/regex Makefile.in /php4 Makefile.in
| From: | Thies C . Arntzen | Date: | Tue, 10 Aug 1999 09:16:20 +0000 |
| Subject: | cvs: /php4/regex Makefile.in /php4 Makefile.in | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3266@lists.php.net to get a copy of this message | ||
thies Tue Aug 10 05:16:20 1999 EDT
Modified files:
/php4/regex Makefile.in
/php4 Makefile.in
Log:
you can now override the CFLAGS while doing make - eg:
make CFLAGS="-g"
Index: php4/regex/Makefile.in
diff -u php4/regex/Makefile.in:1.3 php4/regex/Makefile.in:1.4
--- php4/regex/Makefile.in:1.3 Thu Jul 1 01:45:58 1999
+++ php4/regex/Makefile.in Tue Aug 10 05:16:19 1999
@@ -12,7 +12,8 @@
# Put -Dconst= in for a pre-ANSI compiler.
# Do not take -DPOSIX_MISTAKE out.
# REGCFLAGS isn't important to you (it's for my use in some special contexts).
-CFLAGS=-I$(srcdir) -I. -DPOSIX_MISTAKE @CFLAGS@
+CFLAGS=@CFLAGS@
+COMPILE=$(CC) $(CFLAGS) -I$(srcdir) -I. -DPOSIX_MISTAKE
# If you have a pre-ANSI compiler, put -o into MKHFLAGS. If you want
# the Berkeley __P macro, put -b in.
@@ -40,6 +41,9 @@
.SUFFIXES: .ih .h
.c.ih:
sh $(srcdir)/mkh $(MKHFLAGS) -p $< >$@
+
+.c.o:
+ $(COMPILE) -c $<
all lib: libregex.a
Index: php4/Makefile.in
diff -u php4/Makefile.in:1.51 php4/Makefile.in:1.52
--- php4/Makefile.in:1.51 Sat Jul 24 17:19:54 1999
+++ php4/Makefile.in Tue Aug 10 05:16:19 1999
@@ -24,7 +24,7 @@
# +----------------------------------------------------------------------+
#
-# $Id: Makefile.in,v 1.51 1999/07/24 21:19:54 andrey Exp $
+# $Id: Makefile.in,v 1.52 1999/08/10 09:16:19 thies Exp $
#
prefix = @prefix@
@@ -54,7 +54,8 @@
LDFLAGS_SHLIB = @LDFLAGS_SHLIB@
LDFLAGS_SHLIB_EXPORT = @LDFLAGS_SHLIB_EXPORT@
CPPFLAGS = @CPPFLAGS@
-CFLAGS = @CFLAGS@ $(CFLAGS_SHLIB) $(CPPFLAGS) $(INCLUDE) @DEBUG_CFLAGS@ @STRONGHOLD@ $(PROF_CFLAGS)
+CFLAGS = @CFLAGS@ @DEBUG_CFLAGS@ $(PROF_CFLAGS)
+COMPILE = $(CC) $(CFLAGS) $(CFLAGS_SHLIB) $(CPPFLAGS) $(INCLUDE) @STRONGHOLD@
LDFLAGS = @RPATHS@ @LDFLAGS@ $(LDFLAGS_SHLIB) $(LDFLAGS_SHLIB_EXPORT) -L$(ZEND_DIR)
REGCFLAGS = $(CFLAGS)
RANLIB = @RANLIB@
@@ -121,7 +122,7 @@
bison -p cfg -v -d $(srcdir)/configuration-parser.y -o configuration-parser.c
configuration-scanner.o: configuration-scanner.c
- $(CC) $(CFLAGS) $(LEX_CFLAGS) -c configuration-scanner.c
+ $(COMPILE) $(LEX_CFLAGS) -c configuration-scanner.c
configuration-scanner.c: $(srcdir)/configuration-scanner.l
flex -Pcfg -oconfiguration-scanner.c -i $(srcdir)/configuration-scanner.l
@@ -222,10 +223,7 @@
rm -f *~
.c.o:
- @rm -f $@
- $(CC) $(CFLAGS) -c $< -o $@
-# @bn=
echo $@ | sed -e 's#functions/##'; test -f $@ || \
-# (test "$@" != "$$bn" && test -f "$$bn" && mv $$bn
$@)
+ $(COMPILE) -c $<
parser-scanner: configuration-parser.c configuration-scanner.c