-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 763 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 763 Bytes
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
# acl/Makefile
MODULE_big = acl
OBJS = acl.o acl_oid.o acl_uuid.o acl_int8.o acl_int4.o util.o
PG_CPPFLAGS=-Wall
EXTENSION = acl
DATA = acl--1.0.4.sql \
acl--1.0.0--1.0.1.sql \
acl--1.0.1--1.0.2.sql \
acl--1.0.2--1.0.3.sql \
acl--1.0.3--1.0.4.sql
DOCS = acl.md
PG_CONFIG = pg_config
PG_VERSION := $(shell $(PG_CONFIG) --version | cut -d '.' -f 1 | cut -d ' ' -f 2)
ifeq ($(shell test $(PG_VERSION) -ge 12; echo $$?), 0)
REGRESS = install acl_oid acl_uuid_pg10 acl_int8_pg12 acl_int4_pg12
else ifeq ($(shell test $(PG_VERSION) -ge 10; echo $$?), 0)
REGRESS = install acl_oid acl_uuid_pg10 acl_int8 acl_int4
else
REGRESS = install acl_oid acl_uuid acl_int8 acl_int4
endif
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)