1 ## Process this file with automake to produce Makefile.in
6 printf_la = gnulib/libgnulib.la
9 SUBDIRS = libcharset $(PRINTF_SUBDIR)
11 DIST_SUBDIRS = libcharset gnulib
13 INCLUDES = -I$(top_srcdir) -DG_LOG_DOMAIN=\"GLib\" \
14 $(GLIB_DEBUG_FLAGS) -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
16 glib.def: glib.symbols
17 (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
19 galias.h: glib.symbols
20 $(PERL) $(srcdir)/makegalias.pl < $(srcdir)/glib.symbols > galias.h
22 galiasdef.c: glib.symbols
23 $(PERL) $(srcdir)/makegalias.pl -def < $(srcdir)/glib.symbols > galiasdef.c
26 if HAVE_GNUC_VISIBILITY
31 BUILT_SOURCES = galias.h galiasdef.c
33 MIRRORING_TAB_SOURCES = \
34 glib-mirroring-tab/Makefile \
35 glib-mirroring-tab/gen-mirroring-tab.c \
36 glib-mirroring-tab/packtab.h \
37 glib-mirroring-tab/packtab.c
42 gen-unicode-tables.pl \
46 $(MIRRORING_TAB_SOURCES)
48 # These may be in the builddir too
55 lib_LTLIBRARIES = libglib-2.0.la
58 noinst_DATA = glib-2.0.lib
61 $(INSTALL) glib-2.0.lib $(DESTDIR)$(libdir)
64 -rm $(DESTDIR)$(libdir)/glib-2.0.lib
70 libglib_2_0_la_SOURCES = \
132 EXTRA_libglib_2_0_la_SOURCES = \
139 glibincludedir=$(includedir)/glib-2.0
140 glibinclude_HEADERS = \
144 glibsubincludedir=$(includedir)/glib-2.0/glib
145 glibsubinclude_HEADERS = \
199 install-data-local: install-ms-lib install-def-file
200 @if test -f $(glibincludedir)/glist.h ; then \
201 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
202 echo "*** contents of this directory and type 'make install' again." ; \
206 uninstall-local: uninstall-ms-lib uninstall-def-file
209 no_undefined = -no-undefined
213 # This requires a very new libtool
214 export_symbols = -export-symbols glib.def
217 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
220 -rm $(DESTDIR)$(libdir)/glib-2.0.def
225 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
229 glib_win32_res = glib-win32-res.o
230 glib_win32_res_ldflag = -Wl,$(glib_win32_res)
233 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
234 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) @GLIB_DEF@
236 libglib_2_0_la_LDFLAGS = \
237 $(glib_win32_res_ldflag) \
238 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
239 -export-dynamic $(no_undefined) $(export_symbols)
242 bin_PROGRAMS = gspawn-win32-helper gspawn-win32-helper-console
243 gspawn_win32_helper_LDADD = libglib-2.0.la
244 gspawn_win32_helper_LDFLAGS = -mwindows
245 gspawn_win32_helper_console_LDADD = libglib-2.0.la
247 glib-win32-res.o: glib.rc
248 $(WINDRES) glib.rc $@
251 gspawn-win32-helper-console.c:
252 echo '#include "gspawn-win32-helper.c"' >$@
254 glib-2.0.lib: libglib-2.0.la glib.def
255 lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
257 dist-hook: $(BUILT_EXTRA_DIST)
258 files='$(BUILT_EXTRA_DIST)'; \
259 for f in $$files; do \
260 if test -f $$f; then d=.; else d=$(srcdir); fi; \
261 cp $$d/$$f $(distdir) || exit 1; done