blob: 26ced27080d291984cdc671cee334a870b71e765 [file] [log] [blame]
Eric Haszlakiewicz1e89ba62012-04-22 10:27:50 -05001include Makefile.am.inc
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
Eric Haszlakiewicz1e89ba62012-04-22 10:27:50 -05004SUBDIRS = . tests
Michael Clark436aa982009-01-06 22:53:25 +00005
Eric Haszlakiewicz075b7832012-07-29 17:48:22 -05006lib_LTLIBRARIES = libjson-c.la
Michael Clark4504df72007-03-13 08:26:20 +00007
8pkgconfigdir = $(libdir)/pkgconfig
Keith Derrick30dd3672012-03-30 12:28:32 -07009pkgconfig_DATA = json-c.pc
Michael Clark4504df72007-03-13 08:26:20 +000010
Eric Haszlakiewicz075b7832012-07-29 17:48:22 -050011libjson_cincludedir = $(includedir)/json-c
12libjson_cinclude_HEADERS = \
Michael Clarkc4dceae2010-10-06 16:39:20 +000013 arraylist.h \
Michael Clark4504df72007-03-13 08:26:20 +000014 bits.h \
15 debug.h \
Michael Clarkc4dceae2010-10-06 16:39:20 +000016 json.h \
Eric Haszlakiewiczb21b1372012-02-15 20:44:54 -060017 json_config.h \
Eric Haszlakiewicz1461b492012-12-23 10:57:44 -060018 json_c_version.h \
Michael Clarkc4dceae2010-10-06 16:39:20 +000019 json_inttypes.h \
Michael Clark4504df72007-03-13 08:26:20 +000020 json_object.h \
Eric Haszlakiewicz4154c552012-07-08 20:38:53 -050021 json_object_iterator.h \
Michael Clarkc4dceae2010-10-06 16:39:20 +000022 json_object_private.h \
23 json_tokener.h \
24 json_util.h \
25 linkhash.h \
Michael Clark64e36902014-04-09 13:48:21 +080026 printbuf.h \
27 random_seed.h
Michael Clark4504df72007-03-13 08:26:20 +000028
Eric Haszlakiewiczb21b1372012-02-15 20:44:54 -060029#libjsonx_includedir = $(libdir)/json-c-@VERSION@
30#
31#libjsonx_include_HEADERS = \
32# json_config.h
33
Emmanuele Bassi311686f2013-09-17 13:08:14 +010034libjson_c_la_LDFLAGS = -version-info 2:0:0 -no-undefined @JSON_BSYMBOLIC_LDFLAGS@
Eric Haszlakiewicz075b7832012-07-29 17:48:22 -050035
Keith Derrick30dd3672012-03-30 12:28:32 -070036libjson_c_la_SOURCES = \
Michael Clark4504df72007-03-13 08:26:20 +000037 arraylist.c \
38 debug.c \
Eric Haszlakiewicz1461b492012-12-23 10:57:44 -060039 json_c_version.c \
Michael Clark4504df72007-03-13 08:26:20 +000040 json_object.c \
Eric Haszlakiewicz23461c72012-11-29 13:23:06 -060041 json_object_iterator.c \
Michael Clark4504df72007-03-13 08:26:20 +000042 json_tokener.c \
43 json_util.c \
44 linkhash.c \
Michael Clark64e36902014-04-09 13:48:21 +080045 printbuf.c \
46 random_seed.c
Michael Clark4504df72007-03-13 08:26:20 +000047
Michael Clarkc4dceae2010-10-06 16:39:20 +000048
49distclean-local:
50 -rm -rf $(testsubdir)
Eric Haszlakiewicz7a4506d2012-12-09 15:46:35 -060051 -rm -rf config.h.in~ Makefile.in aclocal.m4 autom4te.cache/ config.guess config.sub depcomp install-sh ltmain.sh missing
Eric Haszlakiewicz295bea22014-02-11 23:03:46 -050052 -rm -f INSTALL test-driver tests/Makefile.in compile
Eric Haszlakiewicz7a4506d2012-12-09 15:46:35 -060053
54maintainer-clean-local:
55 -rm -rf configure
Michael Clarkc4dceae2010-10-06 16:39:20 +000056
Eric Haszlakiewicz943b7a42012-07-29 18:05:08 -050057uninstall-local:
Alexander Klauer024d86c2012-12-19 13:16:38 +010058 rm -rf "$(DESTDIR)@includedir@/json-c"
Eric Haszlakiewiczc8ee9192014-02-11 22:49:59 -050059 rm -f "$(DESTDIR)@includedir@/json"
Eric Haszlakiewicz943b7a42012-07-29 18:05:08 -050060
Arun Raghavana1221eb2012-01-20 13:00:45 +053061ANDROID_CFLAGS = -I$(top_srcdir) -DHAVE_CONFIG_H
62
63Android.mk: Makefile.am
64 androgenizer -:PROJECT json-c \
Eric Haszlakiewicz2f2180b2012-07-29 18:29:38 -050065 -:SHARED libjson-c \
Arun Raghavana1221eb2012-01-20 13:00:45 +053066 -:TAGS eng debug \
67 -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
Eric Haszlakiewicz2f2180b2012-07-29 18:29:38 -050068 -: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) \
Arun Raghavana1221eb2012-01-20 13:00:45 +053073 -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
74 > $@