3 Commits d8e76b672a ... 996902aad4

Author SHA1 Message Date
  Stefano Cossu 996902aad4 Fix memory leak in LSUP_graph_store when output is NULL. 2 years ago
  Stefano Cossu ad70c8c905 Re-added log and tpl subprojects. 2 years ago
  Stefano Cossu 4f52b03cee Documentation update. 2 years ago
5 changed files with 25 additions and 1 deletions
  1. 2 0
      Makefile
  2. 20 1
      README.md
  3. 1 0
      ext/log
  4. 1 0
      ext/tpl
  5. 1 0
      src/graph.c

+ 2 - 0
Makefile

@@ -137,6 +137,7 @@ liblmdb:
 
 
 install: lib ## Install library and dependencies to $PREFIX. May require sudo.
+	@echo "Installing library files in $(PREFIX)."
 	cd $(MDB_DIR); PREFIX=$(PREFIX) make install
 	cd $(XXHASH_DIR); PREFIX=$(PREFIX) make install
 	mkdir -p $(DESTDIR)$(libdir)
@@ -146,6 +147,7 @@ install: lib ## Install library and dependencies to $PREFIX. May require sudo.
 
 
 debug_install: install debug ## Install standard and debug libraries.
+	@echo "Installing debug library files in $(PREFIX)."
 	cp liblsuprdf_dbg.{a,so} $(DESTDIR)$(libdir)
 	
 

+ 20 - 1
README.md

@@ -94,6 +94,13 @@ of features as a standalone library:
 The default `make` command compiles the library. Enter `make help` to get an
 overview of the other available commands.
 
+`make install` installs libraries and headers in the directories set by the
+environment variable `$PREFIX`. If this is unset, the default `/usr/local`
+prefix is used.
+
+Options to compile with debug symbols are available.
+
+
 ### Compile-Time Constants
 
 `DEBUG`: Set debug mode: memory map is at reduced size, logging is forced to
@@ -106,7 +113,19 @@ RDF source. The default value is 8192, which is mildly conservative. If you
 experience parsing errors on decoding, and they happen to be on a term such a
 very long string literal, try recompiling the library with a larger value.
 
-## Running and Embedding
+## Embedding
+
+The generated `liblsuprdf.so` and `liblsuprdf.a` libraries can be linked
+dynamically or statically to your code. Only the `lsup_rdf.h` header, which
+recursively includes other headers in the `include` directory, needs to be
+`#include`d in the embedding code.
+
+Environment variables and/or compiler options might have to be set in order to
+find the dynamic libraries and headers in their install locations.
+
+For compilation and linking examples, refer to `test`, `memtest`, `perftest`
+and other actions in the current Makefile.
+
 
 ### Environment Variables
 

+ 1 - 0
ext/log

@@ -0,0 +1 @@
+Subproject commit 9b7a338c3cee9a68f118c22c9e322b809fda198d

+ 1 - 0
ext/tpl

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

+ 1 - 0
src/graph.c

@@ -165,6 +165,7 @@ LSUP_graph_store (
     }
 
     if (dest_p) *dest_p = dest;
+    else LSUP_graph_free (dest);
 
     return LSUP_OK;
 }