2010-09-20 22:08:53 +02:00
|
|
|
# contrib/dblink/Makefile
|
2001-06-14 18:49:03 +02:00
|
|
|
|
2001-09-06 12:49:30 +02:00
|
|
|
MODULE_big = dblink
|
2014-07-14 20:07:52 +02:00
|
|
|
OBJS = dblink.o $(WIN32RES)
|
2011-02-14 02:06:41 +01:00
|
|
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
2001-09-06 12:49:30 +02:00
|
|
|
SHLIB_LINK = $(libpq)
|
2010-11-12 21:15:16 +01:00
|
|
|
SHLIB_PREREQS = submake-libpq
|
2001-06-14 18:49:03 +02:00
|
|
|
|
2011-02-14 02:06:41 +01:00
|
|
|
EXTENSION = dblink
|
2012-10-10 22:53:08 +02:00
|
|
|
DATA = dblink--1.1.sql dblink--1.0--1.1.sql dblink--unpackaged--1.0.sql
|
2014-07-14 20:07:52 +02:00
|
|
|
PGFILEDESC = "dblink - connect to other PostgreSQL databases"
|
2002-09-03 06:01:05 +02:00
|
|
|
|
2014-07-22 17:01:03 +02:00
|
|
|
REGRESS = paths dblink
|
|
|
|
REGRESS_OPTS = --dlpath=$(top_builddir)/src/test/regress
|
|
|
|
EXTRA_CLEAN = sql/paths.sql expected/paths.out
|
2004-08-20 22:13:10 +02:00
|
|
|
|
2012-12-11 17:52:45 +01:00
|
|
|
# the db name is hard-coded in the tests
|
|
|
|
override USE_MODULE_DB =
|
|
|
|
|
2004-08-20 22:13:10 +02:00
|
|
|
ifdef USE_PGXS
|
2007-06-27 00:05:04 +02:00
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
2004-08-20 22:13:10 +02:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/dblink
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
2001-09-06 12:49:30 +02:00
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
2004-08-20 22:13:10 +02:00
|
|
|
endif
|