1include Makefile.am.inc
2
3EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj
4SUBDIRS = . tests
5
6lib_LTLIBRARIES = libjson-c.la 
7
8pkgconfigdir = $(libdir)/pkgconfig
9pkgconfig_DATA = json-c.pc
10
11libjson_cincludedir = $(includedir)/json-c
12libjson_cinclude_HEADERS = \
13	arraylist.h \
14	bits.h \
15	debug.h \
16	json.h \
17	json_config.h \
18	json_c_version.h \
19	json_inttypes.h \
20	json_object.h \
21	json_object_iterator.h \
22	json_object_private.h \
23	json_tokener.h \
24	json_util.h \
25	linkhash.h \
26	printbuf.h \
27	random_seed.h
28
29#libjsonx_includedir = $(libdir)/json-c-@VERSION@
30#
31#libjsonx_include_HEADERS = \
32#	json_config.h
33
34libjson_c_la_LDFLAGS = -version-info 2:1:0 -no-undefined @JSON_BSYMBOLIC_LDFLAGS@
35
36libjson_c_la_SOURCES = \
37	arraylist.c \
38	debug.c \
39	json_c_version.c \
40	json_object.c \
41	json_object_iterator.c \
42	json_tokener.c \
43	json_util.c \
44	linkhash.c \
45	printbuf.c \
46	random_seed.c
47
48
49distclean-local:
50	-rm -rf $(testsubdir)
51	-rm -rf config.h.in~ Makefile.in aclocal.m4 autom4te.cache/ config.guess config.sub depcomp install-sh ltmain.sh missing
52	-rm -f INSTALL test-driver tests/Makefile.in compile
53
54maintainer-clean-local:
55	-rm -rf configure
56
57uninstall-local:
58	rm -rf "$(DESTDIR)@includedir@/json-c"
59	rm -f "$(DESTDIR)@includedir@/json"
60
61ANDROID_CFLAGS = -I$(top_srcdir) -DHAVE_CONFIG_H
62
63Android.mk: Makefile.am
64	androgenizer -:PROJECT json-c \
65		-:SHARED libjson-c \
66		-:TAGS eng debug \
67		-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
68		-:SOURCES $(libjson_c_la_SOURCES) $(nodist_libjson_c_la_SOURCES) \
69		-:CFLAGS $(DEFS) $(ANDROID_CFLAGS) $(libjson_c_la_CFLAGS) \
70		-:LDFLAGS $(libjson_c_la_LDFLAGS) $(libjson_c_la_LIBADD) \
71		-:HEADER_TARGET json-c \
72		-:HEADERS $(libjson_cinclude_HEADERS) \
73		-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
74	> $@
75