mdbx: add tutorial/sample-mdbx.c and drop obsolete sample-mdb.txt.

Also this is a testcase for https://github.com/leo-yuriev/libmdbx/issues/11.

Change-Id: I95c876b1120c1479b2e740b43f6c60e2ac8b33c1
This commit is contained in:
dreamsxin
2017-08-16 03:53:06 +03:00
committed by Leo Yuriev
parent 9b5e28e8e6
commit b0dc98bec0
5 changed files with 95 additions and 67 deletions

View File

@@ -53,10 +53,13 @@ TEST_OBJ := $(patsubst %.cc,%.o,$(TEST_SRC))
.PHONY: mdbx all install clean check coverage
all: $(LIBRARIES) $(TOOLS) test/test
all: $(LIBRARIES) $(TOOLS) test/test example
mdbx: libmdbx.a libmdbx.so
example: mdbx.h tutorial/sample-mdbx.c libmdbx.so
$(CC) $(CFLAGS) -I. tutorial/sample-mdbx.c ./libmdbx.so -o example
tools: $(TOOLS)
install: $(LIBRARIES) $(TOOLS) $(HEADERS)