OSDN Git Service

PG9.1、PG9.2の両方でビルド可能にした。
[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 ut-init ut-A ut-A2 ut-S ut-J ut-L ut-G ut-fini
9 #REGRESS = ut-init ut-J ut-fini
10
11 EXTRA_CLEAN = core.c sql/fdw.sql expected/base_plan.out expected/prepare.out expected/fdw.out
12
13 PG_CONFIG = pg_config
14 PGXS := $(shell $(PG_CONFIG) --pgxs)
15 include $(PGXS)
16
17 core.c: core-$(MAJORVERSION).c
18         cp core-$(MAJORVERSION).c core.c
19 expected/base_plan.out: expected/base_plan-$(MAJORVERSION).out
20         cp expected/base_plan-$(MAJORVERSION).out expected/base_plan.out
21 expected/prepare.out: expected/prepare-$(MAJORVERSION).out
22         cp expected/prepare-$(MAJORVERSION).out expected/prepare.out
23
24 installcheck: expected/base_plan.out expected/prepare.out
25
26 # pg_hint_plan.c includes core.c and make_join_rel.c
27 pg_hint_plan.o: core.c make_join_rel.c