summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hedbor <neotron@php.net>2000-06-05 21:05:07 +0000
committerDavid Hedbor <neotron@php.net>2000-06-05 21:05:07 +0000
commitff8a716efe17e87ac381d9931a685ff275ac0b2c (patch)
treec6e1c7aa1fdb9125bc214d62af657aa170ca6007
parent7fdfcc28ec9f1c68dfe085db71411e660ce5d336 (diff)
downloadphp-git-ff8a716efe17e87ac381d9931a685ff275ac0b2c.tar.gz
Added a new user-definable include variable, PRE_INCLUDES. It works
like EXTRA_INCLUDES but is added before the global INCLUDES variable. # # This was needed for the roxen SAPI module, which requires the PHP4 # include dirs to be after the Pike include dirs. I can't make the # Pike include dir global though, since Pike includes then conflict # with PHP4 includes in the rest of the compile.
-rw-r--r--build/rules.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/rules.mk b/build/rules.mk
index 6433867d9b..fa67a10bf2 100644
--- a/build/rules.mk
+++ b/build/rules.mk
@@ -26,14 +26,14 @@
include $(top_builddir)/config_vars.mk
-COMPILE = $(CC) $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
-LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
+COMPILE = $(CC) $(DEFS) $(PRE_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(PRE_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@
mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
INSTALL = $(top_srcdir)/build/shtool install -c
INSTALL_DATA = $(INSTALL) -m 644
-SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< && touch $@
+SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(CC) $(DEFS) $(PRE_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< && touch $@
DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I$(top_builddir)
moduledir = $(EXTENSION_DIR)
@@ -88,7 +88,7 @@ install-p: $(targets) $(install_targets)
distclean-p depend-p clean-p:
depend: depend-recursive
- test "`echo *.c`" = '*.c' || perl $(top_srcdir)/build/mkdep.perl $(CPP) $(INCLUDES) $(EXTRA_INCLUDES) *.c > $(builddir)/.deps
+ test "`echo *.c`" = '*.c' || perl $(top_srcdir)/build/mkdep.perl $(CPP) $(PRE_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES) *.c > $(builddir)/.deps
clean: clean-recursive clean-x