postgis/libpgcommon/Makefile.in
Sandro Santilli bce8e015d6 Virtualize ``make'' calls (#1464)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8801 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 16:23:18 +00:00

63 lines
1.3 KiB
Makefile

# **********************************************************************
# * $Id: Makefile.in
# *
# * PostGIS - Spatial Types for PostgreSQL
# * http://postgis.refractions.net
# * Copyright 2008 Mark Cave-Ayland
# *
# * This is free software; you can redistribute and/or modify it under
# * the terms of the GNU General Public Licence. See the COPYING file.
# *
# **********************************************************************
CC=@CC@
CFLAGS=@CFLAGS@ @PGSQL_BE_CPPFLAGS@ @PROJ_CPPFLAGS@ -I../liblwgeom @PICFLAGS@ @WARNFLAGS@ @GETTEXT_CFLAGS@
LDFLAGS=@GETTEXT_LDFLAGS@ @LIBINTL@
NUMERICFLAGS=@NUMERICFLAGS@
YACC=@YACC@
LEX=@LEX@
# Standalone COMMON objects
SA_OBJS = \
gserialized_gist.o \
lwgeom_transform.o \
lwgeom_pg.o
SA_HEADERS = \
lwgeom_pg.h \
lwgeom_transform.h \
gserialized_gist.h \
pgsql_compat.h
all: libpgcommon.a
# nothing to install or uninstall
install uninstall:
libpgcommon.a: $(SA_OBJS) $(SA_HEADERS)
ar rs libpgcommon.a $(SA_OBJS)
maintainer-clean: clean
clean:
$(MAKE) -C cunit clean
rm -f $(SA_OBJS)
rm -f $(NM_OBJS)
rm -f libpgcommon.a
# Nothing specific in distclean (will be done by clean)
distclean:
check: libpgcommon.a
$(MAKE) -C cunit check
# Command to build each of the .o files
$(SA_OBJS): %.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
$(SA_OBJS): ../postgis_config.h