# Run ./configure in the main MapServer directory to turn this Makefile.in # into a proper Makefile # # This is an adapted version of php-3.0.14/dl/Makefile.tmpl for the # MapServer php_mapscript.so module. # # $Id$ # # +----------------------------------------------------------------------+ # | PHP HTML Embedded Scripting Language Version 3.0 | # +----------------------------------------------------------------------+ # | Copyright (c) 1997,1998 PHP Development Team (See Credits file) | # +----------------------------------------------------------------------+ # | This program is free software; you can redistribute it and/or modify | # | it under the terms of one of the following licenses: | # | | # | A) the GNU General Public License as published by the Free Software | # | Foundation; either version 2 of the License, or (at your option) | # | any later version. | # | | # | B) the PHP License as published by the PHP Development Team and | # | included in the distribution in the file: LICENSE | # | | # | This program is distributed in the hope that it will be useful, | # | but WITHOUT ANY WARRANTY; without even the implied warranty of | # | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # | GNU General Public License for more details. | # | | # | You should have received a copy of both licenses referred to here. | # | If you did not, or have any questions about PHP licensing, please | # | contact core@php.net. | # +----------------------------------------------------------------------+ # # Pick a compiler, etc. Flex and bison are only required if you need to modify the mapserver lexer (maplexer.l) or expression parser (mapparser.y). # prefix = @prefix@ exec_prefix = @exec_prefix@ libdir = @libdir@ bindir = @bindir@ top_builddir = @top_builddir@ SHELL = @SHELL@ CXX= @CXX@ CC= @CC@ LD= @CXX@ LIBTOOL=@LIBTOOL@ INSTALL=@INSTALL@ PHPCONFIG=@PHPCONFIG@ LTCC=$(LIBTOOL) --mode=compile --tag=CC LTCXX=$(LIBTOOL) --mode=compile --tag=CXX LTLD=$(LIBTOOL) --mode=link --tag=CXX LTINSTALL=$(LIBTOOL) --mode=install XTRALIBS= @XTRALIBS@ RUNPATHS= -rpath $(libdir) CFLAGS = @CFLAGS@ @USE_PHP_REGEX@ -DCOMPILE_DL=1 @PHP_VERSION_FLAG@ PHP_INC = `$(PHPCONFIG) --includes ` @APACHE_INC@ # # IMPORTANT NOTE ABOUT REGEX FOR PHP_MAPSCRIPT USERS: # # In order to compile the PHP_MAPSCRIPT module, we have to make MapServer # uses the same version of the REGEX library that PHP was compiled with: # PHP_REGEX_OBJ=@PHP_REGEX_OBJ@ PHP_REGEX_INC=@PHP_REGEX_INC@ # # Set MapServer extensions parameters. See main MapServer Makefile for # more details... # Common defaults are: # MS_DEFINE = -DUSE_TTF -DUSE_TIFF -DUSE_EPPL -DUSE_GD_1_2 # MS_INCLUDE = -I../.. -I../../gd-1.2 -I../../gdft # MS_LIBS = -L../.. -lmap -L../../gdft -lgdft -ltiff -lttf -L../../gd-1.2 -lgd # MS_DEFINE = @ALL_ENABLED@ MS_INC = @MS_INC@ @ALL_INC@ MS_STATIC = @ALL_STATIC_LIB@ MS_LIBS = $(RUNPATHS) @MS_LIB@ @ALL_LIB@ @XTRALIBS@ $(MS_STATIC) PHP_EXT_DIR=`$(PHPCONFIG) --extension-dir` LT_LDFLAGS=-rpath $(PHP_EXT_DIR) -module OBJ_SUFFIX=lo LINK=$(LTLD) $(LD) $(LT_LDFLAGS) MS_LIBS = ../../libmapserver.la # # The rest of the file should not have to be edited... # CFLAGS112 = $(CFLAGS) $(MS_DEFINE) $(MS_INC) $(PHP_INC) $(PHP_REGEX_INC) .SUFFIXES: .SUFFIXES: .cpp .c .$(OBJ_SUFFIX) all: php_mapscript.la PHPMS_CLASS_OBJS = mapscript_error.$(OBJ_SUFFIX) color.$(OBJ_SUFFIX) rect.$(OBJ_SUFFIX) hashtable.$(OBJ_SUFFIX) web.$(OBJ_SUFFIX) grid.$(OBJ_SUFFIX) error.$(OBJ_SUFFIX)\ referencemap.$(OBJ_SUFFIX) querymap.$(OBJ_SUFFIX) outputformat.$(OBJ_SUFFIX) scalebar.$(OBJ_SUFFIX) label.$(OBJ_SUFFIX) legend.$(OBJ_SUFFIX)\ symbol.$(OBJ_SUFFIX) style.$(OBJ_SUFFIX) image.$(OBJ_SUFFIX) class.$(OBJ_SUFFIX) projection.$(OBJ_SUFFIX) line.$(OBJ_SUFFIX) shape.$(OBJ_SUFFIX) shapefile.$(OBJ_SUFFIX)\ point.$(OBJ_SUFFIX) labelcache.$(OBJ_SUFFIX) labelcachemember.$(OBJ_SUFFIX) result.$(OBJ_SUFFIX) owsrequest.$(OBJ_SUFFIX) cluster.$(OBJ_SUFFIX)\ layer.$(OBJ_SUFFIX) map.$(OBJ_SUFFIX) PHPMS_OBJS = php_mapscript_util.$(OBJ_SUFFIX) $(PHPMS_CLASS_OBJS) php_mapscript.$(OBJ_SUFFIX) mapscript_i.$(OBJ_SUFFIX)\ $(PHP_REGEX_OBJ) PHPPROJ_OBJS = php_mapscript_util.$(OBJ_SUFFIX) php_proj.$(OBJ_SUFFIX) $(PHP_REGEX_OBJ) php_mapscript.la: $(PHPMS_OBJS) ../../libmapserver.la $(LINK) -o $@ $(PHPMS_OBJS) $(MS_LIBS) php_proj.la: $(PHPPROJ_OBJS) ../libmapserver.la $(LINK) -o $@ $(PHPPROJ_OBJS) $(MS_LIBS) %.lo: %.c php_mapscript_util.h php_mapscript.h $(LTCC) $(CC) $(CFLAGS112) -c -o $@ $< install: php_mapscript.la $(LTINSTALL) $(INSTALL) php_mapscript.la $(PHP_EXT_DIR) clean: -rm -rf .libs *.lo *.la *.so *.o perl.out