blob: e31da7730c9ca2bd480ceeca95137e7c8dc14bcc [file] [log] [blame]
Christopher Watford1363df02009-07-31 02:50:48 +00001AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
Michael Clark4504df72007-03-13 08:26:20 +00002
Michael Clark51658852009-08-19 08:31:29 +00003EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj
Michael Clark436aa982009-01-06 22:53:25 +00004
Michael Clark4504df72007-03-13 08:26:20 +00005lib_LTLIBRARIES = libjson.la
6
7pkgconfigdir = $(libdir)/pkgconfig
8pkgconfig_DATA = json.pc
9
10libjsonincludedir = $(includedir)/json
11libjsoninclude_HEADERS = \
Michael Clarkc4dceae2010-10-06 16:39:20 +000012 arraylist.h \
Michael Clark4504df72007-03-13 08:26:20 +000013 bits.h \
14 debug.h \
Michael Clarkc4dceae2010-10-06 16:39:20 +000015 json.h \
Eric Haszlakiewiczb21b1372012-02-15 20:44:54 -060016 json_config.h \
Michael Clarkc4dceae2010-10-06 16:39:20 +000017 json_inttypes.h \
Michael Clark4504df72007-03-13 08:26:20 +000018 json_object.h \
Michael Clarkc4dceae2010-10-06 16:39:20 +000019 json_object_private.h \
20 json_tokener.h \
21 json_util.h \
22 linkhash.h \
23 printbuf.h
Michael Clark4504df72007-03-13 08:26:20 +000024
Eric Haszlakiewiczb21b1372012-02-15 20:44:54 -060025#libjsonx_includedir = $(libdir)/json-c-@VERSION@
26#
27#libjsonx_include_HEADERS = \
28# json_config.h
29
Martin Storsjoa577ba32011-11-25 23:43:25 +020030libjson_la_LDFLAGS = -version-info 1:0:1 -no-undefined
Michael Clark4504df72007-03-13 08:26:20 +000031
32libjson_la_SOURCES = \
33 arraylist.c \
34 debug.c \
35 json_object.c \
36 json_tokener.c \
37 json_util.c \
38 linkhash.c \
39 printbuf.c
40
Eric Haszlakiewicz41e67d02011-05-03 20:42:25 +000041check_PROGRAMS = test1 test2 test4 test_parse_int64 test_null test_cast
Michael Clark4504df72007-03-13 08:26:20 +000042
43test1_SOURCES = test1.c
44test1_LDADD = $(lib_LTLIBRARIES)
45
46test2_SOURCES = test2.c
47test2_LDADD = $(lib_LTLIBRARIES)
Michael Clark80a60072009-01-05 06:55:02 +000048
Brent Miller126ad952009-08-20 06:50:22 +000049test4_SOURCES = test4.c
50test4_LDADD = $(lib_LTLIBRARIES)
Michael Clarkc4dceae2010-10-06 16:39:20 +000051
52test_parse_int64_SOURCES = test_parse_int64.c
53test_parse_int64_LDADD = $(lib_LTLIBRARIES)
54
Jehiah Czebotarac601b52011-01-14 17:23:06 +000055test_null_SOURCES = test_null.c
56test_null_LDADD = $(lib_LTLIBRARIES)
57
Eric Haszlakiewicz41e67d02011-05-03 20:42:25 +000058test_cast_SOURCES = test_cast.c
59test_cast_LDADD = $(lib_LTLIBRARIES)
60
61TESTS = test1.test test2.test test4.test parse_int64.test test_null.test test_cast.test
Michael Clarkc4dceae2010-10-06 16:39:20 +000062EXTRA_DIST += $(TESTS)
63testsubdir=testSubDir
64TESTS_ENVIRONMENT = top_builddir=$(top_builddir)
65
66distclean-local:
67 -rm -rf $(testsubdir)
68