win32: hide _glib_get_dll_directory again
[platform/upstream/glib.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
3
4 # http://people.gnome.org/~walters/docs/build-api.txt
5 .buildapi-allow-builddir:
6
7 ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
8
9 SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs
10 DIST_SUBDIRS = $(SUBDIRS) build
11 if BUILD_MODULAR_TESTS
12 SUBDIRS += tests 
13 else
14 DIST_SUBDIRS += tests
15 endif
16
17 bin_SCRIPTS = glib-gettextize
18
19 AM_CPPFLAGS =                                   \
20         -DG_LOG_DOMAIN=g_log_domain_glib        \
21         @GLIB_DEBUG_FLAGS@                      \
22         -DG_DISABLE_DEPRECATED                  \
23         -DGLIB_COMPILATION
24
25 EXTRA_DIST +=                   \
26         ChangeLog.pre-2-20      \
27         ChangeLog.pre-2-18      \
28         ChangeLog.pre-2-16      \
29         ChangeLog.pre-2-14      \
30         ChangeLog.pre-2-12      \
31         ChangeLog.pre-2-10      \
32         ChangeLog.pre-2-8       \
33         ChangeLog.pre-2-6       \
34         ChangeLog.pre-2-4       \
35         ChangeLog.pre-2-2       \
36         ChangeLog.pre-2-0       \
37         ChangeLog.pre-1-2       \
38         glib-zip.in             \
39         NEWS.pre-1-3            \
40         acglib.m4               \
41         sanity_check            \
42         README.commits          \
43         README.in               \
44         INSTALL.in              \
45         README.win32            \
46         HACKING                 \
47         autogen.sh              \
48         Makefile.decl           \
49         makefile.msc            \
50         msvc_recommended_pragmas.h \
51         config.h.win32.in       \
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
63
64 # These may be in the builddir too
65 BUILT_EXTRA_DIST =              \
66         README                  \
67         INSTALL                 \
68         ChangeLog               \
69         config.h.win32          \
70         gtk-doc.make
71
72 CONFIGURE_DEPENDENCIES = acglib.m4
73
74 ChangeLog:
75         $(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
76           (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GLIB_2_20_0^^.. --stat) | fmt --split-only > $@.tmp \
77           && mv -f $@.tmp $@ \
78           || ($(RM) $@.tmp; \
79               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
80               (test -f $@ || echo git-log is required to generate this file >> $@)); \
81         else \
82           test -f $@ || \
83           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
84           echo A git checkout and git-log is required to generate this file >> $@); \
85         fi
86
87 pkgconfigdir = $(libdir)/pkgconfig
88 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
89
90 if OS_UNIX
91 pkgconfig_DATA += gio-unix-2.0.pc
92 endif
93
94 if OS_WIN32
95 pkgconfig_DATA += gio-windows-2.0.pc
96 endif
97
98 $(pkgconfig_DATA): config.status
99
100 # build documentation when doing distcheck
101 DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man --disable-maintainer-mode
102
103 DISTCLEANFILES = config.lt
104
105 distclean-local: lcov-clean
106         if test $(srcdir) = .; then :; else \
107             rm -f $(BUILT_EXTRA_DIST); \
108         fi
109
110 .PHONY: files release sanity snapshot ChangeLog
111
112 files:
113         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
114           echo $$p; \
115         done
116
117 release:
118         rm -rf .deps */.deps
119         cd docs && make glib.html
120         $(MAKE) distcheck
121
122 sanity:
123         ./sanity_check $(VERSION)
124
125 snapshot:
126         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
127
128 snapcheck:
129         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
130
131 dist-hook: $(BUILT_EXTRA_DIST)
132         files='$(BUILT_EXTRA_DIST)'; \
133         for f in $$files; do \
134           if test -f $$f; then d=.; else d=$(srcdir); fi; \
135           rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done