Browse Source

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.
tags/json-c-0.11-20130402
Keith Derrick 13 years ago
parent
commit
30dd367c0a
3 changed files with 9 additions and 9 deletions
  1. +5
    -5
      Makefile.am
  2. +1
    -1
      configure.in
  3. +3
    -3
      json-c.pc.in

+ 5
- 5
Makefile.am 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 \


+ 1
- 1
configure.in View File

@@ -31,5 +31,5 @@ AM_PROG_LIBTOOL

AC_OUTPUT([
Makefile
json.pc
json-c.pc
])

json.pc.in → json-c.pc.in 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

Loading…
Cancel
Save