Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 51 lines (39 sloc) 1.174 kb
b81ab98 Jan Urbański Try to adapt the layout to what PGXN wants.
authored
1 EXTENSION = saio
2 EXTVERSION = $(shell grep default_version $(EXTENSION).control | \
3 sed -e "s/default_version[[:space:]]*=[[:space:]]*'\([^']*\)'/\1/")
4
0eb5c70 Jan Urbański The README is Markdown, update the Makefile accordingly.
authored
5 DOCS = $(wildcard doc/*.md)
b81ab98 Jan Urbański Try to adapt the layout to what PGXN wants.
authored
6 TESTS = $(wildcard test/sql/*.sql)
7 REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS))
8 REGRESS_OPTS = --inputdir=test
9 PG_CONFIG = pg_config
10
3c1105d Jan Urbański Use DTrace for debugging instrumentation instead of hand-rolled stuff.
authored
11 EXTRA_CLEAN = src/saio_probes.h
12
e4d43e7 Jan Urbański Initial import
authored
13 MODULE_big = saio
3c1105d Jan Urbański Use DTrace for debugging instrumentation instead of hand-rolled stuff.
authored
14 OBJS = src/saio_main.o src/saio_util.o src/saio_trees.o \
15 src/saio_recalc.o src/saio.o
16
17 # make sure
18 all: all-lib
19
20 # check for DTrace support
21 ifeq (,$(findstring --enable-dtrace,$(shell $(PG_CONFIG) --configure)))
22 enable_dtrace = no
23 else
24 enable_dtrace = yes
25 endif
26
27 ifeq ($(enable_dtrace), yes)
28 OBJS += src/saio_probes.o
29 endif
30
31 src/saio.o: src/saio_probes.h
32
33 src/saio_probes.o: src/saio_probes.d
34 $(DTRACE) -C -G -s $< -o $@
35
36 ifeq ($(enable_dtrace), no)
37 src/saio_probes.h: src/Gen_dummy_probes.sed
38 endif
e4d43e7 Jan Urbański Initial import
authored
39
3c1105d Jan Urbański Use DTrace for debugging instrumentation instead of hand-rolled stuff.
authored
40 src/saio_probes.h: src/saio_probes.d
41 ifeq ($(enable_dtrace), yes)
42 $(DTRACE) -C -h -s $< -o $@.tmp
43 sed -e 's/SAIO_/TRACE_SAIO_/g' $@.tmp >$@
44 rm $@.tmp
45 else
46 sed -f src/Gen_dummy_probes.sed $< >$@
395a8b6 Jan Urbański Only save and write debugging if SAIO_DEBUG is defined.
authored
47 endif
48
e4d43e7 Jan Urbański Initial import
authored
49 PGXS := $(shell $(PG_CONFIG) --pgxs)
50 include $(PGXS)
Something went wrong with that request. Please try again.