Add shp2pgsql-pgadmin build target for exe without special win32 options.

git-svn-id: http://svn.osgeo.org/postgis/trunk@5046 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Paul Ramsey 2009-12-22 19:38:56 +00:00
parent f0a1767ebf
commit 944ced77ea

View file

@ -29,6 +29,7 @@ CFLAGS=@CFLAGS@ @PICFLAGS@ @WARNFLAGS@
PGSQL2SHP=pgsql2shp@EXESUFFIX@
SHP2PGSQL-CLI=shp2pgsql@EXESUFFIX@
SHP2PGSQL-GUI=shp2pgsql-gui@EXESUFFIX@
SHP2PGSQL-PGA=shp2pgsql-pgadmin@EXESUFFIX@
# PostgreSQL frontend CPPFLAGS and LDFLAGS (for compiling and linking with libpq)
PGSQL_FE_CPPFLAGS=@PGSQL_FE_CPPFLAGS@
@ -88,6 +89,9 @@ shp2pgsql-gui.o: shp2pgsql-gui.c
$(SHP2PGSQL-GUI): stringbuffer.o shpopen.o dbfopen.o shp2pgsql-core.o shp2pgsql-gui.o $(LIBLWGEOM) $(GTK_WIN32_RES)
$(CC) $(CFLAGS) $(GTK_WIN32_FLAGS) $^ -o $@ $(GTK_LIBS) $(ICONV_LDFLAGS) $(PGSQL_FE_LDFLAGS) -lm
$(SHP2PGSQL-PGA): stringbuffer.o shpopen.o dbfopen.o shp2pgsql-core.o shp2pgsql-gui.o $(LIBLWGEOM)
$(CC) $^ -o $@ $(GTK_LIBS) $(ICONV_LDFLAGS) $(PGSQL_FE_LDFLAGS) -lm
install: all
@mkdir -p $(DESTDIR)$(bindir)
$(INSTALL) $(PGSQL2SHP) $(DESTDIR)$(bindir)