diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-09 20:12:59 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-09 20:12:59 +0800 |
commit | e165344ab55e98e27e13f7024b6143aa84518489 (patch) | |
tree | b5ebdc6a7b2c2ba85bcf3c37771b79f3531a1e02 | |
parent | a1e538564d4b2a60be70a32ec39afdba249ce37d (diff) |
Add support for Autotools
though the resulting library is not right yet.
-rw-r--r-- | .gitignore | 24 | ||||
-rw-r--r-- | Makefile.am | 15 | ||||
-rwxr-xr-x | aarch64-linux-android-configure | 8 | ||||
-rw-r--r-- | configure.ac | 8 | ||||
-rwxr-xr-x | i686-w64-mingw32-configure | 6 | ||||
-rwxr-xr-x | x86_64-pc-linux-gnu-configure | 4 |
6 files changed, 65 insertions, 0 deletions
@@ -1,4 +1,28 @@ +*~ +*.la +*.lo +*.o *.swp +.deps +.libs CMakeLists.txt.user +Makefile +Makefile.am.user* +Makefile.in +aclocal.m4 +ar-lib +autom4te.cache +autoscan-2.69.log build* +compile +config.* +configure +configure.scan +depcomp html +install-sh +libtool +ltmain.sh +m4 +missing +stamp-h1 diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..67425a7 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,15 @@ +lib_LTLIBRARIES = libqicclient.la +libqicclient_la_SOURCES = \ + catalog.cxx \ + ord.cxx \ + member.cxx \ + admin.cxx \ + client.cxx +libqicclient_la_CPPFLAGS = $(QT_CFLAGS) +libqicclient_la_LDFLAGS = $(QT_LIBS) +pkginclude_HEADERS = \ + qicclient/catalog.hxx \ + qicclient/ord.hxx \ + qicclient/member.hxx \ + qicclient/admin.hxx \ + qicclient/client.hxx diff --git a/aarch64-linux-android-configure b/aarch64-linux-android-configure new file mode 100755 index 0000000..5594ce3 --- /dev/null +++ b/aarch64-linux-android-configure @@ -0,0 +1,8 @@ +#!/bin/sh +export TOOLCHAIN=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64 +export TARGET=aarch64-linux-android +export API=21 +export CC=$TOOLCHAIN/bin/$TARGET$API-clang +export PREFIX=$TOOLCHAIN/sysroot/usr +export CFLAGS="$CFLAGS -g" +./configure --host=$TARGET --prefix=$PREFIX --libdir=$PREFIX/lib/$TARGET/$API --disable-static diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..674a490 --- /dev/null +++ b/configure.ac @@ -0,0 +1,8 @@ +AC_INIT([qicclient], [0.0], [pt@darapsa.co.id]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +AC_PROG_CXX +AC_CONFIG_FILES([Makefile]) +PKG_CHECK_MODULES([QT], [Qt5Core]) +AM_PROG_AR +LT_INIT +AC_OUTPUT diff --git a/i686-w64-mingw32-configure b/i686-w64-mingw32-configure new file mode 100755 index 0000000..11c3b58 --- /dev/null +++ b/i686-w64-mingw32-configure @@ -0,0 +1,6 @@ +#!/bin/sh +export TARGET=i686-w64-mingw32 +export CC=$TARGET-gcc +export CPPFLAGS="$CPPFLAGS -DDEBUG" +export CFLAGS="$CFLAGS -g" +./configure --host=$TARGET --prefix=/usr/$TARGET/usr diff --git a/x86_64-pc-linux-gnu-configure b/x86_64-pc-linux-gnu-configure new file mode 100755 index 0000000..8499b0b --- /dev/null +++ b/x86_64-pc-linux-gnu-configure @@ -0,0 +1,4 @@ +#!/bin/sh +export CPPFLAGS="$CPPFLAGS -DDEBUG" +export CFLAGS="$CFLAGS -g" +./configure --libdir=/usr/local/lib64 --disable-static |