lmdb-safe/Makefile

28 lines
654 B
Makefile
Raw Normal View History

2018-12-07 13:52:17 +01:00
2018-12-07 18:17:03 +01:00
LIBS=lmdb-LMDB_0.9.22/libraries/liblmdb/liblmdb.a
INCLUDES=-Ilmdb-LMDB_0.9.22/libraries/liblmdb
2018-12-07 13:52:17 +01:00
2018-12-07 18:17:03 +01:00
#LIBS=-llmdb
2018-12-08 14:08:26 +01:00
CXXFLAGS:=-std=gnu++17 -Wall -O2 -MMD -MP -ggdb -pthread $(INCLUDES) # -fsanitize=address -fno-omit-frame-pointer
2018-12-07 11:25:49 +01:00
CFLAGS:= -Wall -O2 -MMD -MP -ggdb
2018-12-07 13:52:17 +01:00
2018-12-08 20:57:28 +01:00
PROGRAMS = lmdb-test basic-example scale-example
2018-12-07 11:25:49 +01:00
all: $(PROGRAMS)
clean:
rm -f *~ *.o *.d test $(PROGRAMS)
-include *.d
2018-12-07 13:52:17 +01:00
lmdb-test: lmdb-test.o lmdb-safe.o
2018-12-08 14:08:26 +01:00
g++ -std=gnu++17 $^ -o $@ -pthread $(LIBS) #-lasan
basic-example: basic-example.o lmdb-safe.o
g++ -std=gnu++17 $^ -o $@ -pthread $(LIBS)
2018-12-08 20:57:28 +01:00
scale-example: scale-example.o lmdb-safe.o
g++ -std=gnu++17 $^ -o $@ -pthread $(LIBS)