Prechádzať zdrojové kódy

Add lmdb submodule and includes; pin to 0.9.x releases.

Stefano Cossu 3 rokov pred
rodič
commit
2e951e5486
3 zmenil súbory, kde vykonal 11 pridanie a 4 odobranie
  1. 4 0
      .gitmodules
  2. 6 4
      Makefile
  3. 1 0
      ext/openldap

+ 4 - 0
.gitmodules

@@ -4,3 +4,7 @@
 [submodule "ext/uuid4"]
 	path = ext/uuid4
 	url = https://github.com/rxi/uuid4.git
+[submodule "ext/openldap"]
+	path = ext/openldap
+	url = https://git.openldap.org/openldap/openldap.git
+	branch = mdb.RE/0.9

+ 6 - 4
Makefile

@@ -1,17 +1,19 @@
+.PHONY: build test profile
+
 default: all
 
 all: test
 
 check:
 	splint \
-	-Iinclude -Iext/xxHash \
+	-Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb \
 	-preproc \
 	test.c
 
 build:
 	gcc -g -Wall \
 		-std=c99 \
-		-Iinclude -Iext/xxHash -Iext/klib \
+		-Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb \
 		-luuid \
 		ext/xxHash/xxhash.c src/*.c \
 		-o bin/lsup_rdf.so
@@ -20,7 +22,7 @@ test:
 	gcc -g -Wall \
 		-std=c99 \
 		-DDEBUG \
-		-Iinclude -Iext/xxHash -Iext/klib -Itest \
+		-Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb -Itest \
 		-luuid \
 		ext/xxHash/xxhash.c src/*.c test.c \
 		-o bin/test
@@ -28,7 +30,7 @@ test:
 profile:
 	gcc -g -Wall \
 		-std=c99 \
-		-Iinclude -Iext/xxHash -Iext/klib -Itest \
+		-Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb -Itest \
 		-luuid \
 		ext/xxHash/xxhash.c src/*.c test.c \
 		-o bin/profile

+ 1 - 0
ext/openldap

@@ -0,0 +1 @@
+Subproject commit 1ce8c2bcea5f97efa772051f249be101d7e512d9