-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (39 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
##########################################################################
#
# foreign-data wrapper for Valkey
#
# Copyright (c) 2011,2013 PostgreSQL Global Development Group
#
# This software is released under the PostgreSQL Licence
#
# Authors: Dave Page <[email protected]>
# Andrew Dunstan <[email protected]>
# Dan Molik <[email protected]>
#
# IDENTIFICATION
# valkey_fdw/Makefile
#
##########################################################################
MODULE_big = valkey_fdw
OBJS = valkey_fdw.o
EXTENSION = valkey_fdw
DATA = valkey_fdw--1.0.sql
REGRESS = valkey_fdw
REGRESS_OPTS = --inputdir=test --outputdir=test \
--load-extension=hstore \
--load-extension=$(EXTENSION)
EXTRA_CLEAN = sql/valkey_fdw.sql expected/valkey_fdw.out
SHLIB_LINK += -lvalkey
USE_PGXS = 1
ifeq ($(USE_PGXS),1)
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/valkey_fdw
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
# we put all the tests in a test subdir, but pgxs expects us not to, darn it
override pg_regress_clean_files = test/results/ test/regression.diffs test/regression.out tmp_check/ log/