1 ## Process this file with automake to produce Makefile.in
6 printf_la = gnulib/libgnulib.la
21 SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre
23 DIST_SUBDIRS = libcharset gnulib pcre update-pcre
25 INCLUDES = -I$(top_srcdir) -DG_LOG_DOMAIN=\"GLib\" \
26 $(GLIB_DEBUG_FLAGS) -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
28 glib.def: glib.symbols
29 (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
31 galias.h: glib.symbols
32 $(PERL) $(srcdir)/makegalias.pl < $(srcdir)/glib.symbols > galias.h
34 galiasdef.c: glib.symbols
35 $(PERL) $(srcdir)/makegalias.pl -def < $(srcdir)/glib.symbols > galiasdef.c
38 if HAVE_GNUC_VISIBILITY
39 TESTS = abicheck.sh pltcheck.sh
43 BUILT_SOURCES = galias.h galiasdef.c
45 MIRRORING_TAB_SOURCES = \
46 glib-mirroring-tab/Makefile \
47 glib-mirroring-tab/gen-mirroring-tab.c \
48 glib-mirroring-tab/packtab.h \
49 glib-mirroring-tab/packtab.c
51 # The compilation of GRegex can be disabled, but the source files must
56 gen-unicode-tables.pl \
64 $(MIRRORING_TAB_SOURCES)
66 # These may be in the builddir too
73 lib_LTLIBRARIES = libglib-2.0.la
76 noinst_DATA = glib-2.0.lib
79 $(INSTALL) glib-2.0.lib $(DESTDIR)$(libdir)
82 -rm $(DESTDIR)$(libdir)/glib-2.0.lib
88 libglib_2_0_la_SOURCES = \
155 EXTRA_libglib_2_0_la_SOURCES = \
162 glibincludedir=$(includedir)/glib-2.0
163 glibinclude_HEADERS = \
167 glibsubincludedir=$(includedir)/glib-2.0/glib
168 glibsubinclude_HEADERS = \
226 install-data-local: install-ms-lib install-def-file
227 @if test -f $(glibincludedir)/glist.h ; then \
228 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
229 echo "*** contents of this directory and type 'make install' again." ; \
233 uninstall-local: uninstall-ms-lib uninstall-def-file
236 no_undefined = -no-undefined
240 # This requires a very new libtool
241 export_symbols = -export-symbols glib.def
244 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
247 -rm $(DESTDIR)$(libdir)/glib-2.0.def
252 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
256 glib_win32_res = glib-win32-res.o
257 glib_win32_res_ldflag = -Wl,$(glib_win32_res)
262 pcre_lib = $(PCRE_LIBS)
264 pcre_lib = pcre/libpcre.la
270 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib)
271 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) @GLIB_DEF@
273 libglib_2_0_la_LDFLAGS = \
274 $(glib_win32_res_ldflag) \
275 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
276 -export-dynamic $(no_undefined) $(export_symbols)
279 bin_PROGRAMS = gspawn-win32-helper gspawn-win32-helper-console
280 gspawn_win32_helper_LDADD = libglib-2.0.la
281 gspawn_win32_helper_LDFLAGS = -mwindows
282 gspawn_win32_helper_console_LDADD = libglib-2.0.la
284 glib-win32-res.o: glib.rc
285 $(WINDRES) glib.rc $@
288 gspawn-win32-helper-console.c:
289 echo '#include "gspawn-win32-helper.c"' >$@
291 glib-2.0.lib: libglib-2.0.la glib.def
292 lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
294 dist-hook: $(BUILT_EXTRA_DIST)
295 files='$(BUILT_EXTRA_DIST)'; \
296 for f in $$files; do \
297 if test -f $$f; then d=.; else d=$(srcdir); fi; \
298 cp $$d/$$f $(distdir) || exit 1; done