forked from postgrespro/jsquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 1 KB
/
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
37
38
39
40
41
42
43
44
45
# contrib/jsquery/Makefile
MODULE_big = jsquery
OBJS = jsonb_gin_ops.o jsquery_constr.o jsquery_extract.o \
jsquery_gram.o jsquery_io.o jsquery_op.o jsquery_support.o
EXTENSION = jsquery
DATA = jsquery--1.1.sql jsquery--1.0--1.1.sql
INCLUDES = jsquery.h
REGRESS = jsquery
# We need a UTF8 database
ENCODING = UTF8
EXTRA_CLEAN = y.tab.c y.tab.h \
jsquery_gram.c jsquery_scan.c jsquery_gram.h
ifdef USE_PGXS
PG_CONFIG ?= pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/jsquery
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
ifdef USE_ASSERT_CHECKING
override CFLAGS += -DUSE_ASSERT_CHECKING
endif
jsquery_gram.o: jsquery_scan.c
jsquery_gram.c: BISONFLAGS += -d
distprep: jsquery_gram.c jsquery_scan.c
maintainer-clean:
rm -f jsquery_gram.c jsquery_scan.c jsquery_gram.h
install: installincludes
installincludes:
$(INSTALL_DATA) $(addprefix $(srcdir)/, $(INCLUDES)) '$(DESTDIR)$(includedir_server)/'