From 37b3483ea690318b9dfcbc840bfc8dd0d959b642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 6 Jun 2021 11:44:08 +0800 Subject: Simplify instructions --- README.md | 85 +++------------------------------------------------------------ 1 file changed, 3 insertions(+), 82 deletions(-) diff --git a/README.md b/README.md index 1fa7c31..38372ad 100644 --- a/README.md +++ b/README.md @@ -10,89 +10,10 @@ $ cd libicclient $ autoreconf --install ``` -## Optionally setting environment values - -```sh -$ export ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/21.3.6528147 -$ export TOOLCHAIN=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64 -``` - -and then - -```sh -$ export TARGET=aarch64-linux-android -``` - -or - -```sh -$ export TARGET=armv7a-linux-androideabi -``` - -or - -```sh -$ export TARGET=i686-linux-android -``` - -or - -```sh -$ export TARGET=x86_64-linux-android -``` - -and then - -```sh -$ export API=21 -$ export CC=$TOOLCHAIN/bin/$TARGET$API-clang -``` - -and only for Android 32-bit ARM, reset TARGET - -```sh -$ export TARGET=arm-linux-androideabi -``` - -and then - -```sh -$ export AR=$TOOLCHAIN/bin/$TARGET-ar -$ export AS=$TOOLCHAIN/bin/$TARGET-as -$ export LD=$TOOLCHAIN/bin/$TARGET-ld -$ export RANLIB=$TOOLCHAIN/bin/$TARGET-ranlib -$ export STRIP=$TOOLCHAIN/bin/$TARGET-strip -$ export PREFIX=$TOOLCHAIN/sysroot/usr -``` - -If debugging for Android: -```sh -$ export CPPFLAGS="$CPPFLAGS -DDEBUG -DANDROID" -$ export CFLAGS="$CFLAGS -g" -``` - -If, for example, on FreeBSD and cross-compiling for arm64 Android relying on Linux binary compatibility: -```sh -$ setenv LDFLAGS "$LDFLAGS -L$PREFIX/lib/$TARGET/$API" -``` - -## Configuring for various target hosts - -```sh -$ ./configure -``` - -or - -```sh -$ ./configure --host=$TARGET --prefix=$PREFIX --libdir=$PREFIX/lib/$TARGET/$API --disable-static -``` - -or so on. - -## Compiling, linking, and installing +## Configuring for various target hosts, compiling, linking, and installing ```sh +$ ./configure # (or use the platform specific wrappers, and adjust as necessary) $ make # -jN (with N an integer number of parallel tasks you allow your computer to run for compiling this) -$ sudo make install +$ make install ``` -- cgit v1.2.3