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
85 noinst_DATA = glib-2.0.lib
88 $(INSTALL) glib-2.0.lib $(DESTDIR)$(libdir)
91 -rm $(DESTDIR)$(libdir)/glib-2.0.lib
97 libglib_2_0_la_SOURCES = \
167 EXTRA_libglib_2_0_la_SOURCES = \
174 glibincludedir=$(includedir)/glib-2.0
175 glibinclude_HEADERS = \
179 glibsubincludedir=$(includedir)/glib-2.0/glib
180 glibsubinclude_HEADERS = \
241 install-data-local: install-ms-lib install-def-file
242 @if test -f $(glibincludedir)/glist.h ; then \
243 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
244 echo "*** contents of this directory and type 'make install' again." ; \
248 uninstall-local: uninstall-ms-lib uninstall-def-file
251 no_undefined = -no-undefined
255 export_symbols = -export-symbols glib.def
259 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
262 -rm $(DESTDIR)$(libdir)/glib-2.0.def
267 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
271 glib_win32_res = glib-win32-res.o
272 glib_win32_res_ldflag = -Wl,$(glib_win32_res)
277 pcre_lib = $(PCRE_LIBS)
278 pcre_inc = $(PCRE_CFLAGS)
280 pcre_lib = pcre/libpcre.la
288 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib)
289 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def)
291 libglib_2_0_la_LDFLAGS = \
292 $(glib_win32_res_ldflag) \
293 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
294 -export-dynamic $(no_undefined) $(export_symbols)
298 gspawn-win32-helper-console.c:
299 echo '#include "gspawn-win32-helper.c"' >$@
302 INSTALL_PROGS += gspawn-win32-helper gspawn-win32-helper-console
303 gspawn_win32_helper_LDADD = libglib-2.0.la
304 gspawn_win32_helper_LDFLAGS = -mwindows
305 gspawn_win32_helper_console_LDADD = libglib-2.0.la
307 glib-win32-res.o: glib.rc
308 $(WINDRES) glib.rc $@
311 bin_PROGRAMS = ${INSTALL_PROGS}
315 INSTALL_PROGS += gtester
316 gtester_SOURCES = gtester.c
317 gtester_LDADD = libglib-2.0.la
319 auto_config_binscripts = gtester-report
320 bin_SCRIPTS = ${auto_config_binscripts}
321 EXTRA_DIST += ${auto_config_binscripts}
324 "bindir" : "${bindir}", \
325 "glib-version" : "${GLIB_VERSION}"
328 for sf in ${auto_config_binscripts} ; do \
329 mv -f "$(DESTDIR)$(bindir)/$$sf" "$(DESTDIR)$(bindir)/$$sf".tmp \
330 && sed < "$(DESTDIR)$(bindir)/$$sf".tmp > "$(DESTDIR)$(bindir)/$$sf" \
331 -e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| ${CONFIGVARS}|' \
332 -e '1,1s|#!/usr/bin/env python\([0-9]\+\(\.[0-9]\+\)\?\)\?|#!${PYTHON}|' \
334 rm -f "$(DESTDIR)$(bindir)/$$sf".tmp ; \
339 glib-2.0.lib: libglib-2.0.la glib.def
340 lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
342 dist-hook: $(BUILT_EXTRA_DIST)
343 files='$(BUILT_EXTRA_DIST)'; \
344 for f in $$files; do \
345 if test -f $$f; then d=.; else d=$(srcdir); fi; \
346 cp $$d/$$f $(distdir) || exit 1; done