# PGXS information
#
# Note that PGXS currently doesn't handle building FE executables, but we need
-# the DESTDIR variable so we can get the correct install paths.
+# the DESTDIR variable so we can get the correct install paths.
# Hence we include the PGXS Makefile here, but ensure that we override the
# 'all' and 'install' targets with the ones we really want to use below.
PG_CONFIG = @PG_CONFIG@
include $(PGXS)
# Set CFLAGS afer PGXS, otherwise it will get overwritten with the PGXS
-# version which is not what we want.
+# version which is not what we want.
CC=@CC@
CFLAGS=-I ../liblwgeom @CFLAGS@ @PICFLAGS@ @WARNFLAGS@ @PROJ_CPPFLAGS@
top_builddir = @top_builddir@
shp2pgsql-gui.res: shp2pgsql-gui.rc shp2pgsql-gui.ico
windres $< -O coff -o $@
-# liblwgeom.a dependency to allow "make install" in
-# the loader/ subdirectory to work
+# liblwgeom.a dependency to allow "make install" in
+# the loader/ subdirectory to work
$(LIBLWGEOM):
$(MAKE) -C ../liblwgeom
pgsql2shp-cli.o: pgsql2shp-cli.c pgsql2shp-core.h shpcommon.h
$(CC) $(CFLAGS) $(PGSQL_FE_CPPFLAGS) -c $<
-$(PGSQL2SHP-CLI): $(SHPLIB_OBJS) pgsql2shp-core.o pgsql2shp-cli.o $(LIBLWGEOM)
+$(PGSQL2SHP-CLI): $(SHPLIB_OBJS) pgsql2shp-core.o pgsql2shp-cli.o $(LIBLWGEOM)
$(LIBTOOL) --mode=link \
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(ICONV_LDFLAGS) $(PGSQL_FE_LDFLAGS) $(GETTEXT_LDFLAGS) -o $@
-$(SHP2PGSQL-CLI): $(SHPLIB_OBJS) shp2pgsql-core.o shp2pgsql-cli.o $(LIBLWGEOM)
+$(SHP2PGSQL-CLI): $(SHPLIB_OBJS) shp2pgsql-core.o shp2pgsql-cli.o $(LIBLWGEOM)
$(LIBTOOL) --mode=link \
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) $(GETTEXT_LDFLAGS) $(ICONV_LDFLAGS)
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(bindir)/$(SHP2PGSQL-GUI)"
check:
-ifdef gtk_build
$(MAKE) -C cunit check
-endif
clean:
rm -rf .libs
#
-# Internationalization targets. These are going to need some work and
+# Internationalization targets. These are going to need some work and
# love to land the files in the right places in all platforms.
#
-pot:
+pot:
xgettext -k_ shp2pgsql-core.c shp2pgsql-cli.c shp2pgsql-gui.c -o po/shp2pgsql.pot
xgettext -k_ pgsql2shp-core.c pgsql2shp-cli.c -o po/pgsql2shp.pot