2007-11-10 18:59:52 -05:00
|
|
|
# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.15 2007/11/10 23:59:50 momjian Exp $
|
2001-06-14 12:49:03 -04:00
|
|
|
|
2001-09-06 06:49:30 -04:00
|
|
|
MODULE_big = dblink
|
|
|
|
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
|
|
|
|
OBJS = dblink.o
|
|
|
|
|
SHLIB_LINK = $(libpq)
|
2001-06-14 12:49:03 -04:00
|
|
|
|
2001-09-06 06:49:30 -04:00
|
|
|
DATA_built = dblink.sql
|
2006-02-27 07:54:39 -05:00
|
|
|
DATA = uninstall_dblink.sql
|
2014-07-22 11:01:03 -04:00
|
|
|
REGRESS = paths dblink
|
2014-12-17 22:48:40 -05:00
|
|
|
REGRESS_OPTS = --dbname=$(CONTRIB_TESTDB) --dlpath=$(top_builddir)/src/test/regress \
|
|
|
|
|
--create-role=dblink_regression_test
|
2014-07-22 11:01:03 -04:00
|
|
|
EXTRA_CLEAN = sql/paths.sql expected/paths.out
|
2002-09-03 00:01:05 -04:00
|
|
|
|
2004-08-20 16:13:10 -04:00
|
|
|
|
2012-12-11 11:48:00 -05:00
|
|
|
# the db name is hard-coded in the tests
|
|
|
|
|
override USE_MODULE_DB =
|
|
|
|
|
|
2004-08-20 16:13:10 -04:00
|
|
|
ifdef USE_PGXS
|
2007-06-26 18:05:04 -04:00
|
|
|
PG_CONFIG = pg_config
|
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
2004-08-20 16:13:10 -04:00
|
|
|
include $(PGXS)
|
|
|
|
|
else
|
|
|
|
|
subdir = contrib/dblink
|
|
|
|
|
top_builddir = ../..
|
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
2001-09-06 06:49:30 -04:00
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
2004-08-20 16:13:10 -04:00
|
|
|
endif
|