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 \ |
| 16 | json_inttypes.h \ |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 17 | json_object.h \ |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 18 | json_object_private.h \ |
| 19 | json_tokener.h \ |
| 20 | json_util.h \ |
| 21 | linkhash.h \ |
| 22 | printbuf.h |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 23 | |
Martin Storsjo | a577ba3 | 2011-11-25 23:43:25 +0200 | [diff] [blame^] | 24 | libjson_la_LDFLAGS = -version-info 1:0:1 -no-undefined |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 25 | |
| 26 | libjson_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 Haszlakiewicz | 41e67d0 | 2011-05-03 20:42:25 +0000 | [diff] [blame] | 35 | check_PROGRAMS = test1 test2 test4 test_parse_int64 test_null test_cast |
Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 36 | |
| 37 | test1_SOURCES = test1.c |
| 38 | test1_LDADD = $(lib_LTLIBRARIES) |
| 39 | |
| 40 | test2_SOURCES = test2.c |
| 41 | test2_LDADD = $(lib_LTLIBRARIES) |
Michael Clark | 80a6007 | 2009-01-05 06:55:02 +0000 | [diff] [blame] | 42 | |
Brent Miller | 126ad95 | 2009-08-20 06:50:22 +0000 | [diff] [blame] | 43 | test4_SOURCES = test4.c |
| 44 | test4_LDADD = $(lib_LTLIBRARIES) |
Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame] | 45 | |
| 46 | test_parse_int64_SOURCES = test_parse_int64.c |
| 47 | test_parse_int64_LDADD = $(lib_LTLIBRARIES) |
| 48 | |
Jehiah Czebotar | ac601b5 | 2011-01-14 17:23:06 +0000 | [diff] [blame] | 49 | test_null_SOURCES = test_null.c |
| 50 | test_null_LDADD = $(lib_LTLIBRARIES) |
| 51 | |
Eric Haszlakiewicz | 41e67d0 | 2011-05-03 20:42:25 +0000 | [diff] [blame] | 52 | test_cast_SOURCES = test_cast.c |
| 53 | test_cast_LDADD = $(lib_LTLIBRARIES) |
| 54 | |
| 55 | 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] | 56 | EXTRA_DIST += $(TESTS) |
| 57 | testsubdir=testSubDir |
| 58 | TESTS_ENVIRONMENT = top_builddir=$(top_builddir) |
| 59 | |
| 60 | distclean-local: |
| 61 | -rm -rf $(testsubdir) |
| 62 | |