Install json_object_private.h file
[platform/upstream/json-c.git] / Makefile.am
1 #ACLOCAL_AMFLAGS = -I autoconf-archive/m4
2
3 EXTRA_DIST = README.md README.html
4 EXTRA_DIST += config.h.win32
5 EXTRA_DIST += Doxyfile
6 EXTRA_DIST += issues_closed_for_0.13.md
7
8 dist-hook:
9         test -d "$(distdir)/doc" || mkdir "$(distdir)/doc"
10         chmod -R u+w "$(distdir)/doc"
11         cd "$(distdir)" && doxygen
12
13 SUBDIRS = . tests
14
15 lib_LTLIBRARIES = libjson-c.la
16
17 pkgconfigdir = $(libdir)/pkgconfig
18 pkgconfig_DATA = json-c.pc
19
20 libjson_cincludedir = $(includedir)/json-c
21 libjson_cinclude_HEADERS = \
22         arraylist.h \
23         bits.h \
24         debug.h \
25         json.h \
26         json_c_version.h \
27         json_config.h \
28         json_inttypes.h \
29         json_object.h \
30         json_object_iterator.h \
31         json_pointer.h \
32         json_tokener.h \
33         json_util.h \
34         json_visit.h \
35         linkhash.h \
36         printbuf.h \
37         json_object_private.h
38
39 noinst_HEADERS=\
40         math_compat.h \
41         strdup_compat.h \
42         snprintf_compat.h \
43         vasprintf_compat.h \
44         random_seed.h \
45         strerror_override.h
46
47 libjson_c_la_LDFLAGS = -version-info 4:0:0 -no-undefined @JSON_BSYMBOLIC_LDFLAGS@
48
49 libjson_c_la_SOURCES = \
50         arraylist.c \
51         debug.c \
52         json_c_version.c \
53         json_object.c \
54         json_object_iterator.c \
55         json_pointer.c \
56         json_tokener.c \
57         json_util.c \
58         json_visit.c \
59         linkhash.c \
60         printbuf.c \
61         random_seed.c \
62         strerror_override.c \
63         strerror_override_private.h
64
65
66 DISTCLEANFILES=
67 DISTCLEANFILES+= \
68         config.h \
69         json-c-uninstalled.pc \
70         json-c.pc \
71         json_config.h
72
73 distclean-local:
74         -rm -rf $(testsubdir)
75
76 JSON_CLEANFILES=
77 JSON_CLEANFILES+= \
78         Makefile.in \
79         aclocal.m4 \
80         autom4te.cache/ \
81         compile \
82         config.guess \
83         config.h.in \
84         config.sub \
85         configure \
86         depcomp \
87         install-sh \
88         ltmain.sh \
89         missing \
90         test-driver \
91         tests/Makefile.in
92 JSON_CLEANFILES+= \
93         libtool \
94         stamp-h1 \
95         stamp-h2
96
97 # There's no built-in way to remove these after all the other
98 # maintainer-clean steps happen, so do it explicitly here.
99 really-clean:
100         $(MAKE) maintainer-clean
101         rm -rf ${JSON_CLEANFILES}
102
103 uninstall-local:
104         rm -rf "$(DESTDIR)@includedir@/json-c"
105         rm -f "$(DESTDIR)@includedir@/json"
106
107 ANDROID_CFLAGS = -I$(top_srcdir) -DHAVE_CONFIG_H
108
109 Android.mk: Makefile.am
110         androgenizer -:PROJECT json-c \
111                 -:SHARED libjson-c \
112                 -:TAGS eng debug \
113                 -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
114                 -:SOURCES $(libjson_c_la_SOURCES) $(nodist_libjson_c_la_SOURCES) \
115                 -:CFLAGS $(DEFS) $(ANDROID_CFLAGS) $(libjson_c_la_CFLAGS) \
116                 -:LDFLAGS $(libjson_c_la_LDFLAGS) $(libjson_c_la_LIBADD) \
117                 -:HEADER_TARGET json-c \
118                 -:HEADERS $(libjson_cinclude_HEADERS) \
119                 -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
120         > $@