forked from weyrick/roadsend-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.config.in
148 lines (114 loc) · 4.62 KB
/
Makefile.config.in
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# -*- Mode: Makefile; -*-
# this is a constant for #ifdefs and such
PCC_OS = @PCC_OS@
SOEXT = @SO_EXT@
BIGLOOVERSION = @BIGLOO_VERSION@
BIGLOO_LIB_PATH = @BIGLOO_LIB_PATH@
BIGLOO_GC_LIB = @BIGLOO_GC_LIB@
STATIC_SUFFIX =
BIGLOO_PIC = -copt -fPIC
C_PIC = -fPIC
WEXE =
ifeq ($(PCC_OS),PCC_MINGW)
WEXE=.exe
endif
# GC_LIB can be gc or bigloogc
ifeq ($(BIGLOO_GC_LIB),bigloogc)
BIGLOO_GC_LIB = bigloogc-$(BIGLOOVERSION)
endif
# build .so libraries
# no difference between these commands in linux, only mingw
ifeq ($(PCC_OS),PCC_MACOSX)
dllcmd = gcc -r -dynamiclib -undefined dynamic_lookup -o $(1) -install_name `basename $(1)`
dllcmd_i = gcc -r -dynamiclib -undefined dynamic_lookup -o $(1) -install_name `basename $(1)`
else
ifeq ($(PCC_OS),PCC_MINGW)
dllcmd = gcc -shared -o $(1) -Wl,--enable-auto-import,--enable-auto-image-base,--out-implib,$(1).a
dllcmd_i = gcc -shared -o $(1) -Wl,--enable-auto-import,--enable-auto-image-base,--out-implib,$(1).a
else
dllcmd = gcc -shared -o $(1)
dllcmd_i = gcc -shared -o $(1)
endif
endif
#jfcouic 2008-10-30 begin : mingw...
RUNTIME_LIB = -lphp-runtime_$(SUV)
PROFILER_LIB = -lprofiler_$(SUV)
WEBCONNECT_LIB = -lwebconnect_$(SUV)
PHPEVAL_LIB = -lphpeval_$(SUV)
EXTENSION_DLL_CFLAGS = @EXTENSION_DLL_CFLAGS@
PCC_LINK_OPTIONS = @PCC_LINK_OPTIONS@
RUNTIME_DLL_LIBS = $(BIGLOO_LIBS) @RUNTIME_DLL_LIBS@
COMPILER_DLL_LIBS = $(BIGLOO_LIBS) @COMPILER_DLL_LIBS@
WEBCONNECT_DLL_LIBS = $(BIGLOO_LIBS) @WEBCONNECT_DLL_LIBS@
EXTENSION_DLL_LIBS = $(BIGLOO_LIBS) @EXTENSION_DLL_LIBS@
PROFILER_DLL_LIBS = $(BIGLOO_LIBS) @PROFILER_DLL_LIBS@
FASTCGI_DLL_LIBS = $(BIGLOO_LIBS) @FASTCGI_DLL_LIBS@
CGI_DLL_LIBS = $(BIGLOO_LIBS) @CGI_DLL_LIBS@
MHTTPD_DLL_LIBS = $(BIGLOO_LIBS) @MHTTPD_DLL_LIBS@
DOTEST_LIBS = @DOTEST_LIBS@
#jfcouic 2008-10-30 end
RESOLVER_LIBRARY = @RESOLVER_LIB@
#jfcouic 2008-11-01 begin : mingw...
WINDOWS_TIME_SUPPORT = @WINDOWS_TIME_SUPPORT@
WINDOWS_C_SUPPORT = @WINDOWS_C_SUPPORT@
#jfcouic 2008-11-01 begin
EXT_LIST = @EXT_LIST@
PHP_EXT_LIST = @PHP_EXT_LIST@
TOOLS_LIST = profiler
READLINE_LIBS = @LIBREADLINE@
ifdef READLINE_LIBS
READLINE_BL_LIB=-library pcc-rl
READLINE_SRFI=-srfi HAVE_LIBREADLINE
TOOLS_LIST := $(TOOLS_LIST) readline
endif
# std
STD_CFLAGS = @STD_CFLAGS@
STD_LIBS = @STD_LIBS@
# mysql
MYSQL_CFLAGS = @MYSQL_CFLAGS@
MYSQL_LIBS = @MYSQL_LIBS@
# odbc
ODBC_CFLAGS = @ODBC_CFLAGS@
ODBC_LIBS = @ODBC_LIBS@
# sqlite
SQLITE_CFLAGS = @SQLITE_CFLAGS@
SQLITE_LIBS = @SQLITE_LIBS@
# curl
CURL_CFLAGS = @CURL_CFLAGS@
CURL_STATIC_CFLAGS = @CURL_STATIC_CFLAGS@
CURL_LIBS = @CURL_LIBS@
# xml
XML_CFLAGS = @XML_CFLAGS@
XML_LIBS = @XML_LIBS@
# pcre
PCRE_CFLAGS = @PCRE_CFLAGS@
PCRE_LIBS = @PCRE_LIBS@
# gtk
GLADE_INCLUDE = -copt -I/usr/include/libglade-1.0 -copt -I/usr/include/gnome-xml
GTK_CFLAGS = @GTK_CFLAGS@
GTK_LIBS = @GTK_LIBS@
###############
# this might be overriden from a distro specific makefile
#ifndef APXS
#APXS = /usr/bin/apxs
#endif
#ifndef APXS2
#APXS2 = /usr/bin/apxs2
#endif
#ifndef APR
#APR = /usr/bin/apr-config
#endif
#APACHE_INC = $(shell $(APXS) -q INCLUDEDIR)
#APACHE_CFLAGS = -I $(APACHE_INC)
#APACHE_BFLAGS = -L $(APACHE_INC)
#APACHE2_INC = $(shell $(APXS2) -q INCLUDEDIR)
#APACHE2_CFLAGS = -I $(APACHE2_INC)
#APACHE2_BFLAGS = -L $(APACHE2_INC)
# apache portable runtime, used in apache 2
#APR_INC = $(shell $(APR) --includedir)
#APR_LINK = $(shell $(APR) --link-ld)
#these are pretty bad
#LINK_APACHE_MODULE = $(APXS) -I$(BGL_DEFAULT_LIB_DIR) -c mod_pcc.c $(MOD_OBJS) -o mod_pcc_s.so -I/usr/local/include/libxml2 -s -lcrypt -L../../libs -L. -L$(BGL_DEFAULT_LIB_DIR) -lprofiler_$(SU) -lphp-runtime_$(SU) -lphpeval_$(SU) -lwebconnect_$(SU) -lbigloo_$(SU)-$(BIGLOO_VERSION) -l$(BIGLOO_GC_LIB) $(OS_LIBS) -lm -lc
#LINK_APACHE_MODULE_UNSAFE = $(APXS) -I$(BGL_DEFAULT_LIB_DIR) -c mod_pcc.c -o mod_pcc_u.so $(MOD_OBJS) -I/usr/local/include/libxml2 -s -lcrypt -L../../libs -L. -L$(BGL_DEFAULT_LIB_DIR) -lprofiler_u -lphp-runtime_u -lphpeval_u -lwebconnect_u -lbigloo_u-$(BIGLOO_VERSION) -l$(BIGLOO_GC_LIB) $(OS_LIBS) -lm -lc
#LINK_APACHE2_MODULE = $(APXS2) -I$(BGL_DEFAULT_LIB_DIR) -c mod_pcc2.c $(MOD2_OBJS) -export-dynamic -I/usr/local/include/libxml2 -s $(APR_LINK) -lcrypt -L../../libs -L. -L$(BGL_DEFAULT_LIB_DIR) -lprofiler_$(SU) -lphp-runtime_$(SU) -lphpeval_$(SU) -lwebconnect_$(SU) -lbigloo_$(SU)-$(BIGLOO_VERSION) -l$(BIGLOO_GC_LIB) $(OS_LIBS) -lm -lc
#LINK_APACHE2_MODULE_UNSAFE = $(APXS2) -I$(BGL_DEFAULT_LIB_DIR) -c mod_pcc2.c $(MOD2_OBJS) -I/usr/local/include/libxml2 -s $(APR_LINK) -lcrypt -L../../libs -L. -L$(BGL_DEFAULT_LIB_DIR) -lprofiler_u -lphp-runtime_u -lphpeval_u -lwebconnect_u -lbigloo_u-$(BIGLOO_VERSION) -l$(BIGLOO_GC_LIB) $(OS_LIBS) -lm -lc