nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 0bbc8f9cae704f4f1ff832d6adb84ca2075a1b78
parent d6629aa6ec471e16b0cab3105eac66d069c19962
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 10 Aug 2023 12:45:26 -0700

make: add flatcc dep

Diffstat:
MMakefile | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,6 +4,7 @@ SRCS = nostrdb.c sha256.c LDS = $(SRCS) $(ARS) ARS = deps/lmdb/liblmdb.a deps/secp256k1/.libs/libsecp256k1.a LMDB_VER=0.9.31 +FLATCC_VER=0.6.1 DEPS = $(SRCS) $(HEADERS) $(ARS) PREFIX ?= /usr/local SUBMODULES = deps/secp256k1 @@ -73,6 +74,14 @@ deps/.dir: deps/LMDB_$(LMDB_VER).tar.gz: deps/.dir curl -L https://github.com/LMDB/lmdb/archive/refs/tags/LMDB_$(LMDB_VER).tar.gz -o $@ +deps/flatcc_$(FLATCC_VER).tar.gz: deps/.dir + curl -L https://github.com/dvidelabs/flatcc/archive/refs/tags/v0.6.1.tar.gz -o $@ + +deps/flatcc/include/flatcc/flatcc.h: deps/flatcc_$(FLATCC_VER).tar.gz deps/.dir + tar xf $< + rm -rf deps/flatcc + mv flatcc-$(FLATCC_VER) deps/flatcc + deps/lmdb/lmdb.h: deps/LMDB_$(LMDB_VER).tar.gz deps/.dir tar xf $< rm -rf deps/lmdb