aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTadas Vilkeliskis <vilkeliskis.t@gmail.com>2013-10-27 00:29:44 -0400
committerTadas Vilkeliskis <vilkeliskis.t@gmail.com>2013-10-27 00:30:22 -0400
commitbd7c1a6b7d4371c3dcdd7d869da7fceabeba106a (patch)
tree97f46768bbefd77f1781c7f936be15289d93e86f
parent58f3d912e20abc57c1c68cfc28325a5d58034189 (diff)
build shared lib and allow to install it
-rw-r--r--.gitignore1
-rw-r--r--configure.in7
-rw-r--r--src/Makefile.am7
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