OSDN Git Service

c342956036ab157dbb11d396d3375efcb30cffd3
[pghintplan/pg_hint_plan.git] / Makefile
1 #
2 # pg_hint_plan: Makefile
3 #
4 # Copyright (c) 2012, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
5 #
6
7 MODULES = pg_hint_plan
8 REGRESS = init base_plan pg_hint_plan prepare fdw
9
10 ifdef UNIT_TEST
11 PG_CPPFLAGS = -O0
12 endif
13
14 EXTRA_CLEAN = sql/fdw.sql expected/base_plan.out expected/prepare.out expected/fdw.out
15
16 PG_CONFIG = pg_config
17 PGXS := $(shell $(PG_CONFIG) --pgxs)
18 include $(PGXS)
19
20 expected/base_plan.out: expected/base_plan-$(MAJORVERSION).out
21         cp expected/base_plan-$(MAJORVERSION).out expected/base_plan.out
22 expected/prepare.out: expected/prepare-$(MAJORVERSION).out
23         cp expected/prepare-$(MAJORVERSION).out expected/prepare.out
24
25 installcheck: expected/base_plan.out expected/prepare.out
26
27 # pg_hint_plan.c includes core.c and make_join_rel.c
28 pg_hint_plan.o: core.c make_join_rel.c