Christopher Watford | 1363df0 | 2009-07-31 02:50:48 +0000 | [diff] [blame] | 1 | AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 2 | |
Michael Clark | 5165885 | 2009-08-19 08:31:29 +0000 | [diff] [blame] | 3 | EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj |
Michael Clark | 436aa98 | 2009-01-06 22:53:25 +0000 | [diff] [blame] | 4 | |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 5 | lib_LTLIBRARIES = libjson.la |
| 6 | |
| 7 | pkgconfigdir = $(libdir)/pkgconfig |
| 8 | pkgconfig_DATA = json.pc |
| 9 | |
| 10 | libjsonincludedir = $(includedir)/json |
| 11 | libjsoninclude_HEADERS = \ |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 12 | arraylist.h \ |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 13 | bits.h \ |
| 14 | debug.h \ |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 15 | json.h \ |
Eric Haszlakiewicz | b21b137 | 2012-02-15 20:44:54 -0600 | [diff] [blame^] | 16 | json_config.h \ |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 17 | json_inttypes.h \ |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 18 | json_object.h \ |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 19 | json_object_private.h \ |
| 20 | json_tokener.h \ |
| 21 | json_util.h \ |
| 22 | linkhash.h \ |
| 23 | printbuf.h |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 24 | |
Eric Haszlakiewicz | b21b137 | 2012-02-15 20:44:54 -0600 | [diff] [blame^] | 25 | #libjsonx_includedir = $(libdir)/json-c-@VERSION@ |
| 26 | # |
| 27 | #libjsonx_include_HEADERS = \ |
| 28 | # json_config.h |
| 29 | |
Martin Storsjo | a577ba3 | 2011-11-25 23:43:25 +0200 | [diff] [blame] | 30 | libjson_la_LDFLAGS = -version-info 1:0:1 -no-undefined |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 31 | |
| 32 | libjson_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 Haszlakiewicz | 41e67d0 | 2011-05-03 20:42:25 +0000 | [diff] [blame] | 41 | check_PROGRAMS = test1 test2 test4 test_parse_int64 test_null test_cast |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 42 | |
| 43 | test1_SOURCES = test1.c |
| 44 | test1_LDADD = $(lib_LTLIBRARIES) |
| 45 | |
| 46 | test2_SOURCES = test2.c |
| 47 | test2_LDADD = $(lib_LTLIBRARIES) |
Michael Clark | 80a6007 | 2009-01-05 06:55:02 +0000 | [diff] [blame] | 48 | |
Brent Miller | 126ad95 | 2009-08-20 06:50:22 +0000 | [diff] [blame] | 49 | test4_SOURCES = test4.c |
| 50 | test4_LDADD = $(lib_LTLIBRARIES) |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 51 | |
| 52 | test_parse_int64_SOURCES = test_parse_int64.c |
| 53 | test_parse_int64_LDADD = $(lib_LTLIBRARIES) |
| 54 | |
Jehiah Czebotar | ac601b5 | 2011-01-14 17:23:06 +0000 | [diff] [blame] | 55 | test_null_SOURCES = test_null.c |
| 56 | test_null_LDADD = $(lib_LTLIBRARIES) |
| 57 | |
Eric Haszlakiewicz | 41e67d0 | 2011-05-03 20:42:25 +0000 | [diff] [blame] | 58 | test_cast_SOURCES = test_cast.c |
| 59 | test_cast_LDADD = $(lib_LTLIBRARIES) |
| 60 | |
| 61 | TESTS = test1.test test2.test test4.test parse_int64.test test_null.test test_cast.test |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 62 | EXTRA_DIST += $(TESTS) |
| 63 | testsubdir=testSubDir |
| 64 | TESTS_ENVIRONMENT = top_builddir=$(top_builddir) |
| 65 | |
| 66 | distclean-local: |
| 67 | -rm -rf $(testsubdir) |
| 68 | |