~ubuntu-branches/ubuntu/trusty/postgis/trusty-security

« back to all changes in this revision

Viewing changes to postgis/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2009-12-11 13:10:34 UTC
  • mfrom: (1.1.9 upstream) (5.2.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20091211131034-wmsz69wxvt95pe5r
Tags: 1.4.0-2
* Upload to unstable.
* Better parameterized debian/rules against postgis $(VERSION).
* Added dblatex and libcunit1-dev among build-deps.
* Added postgis_comments.sql to contrib/ SQL templates.
* Dropping 8.3 support, no more supported for squeeze.
  (closes: #559587)
* Do not stop on error in postrm if the target dir does not exist.
  (closes: #560409)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# **********************************************************************
 
2
# * $Id: Makefile.in 
 
3
# *
 
4
# * PostGIS - Spatial Types for PostgreSQL
 
5
# * http://postgis.refractions.net
 
6
# * Copyright 2008 Mark Cave-Ayland
 
7
# *
 
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.
 
10
# *
 
11
# **********************************************************************
 
12
 
 
13
MODULE_big=postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@
 
14
 
 
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
 
18
 
 
19
# SQL objects (files requiring C pre-processing)
 
20
SQL_OBJS=postgis.sql.in uninstall_postgis.sql.in
 
21
 
 
22
# PostgreSQL objects
 
23
PG_OBJS=lwgeom_pg.o \
 
24
        lwgeom_debug.o \
 
25
        lwgeom_accum.o \
 
26
        lwgeom_spheroid.o \
 
27
        lwgeom_ogc.o \
 
28
        lwgeom_functions_analytic.o \
 
29
        lwgeom_inout.o \
 
30
        lwgeom_estimate.o \
 
31
        lwgeom_functions_basic.o \
 
32
        lwgeom_gist.o \
 
33
        lwgeom_btree.o \
 
34
        lwgeom_transform.o \
 
35
        lwgeom_box.o \
 
36
        lwgeom_box3d.o \
 
37
        lwgeom_box2dfloat4.o \
 
38
        lwgeom_chip.o \
 
39
        lwgeom_geos.o \
 
40
        lwgeom_geos_prepared.o \
 
41
        lwgeom_svg.o \
 
42
        lwgeom_gml.o \
 
43
        lwgeom_kml.o \
 
44
        lwgeom_geojson.o \
 
45
        lwgeom_triggers.o \
 
46
        lwgeom_dump.o \
 
47
        lwgeom_functions_lrs.o \
 
48
        long_xact.o \
 
49
        lwgeom_sqlmm.o \
 
50
        lwgeom_rtree.o
 
51
 
 
52
# Objects to build using PGXS
 
53
OBJS=$(PG_OBJS)
 
54
 
 
55
# Libraries to link into the module (proj, geos)
 
56
#
 
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
 
64
 
 
65
# Extra files to remove during 'make clean'
 
66
EXTRA_CLEAN=$(SQL_OBJS)
 
67
 
 
68
# PGXS information
 
69
PG_CONFIG = @PGCONFIG@ 
 
70
PGXS := @PGXS@
 
71
include $(PGXS)
 
72
 
 
73
 
 
74
# Borrow the $libdir substitution from PGXS but customise by adding the version number
 
75
%.sql: %.sql.in
 
76
        sed 's,MODULE_PATHNAME,$$libdir/$*-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@,g' $< >$@
 
77
 
 
78
postgis_upgrade.sql: postgis.sql
 
79
        $(PERL) ../utils/postgis_proc_upgrade.pl $< > $@
 
80
 
 
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 '^#' > $@
 
84