diff erlang/erldc/README.txt @ 12:079718588eb6

made erlang binding work with system *installed* dyncall: - made build use static libraries (used .o files directly) - removed custom flags for include path and relying on CFLAGS now - change cc to $(CC) - readme update with build instructions, etc.
author cslag
date Sat, 26 Mar 2016 15:55:50 +0100
parents 0cfcc391201f
children 1673ab696715
line wrap: on
line diff
--- a/erlang/erldc/README.txt	Sat Mar 26 15:47:53 2016 +0100
+++ b/erlang/erldc/README.txt	Sat Mar 26 15:55:50 2016 +0100
@@ -1,16 +1,25 @@
-BUILDING
-========
+BUILD/INSTALLATION
+==================
 
-To build erldc:
+1) make sure dyncall is built and libraries/headers are in include paths or
+   CFLAGS points to them, etc.. Same goes for erlang headers/libs.
+
+2) Build this erlang NIF:
 
-    make DYNCALL_SRC_PATH=../dyncall ERLANG_INST_DIR=/erlang/in/this/dir all
-    sudo make ERLANG_INST_DIR=/erlang/in/this/dir install
+     make
 
-Erlang doesn't use pkg-config, so you must specify ERLANG_INC (and
-ERLANG_INST_DIR at install-time).
+3) To install, pick correct install paths by defining PREFIX (if needed, e.g.
+   for stage dir) and ERLANG_INST_DIR (e.g. /usr/lib64/erlang,
+   /usr/local/lib/erlang, ...):
+
+      make ERLANG_INST_DIR=/erlang/in/this/dir install
+
+Erlang doesn't use pkg-config, so it's up to you to point to set the flags to
+point to correct paths at build and install-time.
 
 The makefile is meant to be portable, at least across *nix.
 
+
 RUNNING TESTS
 =============
 
@@ -23,13 +32,16 @@
     make build-plt
     make dialyze
 
+
 USING
 =====
+
 Examine the test suites for several examples.
 
 Dyncall is built as an OTP library application, so there's nothing
 to start or stop.
 
+
 TODO
 ====
 
@@ -37,3 +49,4 @@
 AUTHORS
 =======
 Erik Mackdanz <erikmack@gmail.com>
+