From 6327d9220485cc14689f9dea4cebc72df3c751b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Mon, 13 Jan 2020 09:07:30 +0800 Subject: Initial documentation --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..7167157 --- /dev/null +++ b/README.md @@ -0,0 +1,44 @@ +# C Library for accessing [Request Tracker's REST 1.0](https://rt-wiki.bestpractical.com/wiki/REST) interface + +# Building + +## Getting and preparing for configuration + +```sh +$ git clone git://darapsa.org/librtclient.git +$ cd librtclient +$ autoreconf --install +``` + +## Optionally setting environment values + +```sh +$ export CFLAGS="${CFLAGS} -g -DDEBUG -DANDROID -fPIC" # PIC might be needed later on android_armv7 +$ export LDFLAGS="${LDFLAGS} -llog" # Android liblog +``` + +## 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) +``` -- cgit v1.2.3