summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 91d0f266974d9a3b66b2cef744fba7e8fa6358c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
AUTOMAKE_OPTIONS = foreign

ZEND_DIR = $(srcdir)/libzend
SUBDIRS = libzend ext sapi $(TSRM_DIR) regex

CPPFLAGS := $(INCLUDES) -I$(ZEND_DIR) -I$(srcdir)/TSRM

BUILDLDFLAGS = $(EXTRA_LDFLAGS) $(LDFLAGS)

phptemp_LTLIBRARIES = libphp4.la
libphp4_la_SOURCES = \
       main.c internal_functions.c snprintf.c php3_sprintf.c \
       configuration-parser.y configuration-scanner.l request_info.c \
       safe_mode.c fopen-wrappers.c php3_realpath.c alloca.c output.c \
       php_ini.c SAPI.c rfc1867.c dlist.c php_content_types.c strlcpy.c \
	   strlcat.c

libphp4_la_LIBADD = \
		libzend/libzend.la \
		sapi/$(PHP_SAPI)/libphpsapi_$(PHP_SAPI).la \
		regex/libregex.la \
		$(EXT_LTLIBS) \
		$(TSRM_LIB) \
		$(EXTRA_LIBS)
libphp4_la_LDFLAGS = -avoid-version $(BUILDLDFLAGS) $(PHP_RPATHS)		

libphp4_la_DEPENDENCIES = \
		libzend/libzend.la \
		sapi/$(PHP_SAPI)/libphpsapi_$(PHP_SAPI).la \
		regex/libregex.la \
		$(EXT_LTLIBS) \
		$(TSRM_LIB)
	
configuration-parser.h configuration-parser.c: configuration-parser.y
	$(YACC) -p cfg -v -d $< -o configuration-parser.c

configuration-scanner.c: configuration-scanner.l
	$(LEX) -Pcfg -o$@ -i $<

EXTRA_PROGRAMS = php

noinst_PROGRAMS = $(PHP_PROGRAM)
php_SOURCES = stub.c
php_LDADD = libphp4.la
php_LDFLAGS = -export-dynamic

install-data-local:
	$(INSTALL_IT)