summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore24
-rw-r--r--Makefile.am15
-rwxr-xr-xaarch64-linux-android-configure8
-rw-r--r--configure.ac8
-rwxr-xr-xi686-w64-mingw32-configure6
-rwxr-xr-xx86_64-pc-linux-gnu-configure4
6 files changed, 65 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index bb18bf8..9378f72 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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