Modify install names for library and include files

Changing root name of library to json-c, and also the
directory where header files are installed to .../jsdon-c/*.

This avoids clashes with other implementations of JSON libraries.
This commit is contained in:
Keith Derrick
2012-03-30 12:28:32 -07:00
parent 21d3706192
commit 30dd367c0a
3 changed files with 9 additions and 9 deletions

View File

@@ -2,12 +2,12 @@ AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj
lib_LTLIBRARIES = libjson.la
lib_LTLIBRARIES = libjson-c.la
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = json.pc
pkgconfig_DATA = json-c.pc
libjsonincludedir = $(includedir)/json
libjsonincludedir = $(includedir)/json-c
libjsoninclude_HEADERS = \
arraylist.h \
bits.h \
@@ -27,9 +27,9 @@ libjsoninclude_HEADERS = \
#libjsonx_include_HEADERS = \
# json_config.h
libjson_la_LDFLAGS = -version-info 1:0:1 -no-undefined
libjson_c_la_LDFLAGS = -version-info 1:0:1 -no-undefined
libjson_la_SOURCES = \
libjson_c_la_SOURCES = \
arraylist.c \
debug.c \
json_object.c \

View File

@@ -31,5 +31,5 @@ AM_PROG_LIBTOOL
AC_OUTPUT([
Makefile
json.pc
json-c.pc
])

View File

@@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: json
Name: json-c
Description: JSON implementation in C
Version: @VERSION@
Requires:
Libs: -L${libdir} -ljson
Cflags: -I${includedir}/json
Libs: -L${libdir} -ljson-c
Cflags: -I${includedir}/json-c