1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
7 printf_la = gnulib/libgnulib.la
22 SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre . tests
24 DIST_SUBDIRS = libcharset gnulib pcre update-pcre tests
29 -DG_LOG_DOMAIN=\"GLib\" \
31 -DG_DISABLE_DEPRECATED \
35 glib.def: glib.symbols
36 (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/glib.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g') > glib.def
38 galias.h: glib.symbols
39 $(PERL) $(srcdir)/makegalias.pl < $(srcdir)/glib.symbols > galias.h
41 galiasdef.c: glib.symbols
42 $(PERL) $(srcdir)/makegalias.pl -def < $(srcdir)/glib.symbols > galiasdef.c
45 if HAVE_GNUC_VISIBILITY
46 TESTS_ENVIRONMENT = GLIB_DEBUG_FLAGS="$(GLIB_DEBUG_FLAGS)"
47 TESTS = abicheck.sh pltcheck.sh
51 BUILT_SOURCES = galias.h galiasdef.c
53 MIRRORING_TAB_SOURCE = \
54 glib-mirroring-tab/Makefile \
55 glib-mirroring-tab/gen-mirroring-tab.c \
56 glib-mirroring-tab/packtab.h \
57 glib-mirroring-tab/packtab.c
59 # The compilation of GRegex can be disabled, but the source files must
64 gen-unicode-tables.pl \
73 $(MIRRORING_TAB_SOURCE)
75 # These may be in the builddir too
82 lib_LTLIBRARIES = libglib-2.0.la
84 if OS_WIN32_AND_DLL_COMPILATION
86 noinst_DATA = glib-2.0.lib
88 install_ms_lib_cmd = $(INSTALL) glib-2.0.lib $(DESTDIR)$(libdir)
89 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/glib-2.0.lib
97 $(uninstall_ms_lib_cmd)
99 libglib_2_0_la_SOURCES = \
169 EXTRA_libglib_2_0_la_SOURCES = \
176 glibincludedir=$(includedir)/glib-2.0
177 glibinclude_HEADERS = \
181 glibsubincludedir=$(includedir)/glib-2.0/glib
182 glibsubinclude_HEADERS = \
243 install-data-local: install-ms-lib install-def-file
244 @if test -f $(glibincludedir)/glist.h ; then \
245 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
246 echo "*** contents of this directory and type 'make install' again." ; \
250 uninstall-local: uninstall-ms-lib uninstall-def-file
253 no_undefined = -no-undefined
256 if OS_WIN32_AND_DLL_COMPILATION
257 export_symbols = -export-symbols glib.def
259 glib_win32_res = glib-win32-res.o
260 glib_win32_res_ldflag = -Wl,$(glib_win32_res)
265 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
268 -rm $(DESTDIR)$(libdir)/glib-2.0.def
273 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
278 pcre_lib = $(PCRE_LIBS)
279 pcre_inc = $(PCRE_CFLAGS)
281 pcre_lib = pcre/libpcre.la
289 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib)
290 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def)
292 libglib_2_0_la_LDFLAGS = \
293 $(glib_win32_res_ldflag) \
294 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
295 -export-dynamic $(no_undefined) $(export_symbols)
299 gspawn-win32-helper-console.c:
300 echo '#define HELPER_CONSOLE' >$@
301 echo '#include "gspawn-win32-helper.c"' >>$@
304 INSTALL_PROGS += gspawn-win32-helper gspawn-win32-helper-console
305 gspawn_win32_helper_LDADD = libglib-2.0.la
306 gspawn_win32_helper_LDFLAGS = -mwindows
307 gspawn_win32_helper_console_LDADD = libglib-2.0.la
310 glib-win32-res.o: glib.rc
311 $(WINDRES) glib.rc $@
313 bin_PROGRAMS = ${INSTALL_PROGS}
317 INSTALL_PROGS += gtester
318 gtester_SOURCES = gtester.c
319 gtester_LDADD = libglib-2.0.la
321 auto_config_binscripts = gtester-report
322 bin_SCRIPTS = ${auto_config_binscripts}
323 EXTRA_DIST += ${auto_config_binscripts}
326 "bindir" : "${bindir}", \
327 "glib-version" : "${GLIB_VERSION}"
330 for sf in ${auto_config_binscripts} ; do \
331 mv -f "$(DESTDIR)$(bindir)/$$sf" "$(DESTDIR)$(bindir)/$$sf".tmp \
332 && sed < "$(DESTDIR)$(bindir)/$$sf".tmp > "$(DESTDIR)$(bindir)/$$sf" \
333 -e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| ${CONFIGVARS}|' \
334 -e '1,1s|#!/usr/bin/env python\([0-9]\+\(\.[0-9]\+\)\?\)\?|#!${PYTHON}|' \
336 rm -f "$(DESTDIR)$(bindir)/$$sf".tmp ; \
341 glib-2.0.lib: libglib-2.0.la glib.def
342 lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
344 dist-hook: $(BUILT_EXTRA_DIST)
345 files='$(BUILT_EXTRA_DIST)'; \
346 for f in $$files; do \
347 if test -f $$f; then d=.; else d=$(srcdir); fi; \
348 cp $$d/$$f $(distdir) || exit 1; done