-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 850 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 850 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
31
32
33
34
MODULE_big = kv_fdw
ifdef VIDARDB
PG_CPPFLAGS += -Wno-declaration-after-statement -DVidarDB
SHLIB_LINK = -lvidardb
else
PG_CPPFLAGS += -Wno-declaration-after-statement
SHLIB_LINK = -lrocksdb
endif
OBJS = src/kv_fdw.o src/kv_utility.o src/kv_shm.o src/kv_storage.o src/kv_posix.o
EXTENSION = kv_fdw
DATA = sql/kv_fdw--0.0.1.sql
# Users need to specify their own path
PG_CONFIG = /usr/bin/pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
# Users can specify their own configuration
REGISTRY ?= vidardb
TAG ?= rocksdb-6.2.4
IMAGE ?= postgresql
DOCKER ?= docker
src/kv_storage.bc:
$(COMPILE.cxx.bc) $(CCFLAGS) $(CPPFLAGS) -fPIC -c -o $@ src/kv_storage.cc
.PHONY: docker-image
docker-image:
@echo "Building docker image..."
$(DOCKER) build --no-cache --pull -t $(REGISTRY)/$(IMAGE):$(TAG) docker-image