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) $(pcre_inc) -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_ENVIRONMENT = GLIB_DEBUG_FLAGS="$(GLIB_DEBUG_FLAGS)"
40 TESTS = abicheck.sh pltcheck.sh
44 BUILT_SOURCES = galias.h galiasdef.c
46 MIRRORING_TAB_SOURCES = \
47 glib-mirroring-tab/Makefile \
48 glib-mirroring-tab/gen-mirroring-tab.c \
49 glib-mirroring-tab/packtab.h \
50 glib-mirroring-tab/packtab.c
52 # The compilation of GRegex can be disabled, but the source files must
57 gen-unicode-tables.pl \
65 $(MIRRORING_TAB_SOURCES)
67 # These may be in the builddir too
74 lib_LTLIBRARIES = libglib-2.0.la
77 noinst_DATA = glib-2.0.lib
80 $(INSTALL) glib-2.0.lib $(DESTDIR)$(libdir)
83 -rm $(DESTDIR)$(libdir)/glib-2.0.lib
89 libglib_2_0_la_SOURCES = \
156 EXTRA_libglib_2_0_la_SOURCES = \
163 glibincludedir=$(includedir)/glib-2.0
164 glibinclude_HEADERS = \
168 glibsubincludedir=$(includedir)/glib-2.0/glib
169 glibsubinclude_HEADERS = \
227 install-data-local: install-ms-lib install-def-file
228 @if test -f $(glibincludedir)/glist.h ; then \
229 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
230 echo "*** contents of this directory and type 'make install' again." ; \
234 uninstall-local: uninstall-ms-lib uninstall-def-file
237 no_undefined = -no-undefined
241 # This requires a very new libtool
242 export_symbols = -export-symbols glib.def
245 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
248 -rm $(DESTDIR)$(libdir)/glib-2.0.def
253 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
257 glib_win32_res = glib-win32-res.o
258 glib_win32_res_ldflag = -Wl,$(glib_win32_res)
263 pcre_lib = $(PCRE_LIBS)
264 pcre_inc = $(PCRE_CFLAGS)
266 pcre_lib = pcre/libpcre.la
274 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib)
275 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) @GLIB_DEF@
277 libglib_2_0_la_LDFLAGS = \
278 $(glib_win32_res_ldflag) \
279 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
280 -export-dynamic $(no_undefined) $(export_symbols)
283 bin_PROGRAMS = gspawn-win32-helper gspawn-win32-helper-console
284 gspawn_win32_helper_LDADD = libglib-2.0.la
285 gspawn_win32_helper_LDFLAGS = -mwindows
286 gspawn_win32_helper_console_LDADD = libglib-2.0.la
288 glib-win32-res.o: glib.rc
289 $(WINDRES) glib.rc $@
292 gspawn-win32-helper-console.c:
293 echo '#include "gspawn-win32-helper.c"' >$@
295 glib-2.0.lib: libglib-2.0.la glib.def
296 lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
298 dist-hook: $(BUILT_EXTRA_DIST)
299 files='$(BUILT_EXTRA_DIST)'; \
300 for f in $$files; do \
301 if test -f $$f; then d=.; else d=$(srcdir); fi; \
302 cp $$d/$$f $(distdir) || exit 1; done