summaryrefslogtreecommitdiff
path: root/json-c/Makefile.am
blob: 044d7a76ee7eb342cae913a0d986e6f5f9bca820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
AM_CFLAGS = -Wall -D_GNU_SOURCE -D_REENTRANT

lib_LTLIBRARIES = libjson.la

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = json.pc

libjsonincludedir = $(includedir)/json
libjsoninclude_HEADERS = \
        json.h \
	bits.h \
	debug.h \
	linkhash.h \
	arraylist.h \
	json_util.h \
	json_object.h \
	json_tokener.h

libjson_la_LDFLAGS = -version-info 0:1:0

libjson_la_SOURCES = \
	arraylist.c \
	debug.c \
	json_object.c \
	json_tokener.c \
	json_util.c \
	linkhash.c \
	printbuf.c

check_PROGRAMS = test1 test2

test1_SOURCES = test1.c
test1_LDADD = $(lib_LTLIBRARIES)

test2_SOURCES = test2.c
test2_LDADD = $(lib_LTLIBRARIES)