1 ## Process this file with automake to produce Makefile.in
5 SUBDIRS = . gobject gmodule gthread docs tests build
7 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
8 -DG_DISABLE_COMPAT_H -DGLIB_COMPILATION
21 glibconfig.h.win32.in \
31 # These may be in the builddir too
40 lib_LTLIBRARIES = libglib-1.3.la
42 libglib_1_3_la_SOURCES = \
86 EXTRA_libglib_1_3_la_SOURCES = \
93 glibincludedir=$(includedir)/glib-2.0
94 glibinclude_HEADERS = \
140 configexecincludedir = $(libdir)/glib-2.0/include
141 #configexecinclude_DATA = glibconfig.h
143 install-exec-local: glibconfig.h
144 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
145 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
146 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
147 else $(INSTALL_DATA) glibconfig.h $$file; fi
149 CONFIGURE_DEPENDENCIES = acglib.m4
151 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
152 glibconfig.h: stamp-gc-h
153 @if test -f glibconfig.h; then :; \
154 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
155 stamp-gc-h: config.status
156 CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
157 echo timestamp > stamp-gc-h
159 libglib_1_3_la_LIBADD = @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
160 libglib_1_3_la_DEPENDENCIES = @GIO@ @GSPAWN@ @PLATFORMDEP@
164 no_undefined = -no-undefined
167 # This requires a very new libtool
168 export_symbols = -export-symbols glib.def
171 libglib_1_3_la_LDFLAGS = \
172 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
173 -export-dynamic $(no_undefined) $(export_symbols)
176 bin_PROGRAMS = gspawn-win32-helper
177 gspawn_win32_helper_LDADD = libglib-1.3.la
182 noinst_PROGRAMS = testglib testgdate testgdateparser $(timeloop)
183 testglib_LDADD = libglib-1.3.la
184 testgdate_LDADD = libglib-1.3.la
185 testgdateparser_LDADD = libglib-1.3.la
187 timeloop_LDADD = libglib-1.3.la
189 m4datadir = $(datadir)/aclocal
190 m4data_DATA = glib-2.0.m4
192 pkgconfigdir = $(libdir)/pkgconfig
193 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
195 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
196 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
198 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
199 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
201 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
202 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
204 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
205 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
207 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
208 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
210 bin_SCRIPTS=glib-config-2.0
211 BUILT_SOURCES=glib-config-2.0
212 glib-config-2.0: glib-config-2.0.in
214 .PHONY: files release sanity snapshot
217 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
223 cd docs && make glib.html
227 ./sanity_check $(VERSION)
230 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
233 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
235 dist-hook: $(BUILT_EXTRA_DIST)
236 files='$(BUILT_EXTRA_DIST)'; \
237 for f in $$files; do \
238 if test -f $$f; then d=.; else d=$(srcdir); fi; \
239 cp $$d/$$f $(distdir) || exit 1; done