1
# **********************************************************************
4
# * PostGIS - Spatial Types for PostgreSQL
5
# * http://postgis.refractions.net
6
# * Copyright 2008 Mark Cave-Ayland
8
# * This is free software; you can redistribute and/or modify it under
9
# * the terms of the GNU General Public Licence. See the COPYING file.
11
# **********************************************************************
13
MODULE_big=postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@
15
# Files to be copied to the contrib/ directory
16
DATA_built=postgis.sql uninstall_postgis.sql postgis_upgrade.sql
17
DATA=../spatial_ref_sys.sql
19
# SQL objects (files requiring C pre-processing)
20
SQL_OBJS=postgis.sql.in uninstall_postgis.sql.in
28
lwgeom_functions_analytic.o \
31
lwgeom_functions_basic.o \
37
lwgeom_box2dfloat4.o \
40
lwgeom_geos_prepared.o \
47
lwgeom_functions_lrs.o \
52
# Objects to build using PGXS
55
# Libraries to link into the module (proj, geos)
57
# Note: we specify liblwgeom.a directly in SHLIB_LINK rather than using
58
# -L... -l options to prevent issues with some platforms trying to link
59
# to an existing liblwgeom.so in the PostgreSQL $libdir supplied by an
60
# older version of PostGIS, rather than with the static liblwgeom.a
61
# supplied with newer versions of PostGIS
62
PG_CPPFLAGS+=@CPPFLAGS@ -I../liblwgeom
63
SHLIB_LINK+=@SHLIB_LINK@ ../liblwgeom/liblwgeom.a
65
# Extra files to remove during 'make clean'
66
EXTRA_CLEAN=$(SQL_OBJS)
69
PG_CONFIG = @PGCONFIG@
74
# Borrow the $libdir substitution from PGXS but customise by adding the version number
76
sed 's,MODULE_PATHNAME,$$libdir/$*-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@,g' $< >$@
78
postgis_upgrade.sql: postgis.sql
79
$(PERL) ../utils/postgis_proc_upgrade.pl $< > $@
81
# Generate any .sql.in files from .sql.in.c files by running them through the C pre-processor
82
$(SQL_OBJS): %.in: %.in.c
83
$(CPP) -traditional-cpp $< | grep -v '^#' > $@