]> granicus.if.org Git - postgis/commitdiff
Added N.Vines changes to Makefile for better compilation under cygwin.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 26 Oct 2001 17:04:54 +0000 (17:04 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 26 Oct 2001 17:04:54 +0000 (17:04 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@94 b70326c6-7e19-0410-871a-916f4a2858ee

loader/Makefile

index 921da37563c430eb58a2596cc0d7cd85d0cdee0f..d21149aa9200ac334d286e8b2d95055aa07b81f3 100644 (file)
@@ -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