Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
149 lines (114 sloc) 4.62 KB
# -*- 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