Mercurial > pub > dyncall > bindings
comparison 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 |
comparison
equal
deleted
inserted
replaced
11:8070dae59227 | 12:079718588eb6 |
---|---|
1 BUILDING | 1 BUILD/INSTALLATION |
2 ======== | 2 ================== |
3 | 3 |
4 To build erldc: | 4 1) make sure dyncall is built and libraries/headers are in include paths or |
5 CFLAGS points to them, etc.. Same goes for erlang headers/libs. | |
5 | 6 |
6 make DYNCALL_SRC_PATH=../dyncall ERLANG_INST_DIR=/erlang/in/this/dir all | 7 2) Build this erlang NIF: |
7 sudo make ERLANG_INST_DIR=/erlang/in/this/dir install | |
8 | 8 |
9 Erlang doesn't use pkg-config, so you must specify ERLANG_INC (and | 9 make |
10 ERLANG_INST_DIR at install-time). | 10 |
11 3) To install, pick correct install paths by defining PREFIX (if needed, e.g. | |
12 for stage dir) and ERLANG_INST_DIR (e.g. /usr/lib64/erlang, | |
13 /usr/local/lib/erlang, ...): | |
14 | |
15 make ERLANG_INST_DIR=/erlang/in/this/dir install | |
16 | |
17 Erlang doesn't use pkg-config, so it's up to you to point to set the flags to | |
18 point to correct paths at build and install-time. | |
11 | 19 |
12 The makefile is meant to be portable, at least across *nix. | 20 The makefile is meant to be portable, at least across *nix. |
21 | |
13 | 22 |
14 RUNNING TESTS | 23 RUNNING TESTS |
15 ============= | 24 ============= |
16 | 25 |
17 Unit tests (via common test): | 26 Unit tests (via common test): |
21 Static analysis (via dialyzer): | 30 Static analysis (via dialyzer): |
22 | 31 |
23 make build-plt | 32 make build-plt |
24 make dialyze | 33 make dialyze |
25 | 34 |
35 | |
26 USING | 36 USING |
27 ===== | 37 ===== |
38 | |
28 Examine the test suites for several examples. | 39 Examine the test suites for several examples. |
29 | 40 |
30 Dyncall is built as an OTP library application, so there's nothing | 41 Dyncall is built as an OTP library application, so there's nothing |
31 to start or stop. | 42 to start or stop. |
43 | |
32 | 44 |
33 TODO | 45 TODO |
34 ==== | 46 ==== |
35 | 47 |
36 | 48 |
37 AUTHORS | 49 AUTHORS |
38 ======= | 50 ======= |
39 Erik Mackdanz <erikmack@gmail.com> | 51 Erik Mackdanz <erikmack@gmail.com> |
52 |