blob: 0961218de914615e0fe853f606e74898a886af6c [file] [log] [blame]
Michael Clarka850f8e2007-03-13 08:26:26 +00001AM_CFLAGS = -Wall -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
Michael Clark4504df72007-03-13 08:26:20 +00002
Michael Clark4504df72007-03-13 08:26:20 +00003lib_LTLIBRARIES = libjson.la
4
5pkgconfigdir = $(libdir)/pkgconfig
6pkgconfig_DATA = json.pc
7
8libjsonincludedir = $(includedir)/json
9libjsoninclude_HEADERS = \
10 json.h \
11 bits.h \
12 debug.h \
13 linkhash.h \
14 arraylist.h \
Michael Clark80a60072009-01-05 06:55:02 +000015 printbuf.h \
Michael Clark4504df72007-03-13 08:26:20 +000016 json_util.h \
17 json_object.h \
Michael Clark80a60072009-01-05 06:55:02 +000018 json_object_private.h \
Michael Clark4504df72007-03-13 08:26:20 +000019 json_tokener.h
20
21libjson_la_LDFLAGS = -version-info 0:1:0
22
23libjson_la_SOURCES = \
24 arraylist.c \
25 debug.c \
26 json_object.c \
27 json_tokener.c \
28 json_util.c \
29 linkhash.c \
30 printbuf.c
31
Michael Clark80a60072009-01-05 06:55:02 +000032check_PROGRAMS = test1 test2 test3
Michael Clark4504df72007-03-13 08:26:20 +000033
34test1_SOURCES = test1.c
35test1_LDADD = $(lib_LTLIBRARIES)
36
37test2_SOURCES = test2.c
38test2_LDADD = $(lib_LTLIBRARIES)
Michael Clark80a60072009-01-05 06:55:02 +000039
40test3_SOURCES = test3.c
41test3_LDADD = $(lib_LTLIBRARIES)