blob: cec14fd05cc3ff50c69d3d253f01c81427837925 [file] [log] [blame]
Eric Haszlakiewicz1e89ba62012-04-22 10:27:50 -05001include Makefile.am.inc
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
Eric Haszlakiewicz1e89ba62012-04-22 10:27:50 -05004SUBDIRS = . tests
Michael Clark436aa982009-01-06 22:53:25 +00005
Michael Clark4504df72007-03-13 08:26:20 +00006lib_LTLIBRARIES = libjson.la
7
8pkgconfigdir = $(libdir)/pkgconfig
9pkgconfig_DATA = json.pc
10
11libjsonincludedir = $(includedir)/json
12libjsoninclude_HEADERS = \
Michael Clarkc4dceae2010-10-06 16:39:20 +000013 arraylist.h \
Michael Clark4504df72007-03-13 08:26:20 +000014 bits.h \
15 debug.h \
Michael Clarkc4dceae2010-10-06 16:39:20 +000016 json.h \
Eric Haszlakiewiczb21b1372012-02-15 20:44:54 -060017 json_config.h \
Michael Clarkc4dceae2010-10-06 16:39:20 +000018 json_inttypes.h \
Michael Clark4504df72007-03-13 08:26:20 +000019 json_object.h \
Michael Clarkc4dceae2010-10-06 16:39:20 +000020 json_object_private.h \
21 json_tokener.h \
22 json_util.h \
23 linkhash.h \
24 printbuf.h
Michael Clark4504df72007-03-13 08:26:20 +000025
Eric Haszlakiewiczb21b1372012-02-15 20:44:54 -060026#libjsonx_includedir = $(libdir)/json-c-@VERSION@
27#
28#libjsonx_include_HEADERS = \
29# json_config.h
30
Martin Storsjoa577ba32011-11-25 23:43:25 +020031libjson_la_LDFLAGS = -version-info 1:0:1 -no-undefined
Michael Clark4504df72007-03-13 08:26:20 +000032
33libjson_la_SOURCES = \
34 arraylist.c \
35 debug.c \
36 json_object.c \
37 json_tokener.c \
38 json_util.c \
39 linkhash.c \
40 printbuf.c
41
Eric Haszlakiewicz1e89ba62012-04-22 10:27:50 -050042check_PROGRAMS = test2 test4 test_parse_int64 test_null test_cast test_parse
Michael Clark4504df72007-03-13 08:26:20 +000043
44test2_SOURCES = test2.c
45test2_LDADD = $(lib_LTLIBRARIES)
Michael Clark80a60072009-01-05 06:55:02 +000046
Brent Miller126ad952009-08-20 06:50:22 +000047test4_SOURCES = test4.c
48test4_LDADD = $(lib_LTLIBRARIES)
Michael Clarkc4dceae2010-10-06 16:39:20 +000049
50test_parse_int64_SOURCES = test_parse_int64.c
51test_parse_int64_LDADD = $(lib_LTLIBRARIES)
52
Jehiah Czebotarac601b52011-01-14 17:23:06 +000053test_null_SOURCES = test_null.c
54test_null_LDADD = $(lib_LTLIBRARIES)
55
Eric Haszlakiewicz41e67d02011-05-03 20:42:25 +000056test_cast_SOURCES = test_cast.c
57test_cast_LDADD = $(lib_LTLIBRARIES)
58
Eric Haszlakiewiczc5c623a2012-03-31 22:51:39 -050059test_parse_SOURCES = test_parse.c
60test_parse_LDADD = $(lib_LTLIBRARIES)
61
Eric Haszlakiewicz1e89ba62012-04-22 10:27:50 -050062TESTS = test2.test test4.test parse_int64.test test_null.test test_cast.test test_parse.test
Michael Clarkc4dceae2010-10-06 16:39:20 +000063EXTRA_DIST += $(TESTS)
64testsubdir=testSubDir
65TESTS_ENVIRONMENT = top_builddir=$(top_builddir)
66
67distclean-local:
68 -rm -rf $(testsubdir)
Eric Haszlakiewiczfbd207b2012-03-31 23:17:00 -050069 -rm -rf config.h.in~ Makefile.in aclocal.m4 autom4te.cache/ config.guess config.sub configure depcomp install-sh ltmain.sh missing
Michael Clarkc4dceae2010-10-06 16:39:20 +000070