From da1e6a98566a4f3743ccc8a4bbab45527c47ac92 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Fri, 26 Oct 2001 17:04:54 +0000 Subject: [PATCH] Added N.Vines changes to Makefile for better compilation under cygwin. git-svn-id: http://svn.osgeo.org/postgis/trunk@94 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/loader/Makefile b/loader/Makefile index 921da3756..d21149aa9 100644 --- a/loader/Makefile +++ b/loader/Makefile @@ -16,13 +16,15 @@ endif OBJS = shpopen.o dbfopen.o getopt.o -override CPPFLAGS := -g -I$(srcdir) -L$(top_builddir)/src/interfaces/libpq -lpq -I$(top_builddir)/src/interfaces/libpq $(CPPFLAGS) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir)"' +override CPPFLAGS := -g -I$(srcdir) -I$(top_builddir)/src/interfaces/libpq $(CPPFLAGS) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir)"' all: shp2pgsql pgsql2shp -pgsql2shp: $(OBJS) +pgsql2shp: $(OBJS) pgsql2shp.o + $(CC) $(CFLAGS) $(OBJS) pgsql2shp.o $(libpq) $(LDFLAGS) $(LIBS) -o $@ -shp2pgsql: $(OBJS) +shp2pgsql: $(OBJS) shp2pgsql.o + $(CC) $(CFLAGS) $(OBJS) shp2pgsql.o $(libpq) $(LDFLAGS) $(LIBS) -o $@ clean: @rm -f $(OBJS) shp2pgsql pgsql2shp -- 2.40.0