generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (40 loc) · 1.7 KB
/
Makefile
File metadata and controls
55 lines (40 loc) · 1.7 KB
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
48
49
50
51
52
53
54
55
EXTENSION = collection
EXTVERSION = 2.0.0
PGFILEDESC = "pgcollection - collection data type for PostgreSQL"
DOCS = pgcollection.md
MODULE_big = $(EXTENSION)
OBJS = src/collection.o \
src/collection_io.o \
src/collection_userfuncs.o \
src/collection_subs.o \
src/collection_parse.o \
src/collection_common.o \
src/icollection.o \
src/icollection_io.o \
src/icollection_userfuncs.o \
src/icollection_subs.o \
src/icollection_parse.o
REGRESS = collection subscript iteration srf select inout_params icollection icollection_inout icollection_subscript icollection_iteration icollection_srf icollection_select mixed_types func_sub_parity stress
REGRESS_OPTS = --inputdir=test --outputdir=test --load-extension=collection
EXTRA_CLEAN = test/results/ test/regression.diffs test/regression.out \
pgcollection-$(EXTVERSION).zip include/$(EXTENSION)_config.h \
META.json
DATA = $(wildcard sql/*.sql)
DATA_built = $(EXTENSION).control
PG_CPPFLAGS += -I./include/
# Suppress fallthrough warnings from uthash macros
PG_CPPFLAGS += -Wno-implicit-fallthrough
# enable a bloom filter to speed up finds
PG_CPPFLAGS += -DHASH_BLOOM=16
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
META.json: META.json.in
sed 's,EXTVERSION,$(EXTVERSION),g; s,EXTNAME,$(EXTENSION),g' $< > $@;
include/$(EXTENSION)_config.h: include/$(EXTENSION)_config.h.in META.json
sed 's,EXTVERSION,$(EXTVERSION),g; s,EXTNAME,$(EXTENSION),g;' $< > $@;
$(EXTENSION).control: $(EXTENSION).control.in
sed 's,EXTVERSION,$(EXTVERSION),g; s,EXTNAME,$(EXTENSION),g' $< > $@;
src/collection.o: include/$(EXTENSION)_config.h
dist:
git archive --format zip --prefix=pgcollection-$(EXTVERSION)/ -o pgcollection-$(EXTVERSION).zip HEAD