#641 - distinguish between active and inactive group and add Regina Obe to list.
[geos.git] / php / Makefile.am
blob5b50c0f841a26717dd37587c935a029b3f4cb51d
1 #######################################################################
2
3 #    GEOS - Geometry Engine Open Source
4 #    http://trac.osgeo.org/geos
6 #    Copyright (C) 2010 Sandro Santilli <strk@keybit.net>
8 #    This library is free software; you can redistribute it and/or
9 #    modify it under the terms of the GNU Lesser General Public
10 #    License as published by the Free Software Foundation; either
11 #    version 2.1 of the License, or (at your option) any later version.
13 #    This library is distributed in the hope that it will be useful,
14 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 #    Lesser General Public License for more details.
18 #    You should have received a copy of the GNU General Public License
19 #    along with this program; if not, write to the Free Software
20 #    Foundation, Inc., 51 Franklin St, Fifth Floor,
21 #    Boston, MA  02110-1301  USA
23 #######################################################################
26 if ENABLE_PHP
28 SUBDIRS = . test
30 EXTRA_DIST = README 
32 pkglib_LTLIBRARIES = geos.la
34 geos_la_SOURCES = geos.c php_geos.h
36 geos_la_LIBADD =  $(top_builddir)/capi/libgeos_c.la 
38 # TODO: check if -no-undefined should be added
39 geos_la_LDFLAGS = -module -avoid-version
41 # -std is an attempt to fix interpretation
42 # of Zend headers, failing with -ansi.
44 # As of gcc (Ubuntu 4.3.2-1ubuntu12) 4.3.2
45 # you need -std=gnu99
46 # while on OpenSuse's plain gcc 4.3.2 -std=c99 is fine
47 # (argh)
49 geos_la_CFLAGS = $(AM_CFLAGS) -std=gnu99
51 # TODO: drop conditionals from geos.c and let it bound to current code
52 geos_la_CPPFLAGS = $(AM_CPPFLAGS) \
53         `$(PHP_CONFIG) --includes` \
54         -DCOMPILE_DL_GEOS \
55         -I$(top_builddir)/capi \
56         -I$(top_srcdir)/include
58 install: all
59         $(INSTALL) -d "$(DESTDIR)"/`$(PHP_CONFIG) --extension-dir`
60         $(INSTALL) -m 755 .libs/geos.so "$(DESTDIR)"/`php-config --extension-dir`
62 endif