From bd7c1a6b7d4371c3dcdd7d869da7fceabeba106a Mon Sep 17 00:00:00 2001 From: Tadas Vilkeliskis Date: Sun, 27 Oct 2013 00:29:44 -0400 Subject: build shared lib and allow to install it --- .gitignore | 1 + configure.in | 7 ++----- src/Makefile.am | 7 ++++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 53b72f2..ca52810 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ Makefile.in Makefile .deps .dirstamp +libtool diff --git a/configure.in b/configure.in index 99ee5b7..71dad4b 100644 --- a/configure.in +++ b/configure.in @@ -4,14 +4,11 @@ AC_CONFIG_AUX_DIR(config) AC_CONFIG_MACRO_DIR(config) AM_INIT_AUTOMAKE(tar-ustar dist-zip foreign subdir-objects) -AC_PROG_RANLIB # This lets us use PACKAGE_VERSION in Makefiles AC_SUBST(PACKAGE_VERSION) -# Take a copy of original flags -CHIMP_ORIG_CFLAGS="${CFLAGS:-none}" -CHIMP_ORIG_CPPFLAGS="${CPPFLAGS:-none}" -CHIMP_ORIG_CXXFLAGS="${CXXFLAGS:-none}" +# Initialize libtool so we could build shared objects. +LT_INIT # Checks for programs. AC_PROG_CC diff --git a/src/Makefile.am b/src/Makefile.am index 417383e..81aa44d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,5 @@ -noinst_LIBRARIES = libcsv_parser.a +lib_LTLIBRARIES = libcsv_parser.la +libcsv_parser_la_SOURCES = csv_parser.c \ + csv_parser.h -libcsv_parser_a_SOURCES = csv_parser.c \ - csv_parser.h +include_HEADERS = csv_parser.h -- cgit v1.2.3