[postgis-commits] svn - r3235 - trunk/loader
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Tue Nov 4 01:57:04 PST 2008
Author: mcayland
Date: 2008-11-04 01:57:03 -0800 (Tue, 04 Nov 2008)
New Revision: 3235
Modified:
trunk/loader/Makefile.in
Log:
Alter loader Makefile to add liblwgeom.a dependency, so people who just want to build the shapefile loaders can do "make" within the loader subdirectory and liblwgeom.a will automagically get build first.
Modified: trunk/loader/Makefile.in
===================================================================
--- trunk/loader/Makefile.in 2008-11-04 02:48:25 UTC (rev 3234)
+++ trunk/loader/Makefile.in 2008-11-04 09:57:03 UTC (rev 3235)
@@ -35,13 +35,17 @@
all: $(SHP2PGSQL) $(PGSQL2SHP)
+# liblwgeom.a dependency to allow "make install" in the loader/ subdirectory to work
+../liblwgeom/liblwgeom.a:
+ make -C ../liblwgeom
+
pgsql2shp.o: pgsql2shp.c
$(CC) $(CFLAGS) $(PGSQL_FE_CPPFLAGS) -c $<
-$(PGSQL2SHP): $(OBJS) pgsql2shp.o
+$(PGSQL2SHP): ../liblwgeom/liblwgeom.a $(OBJS) pgsql2shp.o
$(CC) $(CFLAGS) $(OBJS) pgsql2shp.o $(ICONV_LDFLAGS) $(PGSQL_FE_LDFLAGS) ../liblwgeom/liblwgeom.a -lm -o $@
-$(SHP2PGSQL): $(OBJS) shp2pgsql.o
+$(SHP2PGSQL): ../liblwgeom/liblwgeom.a $(OBJS) shp2pgsql.o
$(CC) $(CFLAGS) $(OBJS) shp2pgsql.o $(ICONV_LDFLAGS) ../liblwgeom/liblwgeom.a -lm -o $@
install: all
More information about the postgis-commits
mailing list