forked from bluthg/odbc_fdw
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
47 lines (39 loc) · 1.18 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 ODBC
#
# Copyright (c) 2011, PostgreSQL Global Development Group
# Copyright (c) 2016, CARTO
#
# This software is released under the PostgreSQL Licence
#
# Author: Zheng Yang <zhengyang4k@gmail.com>
#
# IDENTIFICATION
# odbc_fdw/Makefile
#
##########################################################################
MODULE_big = odbc_fdw
OBJS = odbc_fdw.o
EXTENSION = odbc_fdw
DATA = odbc_fdw--0.5.2.sql \
odbc_fdw--0.2.0--0.3.0.sql \
odbc_fdw--0.2.0--0.4.0.sql \
odbc_fdw--0.3.0--0.4.0.sql \
odbc_fdw--0.4.0--0.5.0.sql \
odbc_fdw--0.5.0--0.5.1.sql \
odbc_fdw--0.5.1--0.5.2.sql
TEST_DIR = test/
REGRESS = $(notdir $(basename $(sort $(wildcard $(TEST_DIR)/sql/*test.sql))))
REGRESS_OPTS = --inputdir='$(TEST_DIR)' --outputdir='$(TEST_DIR)' --user='postgres' --load-extension=odbc_fdw
SHLIB_LINK = -lodbc
ifdef DEBUG
override CFLAGS += -DDEBUG -g -O0
endif
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
GENERATED_SQL_FILES = $(wildcard $(TEST_DIR)/sql/*.sql)
integration_tests:
bash test/tests-generator.sh
make installcheck