summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2012-07-29 17:48:22 -0500
committerEric Haszlakiewicz <erh+git@nimenees.com>2012-07-29 17:48:22 -0500
commit075b783631c320bce55deb6c9a0fa2b35fa4cd65 (patch)
tree0444ee509c66cd461cabd934b0186acd94da537d /Makefile.am
parentc7a21203de9cf9c232a36c8e68e25aca5247d662 (diff)
downloadjson-c-075b783631c320bce55deb6c9a0fa2b35fa4cd65.tar.gz
Add a --disable-oldname-compat option to configure to turn off the creation of the libjson.so library, and only include libjson-c.so
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index ecd4097..0de3d21 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,13 +3,16 @@ include Makefile.am.inc
EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj
SUBDIRS = . tests
-lib_LTLIBRARIES = libjson-c.la libjson.la
+lib_LTLIBRARIES = libjson-c.la
+if ENABLE_OLDNAME_COMPAT
+lib_LTLIBRARIES+=libjson.la
+endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = json-c.pc
-libjsonincludedir = $(includedir)/json-c
-libjsoninclude_HEADERS = \
+libjson_cincludedir = $(includedir)/json-c
+libjson_cinclude_HEADERS = \
arraylist.h \
bits.h \
debug.h \
@@ -30,10 +33,14 @@ libjsoninclude_HEADERS = \
# json_config.h
libjson_c_la_LDFLAGS = -version-info 1:0:1 -no-undefined
+
+if ENABLE_OLDNAME_COMPAT
libjson_la_LDFLAGS = -version-info 1:0:1 -no-undefined -ljson-c
# Temporary libjson library. This will be removed after one release.
libjson_la_LIBADD = -ljson-c
+endif
+
libjson_c_la_SOURCES = \
arraylist.c \