ZEND_DIR = $(srcdir)/Zend
-SUBDIRS = Zend ext sapi $(TSRM_DIR) $(REGEX_DIR) . $(PEAR_DIR)
+SUBDIRS = Zend core ext sapi $(TSRM_DIR) $(REGEX_DIR) . $(PEAR_DIR)
LTLIBRARY_NAME = libphp4.la
-
-LTLIBRARY_SOURCES = \
- main.c internal_functions.c snprintf.c php_sprintf.c \
- configuration-parser.c configuration-scanner.c \
- safe_mode.c fopen-wrappers.c php_realpath.c alloca.c \
- php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
- strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c php_virtual_cwd.c
+LTLIBRARY_SOURCES = stub.c
LTLIBRARY_DEPENDENCIES = \
Zend/libZend.la \
sapi/$(PHP_SAPI)/libsapi.la \
+ core/libcore.la \
$(REGEX_LIB) \
$(EXT_LTLIBS) \
$(TSRM_LIB)
install-su: install-modules
(cd pear && $(MAKE) install)
-configuration-parser.h configuration-parser.c: $(srcdir)/configuration-parser.y
- $(YACC) -p cfg -v -d $< -o configuration-parser.c
-
-configuration-scanner.c: $(srcdir)/configuration-scanner.l
- $(LEX) -Pcfg -o$@ -i $<
-
-internal_functions.c: internal_functions.c.in config.status
- CONFIG_FILES= CONFIG_HEADERS= ./config.status
-
.NOEXPORT:
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 $@
-DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I$(top_builddir)
+DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/core
moduledir = $(EXTENSION_DIR)
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 $@
-DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I$(top_builddir)
+DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/core
moduledir = $(EXTENSION_DIR)
divert(1)
-AC_INIT(main.c)
+AC_INIT(README.CVS-RULES)
-PHP_FAST_OUTPUT(sapi/Makefile ext/Makefile Makefile pear/Makefile)
+PHP_FAST_OUTPUT(sapi/Makefile ext/Makefile Makefile pear/Makefile core/Makefile)
if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then
AC_MSG_ERROR(--with-shared-apache is not supported. Please refer to the documentation for using APXS)
fi
if test "$abs_srcdir" != "$abs_builddir"; then
- INCLUDES="$INCLUDES -I\$(top_srcdir)/Zend"
+ INCLUDES="$INCLUDES -I\$(top_srcdir)/core -I\$(top_srcdir)/Zend"
if test "$PHP_THREAD_SAFETY" = "yes"; then
INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM"
fi
if true; then
# Hacking while airborne considered harmful.
#
- echo "creating internal_functions.c"
+ echo "creating core/internal_functions.c"
extensions=\`grep '^s.@EXT_STATIC@' \$0|sed -e 's/^.*@% *//' -e 's/%.*$//'\`
- mv -f internal_functions.c internal_functions.c.old 2>/dev/null
- sh $srcdir/genif.sh $srcdir/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" \$extensions > internal_functions.c
- if cmp internal_functions.c.old internal_functions.c > /dev/null 2>&1; then
- echo "internal_functions.c is unchanged"
- mv internal_functions.c.old internal_functions.c
+ mv -f core/internal_functions.c core/internal_functions.c.old 2>/dev/null
+ sh $srcdir/genif.sh $srcdir/core/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" \$extensions > core/internal_functions.c
+ if cmp core/internal_functions.c.old core/internal_functions.c > /dev/null 2>&1; then
+ echo "core/internal_functions.c is unchanged"
+ mv core/internal_functions.c.old core/internal_functions.c
else
- rm -f internal_functions.c.old
+ rm -f core/internal_functions.c.old
fi
if test -n "$PHP_APXS_BROKEN"; then
--- /dev/null
+LTLIBRARY_NAME = libcore.la
+
+LTLIBRARY_SOURCES = \
+ main.c internal_functions.c snprintf.c php_sprintf.c \
+ configuration-parser.c configuration-scanner.c \
+ safe_mode.c fopen-wrappers.c php_realpath.c alloca.c \
+ php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
+ strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c php_virtual_cwd.c
+
+include $(top_srcdir)/build/ltlib.mk
+
+configuration-parser.h configuration-parser.c: $(srcdir)/configuration-parser.y
+ $(YACC) -p cfg -v -d $< -o configuration-parser.c
+
+configuration-scanner.c: $(srcdir)/configuration-scanner.l
+ $(LEX) -Pcfg -o$@ -i $<
+
+internal_functions.c: internal_functions.c.in $(top_builddir)/config.status
+ cd $(top_builddir) && \
+ CONFIG_FILES= CONFIG_HEADERS= ./config.status
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\internal_functions_win32.c\r
+SOURCE=.\core\internal_functions_win32.c\r
\r
!IF "$(CFG)" == "php4dll - Win32 Debug"\r
\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\main.c\r
+SOURCE=.\core\main.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\mergesort.c\r
+SOURCE=.\core\mergesort.c\r
# End Source File\r
# Begin Source File\r
\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_content_types.c\r
+SOURCE=.\core\php_content_types.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_ini.c\r
+SOURCE=.\core\php_ini.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_realpath.c\r
+SOURCE=.\core\php_realpath.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_ticks.c\r
+SOURCE=.\core\php_ticks.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_variables.c\r
+SOURCE=.\core\php_variables.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_virtual_cwd.c\r
+SOURCE=.\core\php_virtual_cwd.c\r
# End Source File\r
# Begin Source File\r
\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\reentrancy.c\r
+SOURCE=.\core\reentrancy.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\rfc1867.c\r
+SOURCE=.\core\rfc1867.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\safe_mode.c\r
+SOURCE=.\core\safe_mode.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\SAPI.c\r
+SOURCE=.\core\SAPI.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\strlcat.c\r
+SOURCE=.\core\strlcat.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\strlcpy.c\r
+SOURCE=.\core\strlcpy.c\r
# End Source File\r
# End Group\r
# Begin Group "Header Files"\r
# PROP Default_Filter ""\r
# Begin Source File\r
\r
-SOURCE=.\config.w32.h\r
+SOURCE=.\core\config.w32.h\r
# End Source File\r
# Begin Source File\r
\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\getopt.h\r
+SOURCE=.\core\getopt.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\internal_functions_registry.h\r
+SOURCE=.\core\internal_functions_registry.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\logos.h\r
+SOURCE=.\core\logos.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\main.h\r
+SOURCE=.\core\main.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\output.h\r
+SOURCE=.\core\output.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php.h\r
+SOURCE=.\core\php.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php3_compat.h\r
+SOURCE=.\core\php3_compat.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_content_types.h\r
+SOURCE=.\core\php_content_types.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_globals.h\r
+SOURCE=.\core\php_globals.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_ini.h\r
+SOURCE=.\core\php_ini.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_realpath.h\r
+SOURCE=.\core\php_realpath.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_ticks.h\r
+SOURCE=.\core\php_ticks.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_variables.h\r
+SOURCE=.\core\php_variables.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_virtual_cwd.h\r
+SOURCE=.\core\php_virtual_cwd.h\r
# End Source File\r
# Begin Source File\r
\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\rfc1867.h\r
+SOURCE=.\core\rfc1867.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\safe_mode.h\r
+SOURCE=.\core\safe_mode.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\SAPI.h\r
+SOURCE=.\core\SAPI.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\win95nt.h\r
+SOURCE=.\core\win95nt.h\r
# End Source File\r
# End Group\r
# End Group\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\internal_functions_win32.c\r
+SOURCE=.\core\internal_functions_win32.c\r
# ADD CPP /I "ext\xml\expat\xmltok" /I "ext\xml\expat\xmlparse"\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\main.c\r
+SOURCE=.\core\main.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\mergesort.c\r
+SOURCE=.\core\mergesort.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_content_types.c\r
+SOURCE=.\core\php_content_types.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_ini.c\r
+SOURCE=.\core\php_ini.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_realpath.c\r
+SOURCE=.\core\php_realpath.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_ticks.c\r
+SOURCE=.\core\php_ticks.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_variables.c\r
+SOURCE=.\core\php_variables.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_virtual_cwd.c\r
+SOURCE=.\core\php_virtual_cwd.c\r
# End Source File\r
# Begin Source File\r
\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\reentrancy.c\r
+SOURCE=.\core\reentrancy.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\rfc1867.c\r
+SOURCE=.\core\rfc1867.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\safe_mode.c\r
+SOURCE=.\core\safe_mode.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\SAPI.c\r
+SOURCE=.\core\SAPI.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\strlcat.c\r
+SOURCE=.\core\strlcat.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\strlcpy.c\r
+SOURCE=.\core\strlcpy.c\r
# End Source File\r
# End Group\r
# Begin Group "Header Files"\r
# PROP Default_Filter ""\r
# Begin Source File\r
\r
-SOURCE=.\config.w32.h\r
+SOURCE=.\core\config.w32.h\r
# End Source File\r
# Begin Source File\r
\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\getopt.h\r
+SOURCE=.\core\getopt.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\internal_functions_registry.h\r
+SOURCE=.\core\internal_functions_registry.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\logos.h\r
+SOURCE=.\core\logos.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\main.h\r
+SOURCE=.\core\main.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\output.h\r
+SOURCE=.\core\output.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php.h\r
+SOURCE=.\core\php.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php3_compat.h\r
+SOURCE=.\core\php3_compat.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_compat.h\r
+SOURCE=.\core\php_compat.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_content_types.h\r
+SOURCE=.\core\php_content_types.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_globals.h\r
+SOURCE=.\core\php_globals.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_ini.h\r
+SOURCE=.\core\php_ini.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_realpath.h\r
+SOURCE=.\core\php_realpath.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_regex.h\r
+SOURCE=.\core\php_regex.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_variables.h\r
+SOURCE=.\core\php_variables.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\php_virtual_cwd.h\r
+SOURCE=.\core\php_virtual_cwd.h\r
# End Source File\r
# Begin Source File\r
\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\rfc1867.h\r
+SOURCE=.\core\rfc1867.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\safe_mode.h\r
+SOURCE=.\core\safe_mode.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\SAPI.h\r
+SOURCE=.\core\SAPI.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\win95nt.h\r
+SOURCE=.\core\win95nt.h\r
# End Source File\r
# End Group\r
# End Group\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\hashtable.h\r
-# End Source File\r
-# Begin Source File\r
-\r
SOURCE=.\ext\xml\expat\xmltok\iasciitab.h\r
# End Source File\r
# Begin Source File\r