Eric Haszlakiewicz | 1e89ba6 | 2012-04-22 10:27:50 -0500 | [diff] [blame^] | 1 | include Makefile.am.inc |
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 |
Eric Haszlakiewicz | 1e89ba6 | 2012-04-22 10:27:50 -0500 | [diff] [blame^] | 4 | SUBDIRS = . tests |
Michael Clark | 436aa98 | 2009-01-06 22:53:25 +0000 | [diff] [blame] | 5 | |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 6 | lib_LTLIBRARIES = libjson.la |
| 7 | |
| 8 | pkgconfigdir = $(libdir)/pkgconfig |
| 9 | pkgconfig_DATA = json.pc |
| 10 | |
| 11 | libjsonincludedir = $(includedir)/json |
| 12 | libjsoninclude_HEADERS = \ |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 13 | arraylist.h \ |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 14 | bits.h \ |
| 15 | debug.h \ |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 16 | json.h \ |
Eric Haszlakiewicz | b21b137 | 2012-02-15 20:44:54 -0600 | [diff] [blame] | 17 | json_config.h \ |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 18 | json_inttypes.h \ |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 19 | json_object.h \ |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 20 | json_object_private.h \ |
| 21 | json_tokener.h \ |
| 22 | json_util.h \ |
| 23 | linkhash.h \ |
| 24 | printbuf.h |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 25 | |
Eric Haszlakiewicz | b21b137 | 2012-02-15 20:44:54 -0600 | [diff] [blame] | 26 | #libjsonx_includedir = $(libdir)/json-c-@VERSION@ |
| 27 | # |
| 28 | #libjsonx_include_HEADERS = \ |
| 29 | # json_config.h |
| 30 | |
Martin Storsjo | a577ba3 | 2011-11-25 23:43:25 +0200 | [diff] [blame] | 31 | libjson_la_LDFLAGS = -version-info 1:0:1 -no-undefined |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 32 | |
| 33 | libjson_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 Haszlakiewicz | 1e89ba6 | 2012-04-22 10:27:50 -0500 | [diff] [blame^] | 42 | check_PROGRAMS = test2 test4 test_parse_int64 test_null test_cast test_parse |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 43 | |
| 44 | test2_SOURCES = test2.c |
| 45 | test2_LDADD = $(lib_LTLIBRARIES) |
Michael Clark | 80a6007 | 2009-01-05 06:55:02 +0000 | [diff] [blame] | 46 | |
Brent Miller | 126ad95 | 2009-08-20 06:50:22 +0000 | [diff] [blame] | 47 | test4_SOURCES = test4.c |
| 48 | test4_LDADD = $(lib_LTLIBRARIES) |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 49 | |
| 50 | test_parse_int64_SOURCES = test_parse_int64.c |
| 51 | test_parse_int64_LDADD = $(lib_LTLIBRARIES) |
| 52 | |
Jehiah Czebotar | ac601b5 | 2011-01-14 17:23:06 +0000 | [diff] [blame] | 53 | test_null_SOURCES = test_null.c |
| 54 | test_null_LDADD = $(lib_LTLIBRARIES) |
| 55 | |
Eric Haszlakiewicz | 41e67d0 | 2011-05-03 20:42:25 +0000 | [diff] [blame] | 56 | test_cast_SOURCES = test_cast.c |
| 57 | test_cast_LDADD = $(lib_LTLIBRARIES) |
| 58 | |
Eric Haszlakiewicz | c5c623a | 2012-03-31 22:51:39 -0500 | [diff] [blame] | 59 | test_parse_SOURCES = test_parse.c |
| 60 | test_parse_LDADD = $(lib_LTLIBRARIES) |
| 61 | |
Eric Haszlakiewicz | 1e89ba6 | 2012-04-22 10:27:50 -0500 | [diff] [blame^] | 62 | TESTS = test2.test test4.test parse_int64.test test_null.test test_cast.test test_parse.test |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 63 | EXTRA_DIST += $(TESTS) |
| 64 | testsubdir=testSubDir |
| 65 | TESTS_ENVIRONMENT = top_builddir=$(top_builddir) |
| 66 | |
| 67 | distclean-local: |
| 68 | -rm -rf $(testsubdir) |
Eric Haszlakiewicz | fbd207b | 2012-03-31 23:17:00 -0500 | [diff] [blame] | 69 | -rm -rf config.h.in~ Makefile.in aclocal.m4 autom4te.cache/ config.guess config.sub configure depcomp install-sh ltmain.sh missing |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 70 | |