mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 17:42:38 +00:00
d420202c00
Documentation fiddling for final format. git-svn-id: http://svn.osgeo.org/postgis/trunk@67 b70326c6-7e19-0410-871a-916f4a2858ee
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
#
|
|
# PostGIS Makefile
|
|
#
|
|
subdir = contrib/postgis
|
|
|
|
# Root of the pgsql source tree
|
|
ifeq (${PGSQL_SRC},)
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
libdir := $(libdir)/contrib
|
|
else
|
|
top_builddir = ${PGSQL_SRC}
|
|
include $(top_builddir)/src/Makefile.global
|
|
libdir := ${PWD}
|
|
endif
|
|
|
|
test_db = geom_regress
|
|
|
|
# shared library parameters
|
|
NAME=postgis
|
|
SO_MAJOR_VERSION=0
|
|
SO_MINOR_VERSION=6
|
|
|
|
#override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
|
|
# Altered for Cynwin
|
|
override CPPFLAGS := -g -I$(srcdir) $(CPPFLAGS) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir)"'
|
|
override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
|
|
|
|
OBJS=postgis_debug.o postgis_ops.o postgis_fn.o postgis_inout.o postgis_proj.o
|
|
|
|
# Add libraries that libpq depends (or might depend) on into the
|
|
# shared library link. (The order in which you list them here doesn't
|
|
# matter.)
|
|
SHLIB_LINK = $(filter -L%, $(LDFLAGS))
|
|
|
|
all: all-lib $(NAME).sql loaderdumper
|
|
|
|
loaderdumper:
|
|
make -C loader
|
|
|
|
# Shared library stuff
|
|
include $(top_srcdir)/src/Makefile.shlib
|
|
|
|
$(NAME).sql: $(NAME).sql.in
|
|
sed -e 's:@MODULE_FILENAME@:$(libdir)/$(shlib):g;s:@POSTGIS_VERSION@:$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION):g' < $< > $@
|
|
|
|
install: all installdirs install-lib
|
|
$(INSTALL_DATA) $(srcdir)/README.$(NAME) $(docdir)/contrib
|
|
$(INSTALL_DATA) $(NAME).sql $(datadir)/contrib
|
|
|
|
installdirs:
|
|
$(mkinstalldirs) $(docdir)/contrib $(datadir)/contrib $(libdir)
|
|
|
|
uninstall: uninstall-lib
|
|
@rm -f $(docdir)/contrib/README.$(NAME) $(datadir)/contrib/$(NAME).sql
|
|
|
|
clean distclean maintainer-clean: clean-lib
|
|
@rm -f $(OBJS) $(NAME).sql
|
|
make -C loader clean
|
|
|
|
test: all
|
|
csh regress/regress.csh $(test_db)
|