lmdb-safe/Makefile

49 lines
1.4 KiB
Makefile
Raw Normal View History

2018-12-07 13:52:17 +01:00
2018-12-27 17:49:41 +01:00
#LIBS=lmdb-LMDB_0.9.23/libraries/liblmdb/liblmdb.a
#INCLUDES=-Ilmdb-LMDB_0.9.23/libraries/liblmdb
2018-12-07 13:52:17 +01:00
2018-12-10 14:51:02 +01:00
LIBS=-llmdb
CXXVERSIONFLAG= -std=gnu++11
2018-12-27 17:49:41 +01:00
CXXFLAGS:= $(CXXVERSIONFLAG) -Wall -O2 -MMD -MP -ggdb -pthread $(INCLUDES) -Iext # -fsanitize=address -fno-omit-frame-pointer
2018-12-07 11:25:49 +01:00
CFLAGS:= -Wall -O2 -MMD -MP -ggdb
2018-12-27 17:49:41 +01:00
PROGRAMS = lmdb-various basic-example scale-example multi-example rel-example \
2018-12-28 16:33:20 +01:00
resize-example typed-example testrunner lmdb-view
2018-12-07 11:25:49 +01:00
all: $(PROGRAMS)
clean:
rm -f *~ *.o *.d test $(PROGRAMS)
-include *.d
2018-12-28 16:35:32 +01:00
check: testrunner
./testrunner
testrunner: test-basic.o typed-test.o lmdb-safe.o lmdb-typed.o
g++ $(CXXVERSIONFLAG) $^ -o $@ -pthread $(LIBS) -lboost_serialization
2018-12-27 17:49:41 +01:00
lmdb-various: lmdb-various.o lmdb-safe.o
g++ $(CXXVERSIONFLAG) $^ -o $@ -pthread $(LIBS)
2018-12-07 11:25:49 +01:00
2018-12-27 17:49:41 +01:00
lmdb-view: lmdb-view.o lmdb-safe.o
g++ $(CXXVERSIONFLAG) $^ -o $@ $(LIBS)
2018-12-08 14:08:26 +01:00
basic-example: basic-example.o lmdb-safe.o
g++ $(CXXVERSIONFLAG) $^ -o $@ -pthread $(LIBS)
2018-12-08 20:57:28 +01:00
scale-example: scale-example.o lmdb-safe.o
g++ $(CXXVERSIONFLAG) $^ -o $@ -pthread $(LIBS)
2018-12-09 14:37:42 +01:00
multi-example: multi-example.o lmdb-safe.o
g++ $(CXXVERSIONFLAG) $^ -o $@ -pthread $(LIBS)
2018-12-10 14:51:02 +01:00
rel-example: rel-example.o lmdb-safe.o
g++ $(CXXVERSIONFLAG) $^ -o $@ -pthread $(LIBS) -lboost_serialization
2018-12-10 14:51:02 +01:00
resize-example: resize-example.o lmdb-safe.o
g++ $(CXXVERSIONFLAG) $^ -o $@ -pthread $(LIBS)
typed-example: typed-example.o lmdb-typed.o lmdb-safe.o
g++ $(CXXVERSIONFLAG) $^ -o $@ -pthread $(LIBS) -lboost_serialization