forked from okbob/plpgsql_check
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 829 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 829 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
29
30
# $PostgreSQL: pgsql/contrib/plpgsql_check/Makefile
MODULE_big = plpgsql_check
OBJS = plpgsql_check.o
DATA = plpgsql_check--1.0--1.1.sql plpgsql_check--1.2.sql plpgsql_check--1.1--1.2.sql
EXTENSION = plpgsql_check
ifndef MAJORVERSION
MAJORVERSION := $(basename $(VERSION))
endif
REGRESS_OPTS = --dbname=$(PL_TESTDB)
REGRESS = plpgsql_check_passive plpgsql_check_active plpgsql_check_active-$(MAJORVERSION) plpgsql_check_passive-$(MAJORVERSION)
ifdef NO_PGXS
subdir = contrib/plpgsql_check
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
else
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
endif
ifeq ($(PORTNAME), darwin)
override CFLAGS += -undefined dynamic_lookup
endif
override CFLAGS += -I$(top_builddir)/src/pl/plpgsql/src