3
include ../Makefile.config
3
POSTGIS_PGSQL_VERSION=83
4
POSTGIS_GEOS_VERSION=32
5
POSTGIS_PROJ_VERSION=46
7
# MingW hack: rather than use PGSQL_BINDIR directly, we change
8
# to the directory and then use "pwd" to return the path. This
9
# ensures that the returned path is in MSYS format, otherwise
10
# colons in drive letters will break PATH.
11
PGSQL_BINDIR=$(shell pushd "/usr/local/pgsql/8.3/bin" > /dev/null && pwd && popd > /dev/null)
14
# Put path from pg_config into front of search path
16
PATH := "$(PGSQL_BINDIR):$(PATH)"
37
52
sql-mm-multicurve \
38
53
sql-mm-multisurface \
42
sql-mm-circularstring_expected \
43
sql-mm-compoundcurve_expected \
44
sql-mm-curvepoly_expected \
45
sql-mm-multicurve_expected \
46
sql-mm-multisurface_expected
49
# GEOS tests only if GEOS is available
51
TESTS += regress_ogc regress_bdpoly
53
62
# Covers/CoveredBy only if GEOS >= 3.0
54
ifeq ($(shell expr $(GEOS_VERNUM) ">=" 30),1)
63
ifeq ($(shell expr $(POSTGIS_GEOS_VERSION) ">=" 30),1)
55
64
TESTS += regress_ogc_cover
57
66
# PreparedGeometry only if GEOS >= 3.1
58
ifeq ($(shell expr $(GEOS_VERNUM) ">=" 31),1)
67
ifeq ($(shell expr $(POSTGIS_GEOS_VERSION) ">=" 31),1)
59
68
TESTS += regress_ogc_prep
66
TESTS += regress_proj kml
71
test check: lwpostgis.sql ../lwgeom/liblwgeom.so ../loader/pgsql2shp ../loader/shp2pgsql $(PREPROC)
72
@USE_VERSION="$(USE_VERSION)" ./run_test $(TESTS)
74
lwpostgis.sql: ../lwgeom/lwpostgis.sql.in
75
$(MAKE) -C ../lwgeom ../regress/lwpostgis.sql
77
../lwgeom/liblwgeom.so:
78
$(MAKE) -C ../lwgeom all-shared-lib
81
$(MAKE) -C ../loader pgsql2shp
84
$(MAKE) -C ../loader shp2pgsql
87
cpp -P -traditional-cpp $@.in | grep -v "^$$" > $@
76
test check: ../postgis/postgis.so ../loader/pgsql2shp ../loader/shp2pgsql
77
cp ../postgis/postgis.sql .
78
@USE_VERSION=$(POSTGIS_PGSQL_VERSION) ./run_test $(TESTS)
81
../postgis/postgis.so:
84
../loader/pgsql2shp ../loader/shp2pgsql:
91
89
@dropdb postgis_reg > /dev/null
94
rm -f lwpostgis.sql $(PREPROC)