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 = \
171 EXTRA_libglib_2_0_la_SOURCES = \
178 glibincludedir=$(includedir)/glib-2.0
179 glibinclude_HEADERS = \
183 glibsubincludedir=$(includedir)/glib-2.0/glib
184 glibsubinclude_HEADERS = \
247 install-data-local: install-ms-lib install-def-file
248 @if test -f $(glibincludedir)/glist.h ; then \
249 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
250 echo "*** contents of this directory and type 'make install' again." ; \
254 uninstall-local: uninstall-ms-lib uninstall-def-file
257 no_undefined = -no-undefined
260 if OS_WIN32_AND_DLL_COMPILATION
261 export_symbols = -export-symbols glib.def
263 glib_win32_res = glib-win32-res.o
264 glib_win32_res_ldflag = -Wl,$(glib_win32_res)
269 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
272 -rm $(DESTDIR)$(libdir)/glib-2.0.def
277 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
282 pcre_lib = $(PCRE_LIBS)
283 pcre_inc = $(PCRE_CFLAGS)
285 pcre_lib = pcre/libpcre.la
293 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib)
294 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def)
296 libglib_2_0_la_LDFLAGS = \
297 $(glib_win32_res_ldflag) \
298 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
299 -export-dynamic $(no_undefined) $(export_symbols)
303 gspawn-win32-helper-console.c:
304 echo '#define HELPER_CONSOLE' >$@
305 echo '#include "gspawn-win32-helper.c"' >>$@
307 gspawn-win64-helper.c:
308 echo '#include "gspawn-win32-helper.c"' >$@
310 gspawn-win64-helper-console.c:
311 echo '#define HELPER_CONSOLE' >$@
312 echo '#include "gspawn-win32-helper.c"' >>$@
316 INSTALL_PROGS += gspawn-win64-helper gspawn-win64-helper-console
317 gspawn_win64_helper_LDADD = libglib-2.0.la
318 gspawn_win64_helper_LDFLAGS = -mwindows
319 gspawn_win64_helper_console_LDADD = libglib-2.0.la
321 INSTALL_PROGS += gspawn-win32-helper gspawn-win32-helper-console
322 gspawn_win32_helper_LDADD = libglib-2.0.la
323 gspawn_win32_helper_LDFLAGS = -mwindows
324 gspawn_win32_helper_console_LDADD = libglib-2.0.la
328 glib-win32-res.o: glib.rc
329 $(WINDRES) glib.rc $@
331 bin_PROGRAMS = ${INSTALL_PROGS}
335 INSTALL_PROGS += gtester
336 gtester_SOURCES = gtester.c
337 gtester_LDADD = libglib-2.0.la
339 auto_config_binscripts = gtester-report
340 bin_SCRIPTS = ${auto_config_binscripts}
341 EXTRA_DIST += ${auto_config_binscripts}
344 "bindir" : "${bindir}", \
345 "glib-version" : "${GLIB_VERSION}"
348 for sf in ${auto_config_binscripts} ; do \
349 mv -f "$(DESTDIR)$(bindir)/$$sf" "$(DESTDIR)$(bindir)/$$sf".tmp \
350 && sed < "$(DESTDIR)$(bindir)/$$sf".tmp > "$(DESTDIR)$(bindir)/$$sf" \
351 -e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| ${CONFIGVARS}|' \
352 -e '1,1s|#! /usr/bin/env python\([0-9]\+\(\.[0-9]\+\)\?\)\?|#!${PYTHON}|' \
354 rm -f "$(DESTDIR)$(bindir)/$$sf".tmp ; \
359 glib-2.0.lib: libglib-2.0.la glib.def
360 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
362 dist-hook: $(BUILT_EXTRA_DIST)
363 files='$(BUILT_EXTRA_DIST)'; \
364 for f in $$files; do \
365 if test -f $$f; then d=.; else d=$(srcdir); fi; \
366 cp $$d/$$f $(distdir) || exit 1; done