diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-03-31 15:27:13 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-03-31 15:27:13 +0800 |
commit | e7b6017449709bef714a272dc3e6dd93f68eb5d2 (patch) | |
tree | 433c3729f0332658db08cf4029e6c1cc3fe4c983 | |
parent | 9d1324b2d30233b66406e1951573be9729c92038 (diff) |
Use libtool to build shared library too
and also installation setttings.
-rw-r--r-- | .gitignore | 14 | ||||
-rw-r--r-- | Makefile.am | 36 | ||||
-rw-r--r-- | configure.ac | 12 |
3 files changed, 37 insertions, 25 deletions
@@ -1,23 +1,27 @@ *~ -*.a +*.la +*.lo *.o *.swp .deps +.libs Makefile Makefile.am.user Makefile.in aclocal.m4 ar-lib autom4te.cache +autoscan-2.69.log compile -config.h -config.h.in -config.log -config.status +config.* configure +configure.scan depcomp html icclienttest install-sh +libtool +ltmain.sh +m4 missing stamp-h1 diff --git a/Makefile.am b/Makefile.am index f5961a7..d22e5ff 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,21 +1,23 @@ -noinst_LIBRARIES = libicclient.a -libicclient_a_SOURCES = \ - icclient/product.h \ - icclient/catalog.h \ - icclient/ord.h \ - icclient/member.h \ - icclient/admin.h \ - icclient/client.h \ - request.h \ - request.c \ - login.h \ - login.c \ - ord.c \ - member.c \ - admin.c \ - client.c +ACLOCAL_AMFLAGS = -I m4 +lib_LTLIBRARIES = libicclient.la +libicclient_la_SOURCES = \ + request.h \ + request.c \ + login.h \ + login.c \ + ord.c \ + member.c \ + admin.c \ + client.c +pkginclude_HEADERS = \ + icclient/product.h \ + icclient/catalog.h \ + icclient/ord.h \ + icclient/member.h \ + icclient/admin.h \ + icclient/client.h #bin_PROGRAMS = icclienttest #icclienttest_SOURCES = main.c -#icclienttest_LDADD = libicclient.a +#icclienttest_LDADD = libicclient.la #icclienttest_LDFLAGS = -lcurl diff --git a/configure.ac b/configure.ac index 6398220..ce29659 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,15 @@ -AC_INIT([libicclient], [0.0], [pt@darapsa.co.id]) +AC_INIT([icclient], [0.0], [pt@darapsa.co.id]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_CC -AC_PROG_RANLIB AM_PROG_AR +LT_INIT AC_CONFIG_HEADERS([config.h]) -AC_CHECK_HEADER_STDBOOL AC_CONFIG_FILES([Makefile]) +AC_CONFIG_MACRO_DIRS([m4]) +AC_CHECK_HEADER_STDBOOL +AC_C_INLINE +AC_FUNC_MALLOC +AC_FUNC_REALLOC +AC_TYPE_SIZE_T +AC_TYPE_SSIZE_T AC_OUTPUT |