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 = \
170 EXTRA_libglib_2_0_la_SOURCES = \
177 glibincludedir=$(includedir)/glib-2.0
178 glibinclude_HEADERS = \
182 glibsubincludedir=$(includedir)/glib-2.0/glib
183 glibsubinclude_HEADERS = \
245 install-data-local: install-ms-lib install-def-file
246 @if test -f $(glibincludedir)/glist.h ; then \
247 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
248 echo "*** contents of this directory and type 'make install' again." ; \
252 uninstall-local: uninstall-ms-lib uninstall-def-file
255 no_undefined = -no-undefined
258 if OS_WIN32_AND_DLL_COMPILATION
259 export_symbols = -export-symbols glib.def
261 glib_win32_res = glib-win32-res.o
262 glib_win32_res_ldflag = -Wl,$(glib_win32_res)
267 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
270 -rm $(DESTDIR)$(libdir)/glib-2.0.def
275 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
280 pcre_lib = $(PCRE_LIBS)
281 pcre_inc = $(PCRE_CFLAGS)
283 pcre_lib = pcre/libpcre.la
291 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib)
292 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def)
294 libglib_2_0_la_LDFLAGS = \
295 $(glib_win32_res_ldflag) \
296 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
297 -export-dynamic $(no_undefined) $(export_symbols)
301 gspawn-win32-helper-console.c:
302 echo '#define HELPER_CONSOLE' >$@
303 echo '#include "gspawn-win32-helper.c"' >>$@
305 gspawn-win64-helper.c:
306 echo '#include "gspawn-win32-helper.c"' >$@
308 gspawn-win64-helper-console.c:
309 echo '#define HELPER_CONSOLE' >$@
310 echo '#include "gspawn-win32-helper.c"' >>$@
314 INSTALL_PROGS += gspawn-win64-helper gspawn-win64-helper-console
315 gspawn_win64_helper_LDADD = libglib-2.0.la
316 gspawn_win64_helper_LDFLAGS = -mwindows
317 gspawn_win64_helper_console_LDADD = libglib-2.0.la
319 INSTALL_PROGS += gspawn-win32-helper gspawn-win32-helper-console
320 gspawn_win32_helper_LDADD = libglib-2.0.la
321 gspawn_win32_helper_LDFLAGS = -mwindows
322 gspawn_win32_helper_console_LDADD = libglib-2.0.la
326 glib-win32-res.o: glib.rc
327 $(WINDRES) glib.rc $@
329 bin_PROGRAMS = ${INSTALL_PROGS}
333 INSTALL_PROGS += gtester
334 gtester_SOURCES = gtester.c
335 gtester_LDADD = libglib-2.0.la
337 auto_config_binscripts = gtester-report
338 bin_SCRIPTS = ${auto_config_binscripts}
339 EXTRA_DIST += ${auto_config_binscripts}
342 "bindir" : "${bindir}", \
343 "glib-version" : "${GLIB_VERSION}"
346 for sf in ${auto_config_binscripts} ; do \
347 mv -f "$(DESTDIR)$(bindir)/$$sf" "$(DESTDIR)$(bindir)/$$sf".tmp \
348 && sed < "$(DESTDIR)$(bindir)/$$sf".tmp > "$(DESTDIR)$(bindir)/$$sf" \
349 -e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| ${CONFIGVARS}|' \
350 -e '1,1s|#!/usr/bin/env python\([0-9]\+\(\.[0-9]\+\)\?\)\?|#!${PYTHON}|' \
352 rm -f "$(DESTDIR)$(bindir)/$$sf".tmp ; \
357 glib-2.0.lib: libglib-2.0.la glib.def
358 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
360 dist-hook: $(BUILT_EXTRA_DIST)
361 files='$(BUILT_EXTRA_DIST)'; \
362 for f in $$files; do \
363 if test -f $$f; then d=.; else d=$(srcdir); fi; \
364 cp $$d/$$f $(distdir) || exit 1; done