-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (35 loc) · 1.09 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
MODULE_big = bztree
OBJS = ./bztree_fdw.o \
./pmwcas/src/common/epoch.o \
./pmwcas/src/common/allocator_internal.o \
./pmwcas/src/common/pmwcas_internal.o \
./pmwcas/src/common/environment_internal.o \
./pmwcas/src/environment/environment_linux.o \
./pmwcas/src/environment/environment.o \
./pmwcas/src/mwcas/mwcas.o \
./pmwcas/src/util/nvram.o \
./pmwcas/src/util/doubly_linked_list.o \
./pmwcas/src/util/status.o \
./bztree.o
PGFILEDESC = "bztree - bztree implementation based on PMWCAS"
ifdef USE_PMEM
PG_CPPFLAGS += -O0 -std=c++14 -I./pmwcas -I./pmwcas/include -I./pmwcas/src -DPMDK -DPMEM
SHLIB_LINK = -lstdc++ -lnuma -lpmemobj
else
PG_CPPFLAGS += -std=c++14 -I./pmwcas -I./pmwcas/include -I./pmwcas/src
SHLIB_LINK = -lstdc++ -lnuma
endif
EXTENSION = bztree
DATA = bztree--1.0.sql
REGRESS = test
REGRESS_OPTS = --temp-config $(top_srcdir)/contrib/bztree/bztree.conf
ifdef USE_PGXS
PG_CONFIG ?= pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/bztree
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif