blob: 0e8b303ee7bcaba59c7fabc89b242680a8dbd697 [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 \
16 json_inttypes.h \
Michael Clark4504df72007-03-13 08:26:20 +000017 json_object.h \
Michael Clarkc4dceae2010-10-06 16:39:20 +000018 json_object_private.h \
19 json_tokener.h \
20 json_util.h \
21 linkhash.h \
22 printbuf.h
Michael Clark4504df72007-03-13 08:26:20 +000023
Martin Storsjoa577ba32011-11-25 23:43:25 +020024libjson_la_LDFLAGS = -version-info 1:0:1 -no-undefined
Michael Clark4504df72007-03-13 08:26:20 +000025
26libjson_la_SOURCES = \
27 arraylist.c \
28 debug.c \
29 json_object.c \
30 json_tokener.c \
31 json_util.c \
32 linkhash.c \
33 printbuf.c
34
Eric Haszlakiewicz41e67d02011-05-03 20:42:25 +000035check_PROGRAMS = test1 test2 test4 test_parse_int64 test_null test_cast
Michael Clark4504df72007-03-13 08:26:20 +000036
37test1_SOURCES = test1.c
38test1_LDADD = $(lib_LTLIBRARIES)
39
40test2_SOURCES = test2.c
41test2_LDADD = $(lib_LTLIBRARIES)
Michael Clark80a60072009-01-05 06:55:02 +000042
Brent Miller126ad952009-08-20 06:50:22 +000043test4_SOURCES = test4.c
44test4_LDADD = $(lib_LTLIBRARIES)
Michael Clarkc4dceae2010-10-06 16:39:20 +000045
46test_parse_int64_SOURCES = test_parse_int64.c
47test_parse_int64_LDADD = $(lib_LTLIBRARIES)
48
Jehiah Czebotarac601b52011-01-14 17:23:06 +000049test_null_SOURCES = test_null.c
50test_null_LDADD = $(lib_LTLIBRARIES)
51
Eric Haszlakiewicz41e67d02011-05-03 20:42:25 +000052test_cast_SOURCES = test_cast.c
53test_cast_LDADD = $(lib_LTLIBRARIES)
54
55TESTS = test1.test test2.test test4.test parse_int64.test test_null.test test_cast.test
Michael Clarkc4dceae2010-10-06 16:39:20 +000056EXTRA_DIST += $(TESTS)
57testsubdir=testSubDir
58TESTS_ENVIRONMENT = top_builddir=$(top_builddir)
59
60distclean-local:
61 -rm -rf $(testsubdir)
62