Use macros for refcount types API
[glib.git] / Makefile.am
blob284d39590f15f00347e1c88c5513a36abff689a3
1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/glib.mk
4 # http://people.gnome.org/~walters/docs/build-api.txt
5 .buildapi-allow-builddir:
7 ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
9 SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs tests subprojects
10 DIST_SUBDIRS = $(SUBDIRS) build
12 bin_SCRIPTS = glib-gettextize
14 if OS_LINUX
15 TESTS += check-abis.sh
16 endif
18 AM_CPPFLAGS =                                   \
19         -DG_LOG_DOMAIN=g_log_domain_glib        \
20         @GLIB_DEBUG_FLAGS@                      \
21         -DG_DISABLE_DEPRECATED                  \
22         -DGLIB_COMPILATION
24 EXTRA_DIST +=                   \
25         ChangeLog.pre-2-20      \
26         ChangeLog.pre-2-18      \
27         ChangeLog.pre-2-16      \
28         ChangeLog.pre-2-14      \
29         ChangeLog.pre-2-12      \
30         ChangeLog.pre-2-10      \
31         ChangeLog.pre-2-8       \
32         ChangeLog.pre-2-6       \
33         ChangeLog.pre-2-4       \
34         ChangeLog.pre-2-2       \
35         ChangeLog.pre-2-0       \
36         ChangeLog.pre-1-2       \
37         NEWS.pre-1-3            \
38         acglib.m4               \
39         sanity_check            \
40         README.commits          \
41         README.in               \
42         README.rationale        \
43         INSTALL.in              \
44         README.win32            \
45         HACKING                 \
46         autogen.sh              \
47         glib.mk                 \
48         glib-tap.mk             \
49         tap-driver.sh           \
50         tap-test                \
51         msvc_recommended_pragmas.h \
52         po/po2tbl.sed.in        \
53         glib-2.0.pc.in          \
54         gobject-2.0.pc.in       \
55         gmodule-2.0.pc.in       \
56         gmodule-export-2.0.pc.in        \
57         gmodule-no-export-2.0.pc.in     \
58         gthread-2.0.pc.in       \
59         gio-2.0.pc.in           \
60         gio-unix-2.0.pc.in      \
61         gio-windows-2.0.pc.in   \
62         check-abis.sh           \
63         gtk-doc.make            \
64         $(NULL)
66 meson_build_files = \
67         meson_options.txt \
68         meson.build \
69         docs/reference/gio/meson.build \
70         docs/reference/gio/xml/gtkdocentities.ent.in \
71         docs/reference/gio/xml/meson.build \
72         docs/reference/glib/meson.build \
73         docs/reference/glib/xml/gtkdocentities.ent.in \
74         docs/reference/glib/xml/meson.build \
75         docs/reference/gobject/meson.build \
76         docs/reference/gobject/xml/gtkdocentities.ent.in \
77         docs/reference/gobject/xml/meson.build \
78         gio/data-to-c.py \
79         gio/fam/gfamfilemonitor.map \
80         gio/fam/meson.build \
81         gio/gdbus-2.0/codegen/meson.build \
82         gio/gio-querymodules-wrapper.py \
83         gio/inotify/meson.build \
84         gio/kqueue/meson.build \
85         gio/meson.build \
86         gio/tests/meson.build \
87         gio/tests/gengiotypefuncs.py \
88         gio/tests/modules/meson.build \
89         gio/tests/gdbus-object-manager-example/meson.build \
90         gio/tests/de/LC_MESSAGES/meson.build \
91         gio/win32/meson.build \
92         gio/xdgmime/meson.build \
93         glib/glibconfig.h.in \
94         glib/gnulib/meson.build \
95         glib/libcharset/meson.build \
96         glib/meson.build \
97         glib/pcre/meson.build \
98         glib/tests/meson.build \
99         gmodule/meson.build \
100         gobject/meson.build \
101         gobject/tests/meson.build \
102         gthread/meson.build \
103         po/meson.build \
104         tests/refcount/meson.build \
105         tests/meson.build \
106         tests/gobject/meson.build \
107         $()
109 EXTRA_DIST += $(meson_build_files)
111 # These may be in the builddir too
112 BUILT_EXTRA_DIST +=             \
113         README                  \
114         INSTALL                 \
115         ChangeLog               \
116         $(NULL)
118 CONFIGURE_DEPENDENCIES = acglib.m4
120 ChangeLog:
121         $(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
122           (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GLIB_2_20_0^^.. --stat) | fmt --split-only > $@.tmp \
123           && mv -f $@.tmp $@ \
124           || ($(RM) $@.tmp; \
125               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
126               (test -f $@ || echo git-log is required to generate this file >> $@)); \
127         else \
128           test -f $@ || \
129           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
130           echo A git checkout and git-log is required to generate this file >> $@); \
131         fi
133 pkgconfigdir = $(libdir)/pkgconfig
134 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gio-2.0.pc
136 if OS_UNIX
137 pkgconfig_DATA += gio-unix-2.0.pc
138 endif
140 if OS_WIN32
141 pkgconfig_DATA += gio-windows-2.0.pc
142 endif
144 $(pkgconfig_DATA): config.status
146 # Install Valgrind suppression file
147 valgrinddir = $(datadir)/glib-2.0/valgrind
148 dist_valgrind_DATA = glib.supp
150 # build documentation when doing distcheck
151 AM_DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man --disable-maintainer-mode
153 DISTCLEANFILES += config.lt
155 distclean-local: lcov-clean
156         if test $(srcdir) = .; then :; else \
157             rm -f $(BUILT_EXTRA_DIST); \
158         fi
160 .PHONY: files release sanity snapshot ChangeLog
162 files:
163         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
164           echo $$p; \
165         done
167 release:
168         rm -rf .deps */.deps
169         cd docs && make glib.html
170         $(MAKE) distcheck
172 sanity:
173         ./sanity_check $(VERSION)
175 snapshot:
176         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
178 snapcheck:
179         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
181 dist-hook: $(BUILT_EXTRA_DIST)
182         files='$(BUILT_EXTRA_DIST)'; \
183         for f in $$files; do \
184           if test -f $$f; then d=.; else d=$(srcdir); fi; \
185           rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done