blob: a282e3151f581d2326f7f37e92a28a68403b59cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Native (non-web) interface written in C for interacting with [Interchange](https://interchangecommerce.org) servers
# Building
## Getting and preparing for configuration
```sh
$ git clone git://darapsa.org/libicclient.git
$ cd libicclient
$ autoreconf --install
```
## Optionally setting environment values
If, for example, on FreeBSD and using a previously set up arm64 Android standalone toolchain:
```sh
$ setenv CFLAGS "-target aarch64-linux-android --sysroot=/usr/local/aarch64-linux-android/sysroot -I/usr/local/aarch64-linux-android/lib64/clang/7.0.2/include -L/usr/local/aarch64-linux-android/lib/gcc/aarch64-linux-android/4.9.x"
```
If debugging for Android:
```sh
$ export CFLAGS="${CFLAGS} -g -DDEBUG -DANDROID"
$ export LDFLAGS="${LDFLAGS} -llog"
```
and if for android_armv7:
```sh
$ export CFLAGS="${CFLAGS} -fPIC"
```
## Configuring for various target hosts
```sh
$ ./configure
```
or
```sh
$ CC=/usr/local/aarch64-linux-android/bin/aarch64-linux-android-clang ./configure --host=aarch64-linux-android
```
or
```sh
$ CC=/usr/local/arm-linux-androideabi/bin/arm-linux-androideabi-clang ./configure --host=arm-linux-androideabi
```
or so on.
## Compiling and linking
```sh
$ make # -jN (with N an integer number of parallel tasks you allow your computer to run for compiling this)
```
|