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_DEPRECATED -DGLIB_COMPILATION
22 glibconfig.h.win32.in \
32 # These may be in the builddir too
41 lib_LTLIBRARIES = libglib-1.3.la
43 libglib_1_3_la_SOURCES = \
88 EXTRA_libglib_1_3_la_SOURCES = \
95 glibincludedir=$(includedir)/glib-2.0
96 glibinclude_HEADERS = \
142 configexecincludedir = $(libdir)/glib-2.0/include
143 #configexecinclude_DATA = glibconfig.h
145 install-exec-local: glibconfig.h
146 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
147 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
148 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
149 else $(INSTALL_DATA) glibconfig.h $$file; fi
151 CONFIGURE_DEPENDENCIES = acglib.m4
153 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
154 glibconfig.h: stamp-gc-h
155 @if test -f glibconfig.h; then :; \
156 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
157 stamp-gc-h: config.status
158 CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
159 echo timestamp > stamp-gc-h
161 libglib_1_3_la_LIBADD = @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
162 libglib_1_3_la_DEPENDENCIES = @GIO@ @GSPAWN@ @PLATFORMDEP@
166 no_undefined = -no-undefined
169 # This requires a very new libtool
170 export_symbols = -export-symbols glib.def
173 libglib_1_3_la_LDFLAGS = \
174 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
175 -export-dynamic $(no_undefined) $(export_symbols)
178 bin_PROGRAMS = gspawn-win32-helper
179 gspawn_win32_helper_LDADD = libglib-1.3.la
184 noinst_PROGRAMS = testglib testgdate testgdateparser $(timeloop)
185 testglib_LDADD = libglib-1.3.la
186 testgdate_LDADD = libglib-1.3.la
187 testgdateparser_LDADD = libglib-1.3.la
189 timeloop_LDADD = libglib-1.3.la
191 m4datadir = $(datadir)/aclocal
192 m4data_DATA = glib-2.0.m4
194 pkgconfigdir = $(libdir)/pkgconfig
195 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
197 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
198 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
200 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
201 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
203 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
204 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
206 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
207 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
209 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
210 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
212 bin_SCRIPTS=glib-config-2.0
213 BUILT_SOURCES=glib-config-2.0
214 glib-config-2.0: glib-config-2.0.in
216 .PHONY: files release sanity snapshot
219 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
225 cd docs && make glib.html
229 ./sanity_check $(VERSION)
232 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
235 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
237 dist-hook: $(BUILT_EXTRA_DIST)
238 cd $(top_builddir) && CONFIG_FILES="INSTALL README" CONFIG_HEADERS= $(SHELL) ./config.status
239 files='$(BUILT_EXTRA_DIST)' INSTALL README; \
240 for f in $$files; do \
241 if test -f $$f; then d=.; else d=$(srcdir); fi; \
242 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done