2008-06-29 19:11:48 +00:00
|
|
|
# **********************************************************************
|
|
|
|
# * $Id: Makefile.in
|
|
|
|
# *
|
|
|
|
# * PostGIS - Spatial Types for PostgreSQL
|
|
|
|
# * http://postgis.refractions.net
|
|
|
|
# * Copyright 2008 Mark Cave-Ayland
|
|
|
|
# *
|
|
|
|
# * This is free software; you can redistribute and/or modify it under
|
|
|
|
# * the terms of the GNU General Public Licence. See the COPYING file.
|
|
|
|
# *
|
|
|
|
# **********************************************************************
|
|
|
|
|
2011-08-06 09:47:01 +00:00
|
|
|
CC = @CC@
|
2011-08-12 17:25:01 +00:00
|
|
|
CFLAGS = @CFLAGS@ @PICFLAGS@ @WARNFLAGS@ \
|
|
|
|
@GEOS_CPPFLAGS@ -DPOSTGIS_GEOS_VERSION=@POSTGIS_GEOS_VERSION@ \
|
|
|
|
@PROJ_CPPFLAGS@ -DPOSTGIS_PROJ_VERSION=@POSTGIS_PROJ_VERSION@
|
2011-08-12 19:18:46 +00:00
|
|
|
LDFLAGS = @GEOS_LDFLAGS@ -lgeos_c @PROJ_LDFLAGS@ -lproj
|
2011-08-06 09:47:01 +00:00
|
|
|
NUMERICFLAGS = @NUMERICFLAGS@
|
2011-08-06 15:12:32 +00:00
|
|
|
top_builddir = @top_builddir@
|
2011-08-06 17:48:39 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
2011-08-20 15:55:13 +00:00
|
|
|
includedir = @includedir@
|
2011-09-29 19:43:00 +00:00
|
|
|
SHELL = @SHELL@
|
2011-08-06 17:48:39 +00:00
|
|
|
INSTALL = $(SHELL) ../install-sh
|
2011-08-13 10:06:07 +00:00
|
|
|
LIBTOOL = @LIBTOOL@
|
2011-08-06 17:48:39 +00:00
|
|
|
|
|
|
|
SOVER = @POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.@POSTGIS_MICRO_VERSION@
|
2011-08-06 15:12:32 +00:00
|
|
|
|
2008-06-29 19:11:48 +00:00
|
|
|
|
2008-07-03 09:28:38 +00:00
|
|
|
YACC=@YACC@
|
|
|
|
LEX=@LEX@
|
|
|
|
|
2008-06-29 19:11:48 +00:00
|
|
|
# Standalone LWGEOM objects
|
2008-12-18 00:54:04 +00:00
|
|
|
SA_OBJS = \
|
2010-02-22 15:30:10 +00:00
|
|
|
stringbuffer.o \
|
2008-12-18 00:54:04 +00:00
|
|
|
measures.o \
|
2010-09-01 19:55:11 +00:00
|
|
|
measures3d.o \
|
2008-06-29 19:11:48 +00:00
|
|
|
box2d.o \
|
|
|
|
ptarray.o \
|
|
|
|
lwgeom_api.o \
|
|
|
|
lwgeom.o \
|
|
|
|
lwpoint.o \
|
|
|
|
lwline.o \
|
|
|
|
lwpoly.o \
|
2010-08-13 17:29:29 +00:00
|
|
|
lwtriangle.o \
|
2008-06-29 19:11:48 +00:00
|
|
|
lwmpoint.o \
|
|
|
|
lwmline.o \
|
|
|
|
lwmpoly.o \
|
|
|
|
lwcollection.o \
|
2009-01-13 12:27:39 +00:00
|
|
|
lwcircstring.o \
|
2008-06-29 19:11:48 +00:00
|
|
|
lwcompound.o \
|
|
|
|
lwcurvepoly.o \
|
|
|
|
lwmcurve.o \
|
|
|
|
lwmsurface.o \
|
2010-07-25 21:20:09 +00:00
|
|
|
lwpsurface.o \
|
2010-08-13 17:29:29 +00:00
|
|
|
lwtin.o \
|
2010-03-02 23:18:39 +00:00
|
|
|
lwout_wkb.o \
|
2010-10-06 19:17:05 +00:00
|
|
|
lwin_wkb.o \
|
2010-10-21 21:32:31 +00:00
|
|
|
lwout_wkt.o \
|
2010-10-20 22:51:30 +00:00
|
|
|
lwin_wkt_parse.o \
|
2010-10-22 19:27:18 +00:00
|
|
|
lwin_wkt_lex.o \
|
|
|
|
lwin_wkt.o \
|
2008-06-29 19:11:48 +00:00
|
|
|
lwutil.o \
|
2010-02-20 18:25:42 +00:00
|
|
|
lwhomogenize.o \
|
2008-12-16 22:29:42 +00:00
|
|
|
lwalgorithm.o \
|
2008-09-16 18:44:49 +00:00
|
|
|
lwsegmentize.o \
|
2010-02-22 20:42:05 +00:00
|
|
|
lwprint.o \
|
2009-09-14 10:54:33 +00:00
|
|
|
vsprintf.o \
|
|
|
|
g_box.o \
|
|
|
|
g_serialized.o \
|
|
|
|
g_util.o \
|
2009-10-29 19:24:06 +00:00
|
|
|
lwgeodetic.o \
|
2010-02-21 18:18:37 +00:00
|
|
|
lwtree.o \
|
2010-08-30 06:49:51 +00:00
|
|
|
libtgeom.o \
|
2010-02-21 20:32:11 +00:00
|
|
|
lwout_gml.o \
|
2010-02-22 14:03:19 +00:00
|
|
|
lwout_kml.o \
|
2010-02-22 18:43:06 +00:00
|
|
|
lwout_geojson.o \
|
2011-03-11 21:12:35 +00:00
|
|
|
lwout_svg.o \
|
2011-08-06 09:46:03 +00:00
|
|
|
lwout_x3d.o \
|
2011-08-09 16:56:02 +00:00
|
|
|
lwgeom_geos.o \
|
2011-08-11 08:04:20 +00:00
|
|
|
lwgeom_geos_clean.o \
|
2011-11-04 06:45:10 +00:00
|
|
|
lwgeom_geos_node.o \
|
2011-08-12 17:25:01 +00:00
|
|
|
lwgeom_geos_split.o \
|
|
|
|
lwgeom_transform.o
|
2010-10-21 21:32:31 +00:00
|
|
|
|
2010-01-29 21:24:24 +00:00
|
|
|
NM_OBJS = \
|
|
|
|
lwspheroid.o
|
|
|
|
|
2011-08-13 10:06:07 +00:00
|
|
|
LT_SA_OBJS = $(SA_OBJS:.o=.lo)
|
|
|
|
LT_NM_OBJS = $(NM_OBJS:.o=.lo)
|
|
|
|
LT_OBJS = $(LT_SA_OBJS) $(LT_NM_OBJS)
|
2011-08-06 17:48:39 +00:00
|
|
|
|
2008-12-18 00:54:04 +00:00
|
|
|
SA_HEADERS = \
|
|
|
|
liblwgeom.h \
|
2010-11-23 20:22:25 +00:00
|
|
|
liblwgeom_internal.h \
|
2011-08-06 09:46:03 +00:00
|
|
|
libtgeom.h \
|
2011-09-28 10:05:36 +00:00
|
|
|
lwgeom_log.h \
|
2011-08-06 09:46:03 +00:00
|
|
|
lwgeom_geos.h
|
2008-12-18 00:54:04 +00:00
|
|
|
|
2011-08-13 10:06:07 +00:00
|
|
|
all: liblwgeom.la
|
2008-11-26 13:40:07 +00:00
|
|
|
|
2011-08-19 08:16:23 +00:00
|
|
|
install: install-liblwgeom
|
|
|
|
|
|
|
|
uninstall: uninstall-liblwgeom
|
2010-12-10 17:49:20 +00:00
|
|
|
|
2011-08-13 10:06:07 +00:00
|
|
|
install-liblwgeom: liblwgeom.la
|
2011-08-16 09:15:49 +00:00
|
|
|
$(LIBTOOL) --mode=install $(INSTALL) liblwgeom.la "$(DESTDIR)$(libdir)/liblwgeom.la"
|
2011-08-19 08:16:23 +00:00
|
|
|
$(INSTALL) liblwgeom.h "$(DESTDIR)$(includedir)/liblwgeom.h"
|
2011-08-06 17:48:39 +00:00
|
|
|
|
|
|
|
uninstall-liblwgeom:
|
2011-08-16 09:15:49 +00:00
|
|
|
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/liblwgeom.la"
|
2011-08-06 15:12:32 +00:00
|
|
|
|
2011-08-13 10:06:07 +00:00
|
|
|
#liblwgeom.a: $(SA_OBJS) $(NM_OBJS) $(SA_HEADERS)
|
|
|
|
#ar rs liblwgeom.a $(SA_OBJS) $(NM_OBJS)
|
2008-06-29 19:11:48 +00:00
|
|
|
|
2011-08-13 10:06:07 +00:00
|
|
|
liblwgeom.la: $(LT_OBJS) $(SA_HEADERS)
|
|
|
|
$(LIBTOOL) --tag=CC --mode=link $(CC) -rpath $(libdir) $(LT_OBJS) -release $(SOVER) $(LDFLAGS) -o $@
|
2011-08-06 17:48:39 +00:00
|
|
|
|
2010-10-24 19:51:03 +00:00
|
|
|
maintainer-clean: clean
|
2010-10-22 19:27:18 +00:00
|
|
|
rm -f lwin_wkt_lex.c
|
|
|
|
rm -f lwin_wkt_parse.h
|
|
|
|
rm -f lwin_wkt_parse.c
|
2010-10-24 19:51:03 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(MAKE) -C cunit clean
|
2011-11-04 18:17:10 +00:00
|
|
|
rm -f $(LT_OBJS) $(SA_OBJS) $(NM_OBJS)
|
2011-08-13 10:06:07 +00:00
|
|
|
rm -f liblwgeom.la
|
|
|
|
rm -rf .libs
|
2008-06-29 19:11:48 +00:00
|
|
|
|
2011-08-19 10:12:00 +00:00
|
|
|
distclean: clean
|
2011-09-29 19:43:06 +00:00
|
|
|
$(MAKE) -C cunit distclean
|
|
|
|
rm -f liblwgeom.h Makefile
|
2010-12-16 16:28:28 +00:00
|
|
|
|
2011-08-13 10:06:07 +00:00
|
|
|
check: liblwgeom.la
|
2011-09-29 19:43:06 +00:00
|
|
|
$(MAKE) -C cunit check
|
2008-12-22 23:37:58 +00:00
|
|
|
|
2011-08-13 10:06:07 +00:00
|
|
|
# Command to build each of the .lo files
|
|
|
|
$(LT_SA_OBJS): %.lo: %.c
|
|
|
|
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c -o $@ $<
|
2008-07-03 09:28:38 +00:00
|
|
|
|
2011-08-13 10:06:07 +00:00
|
|
|
$(LT_NM_OBJS): %.lo: %.c
|
|
|
|
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(NUMERICFLAGS) -c -o $@ $<
|
2010-01-29 21:24:24 +00:00
|
|
|
|
2011-11-02 04:28:05 +00:00
|
|
|
# Manually generate WKT parser from Flex/Bison inputs
|
|
|
|
# Bison 2.5, Flex 2.5.35
|
|
|
|
parser:
|
|
|
|
$(YACC) -o'lwin_wkt_parse.c' -d lwin_wkt_parse.y
|
|
|
|
$(LEX) -i lwin_wkt_lex.l
|
|
|
|
|
|
|
|
# $(YACC) --debug --verbose -o'$@' -d $<
|
|
|
|
# $(YACC) -o'$@' -d $^
|
|
|
|
# $(LEX) -i $<
|
2010-10-10 00:08:58 +00:00
|
|
|
|
2010-01-29 21:24:24 +00:00
|
|
|
|