-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
37 lines (28 loc) · 912 Bytes
/
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
# mv_rewrite
MODULE_big = mv_rewrite.0.6.2
OBJS = mv_rewrite.o equalwalker.o extension.o join_is_legal.o build_joinrel_restrictlist.o release_rewrite_locks.o $(WIN32RES)
PGFILEDESC = "mv_rewrite - MV rewrite extension for PostgreSQL"
TESTS = $(wildcard sql/*.sql)
PG_CPPFLAGS = -I$(libpq_srcdir)
SHLIB_LINK = $(libpq)
EXTENSION = mv_rewrite
DATA = mv_rewrite--0.6.sql \
mv_rewrite--0.6--0.6.1.sql mv_rewrite--0.6.1.sql \
mv_rewrite--0.6.2.sql
REGRESS = $(patsubst sql/%.sql,%,$(TESTS))
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
SHLIB_PREREQS = submake-libpq
subdir = contrib/mv_rewrite
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
clean: local-clean
local-clean:
rm -f equalwalker.c
equalwalker.c: generate_equalswalker.sh
./generate_equalswalker.sh > equalwalker.c