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