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 = \
134 EXTRA_libglib_2_0_la_SOURCES = \
141 glibincludedir=$(includedir)/glib-2.0
142 glibinclude_HEADERS = \
146 glibsubincludedir=$(includedir)/glib-2.0/glib
147 glibsubinclude_HEADERS = \
203 install-data-local: install-ms-lib install-def-file
204 @if test -f $(glibincludedir)/glist.h ; then \
205 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
206 echo "*** contents of this directory and type 'make install' again." ; \
210 uninstall-local: uninstall-ms-lib uninstall-def-file
213 no_undefined = -no-undefined
217 # This requires a very new libtool
218 export_symbols = -export-symbols glib.def
221 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
224 -rm $(DESTDIR)$(libdir)/glib-2.0.def
229 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
233 glib_win32_res = glib-win32-res.o
234 glib_win32_res_ldflag = -Wl,$(glib_win32_res)
237 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
238 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) @GLIB_DEF@
240 libglib_2_0_la_LDFLAGS = \
241 $(glib_win32_res_ldflag) \
242 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
243 -export-dynamic $(no_undefined) $(export_symbols)
246 bin_PROGRAMS = gspawn-win32-helper gspawn-win32-helper-console
247 gspawn_win32_helper_LDADD = libglib-2.0.la
248 gspawn_win32_helper_LDFLAGS = -mwindows
249 gspawn_win32_helper_console_LDADD = libglib-2.0.la
251 glib-win32-res.o: glib.rc
252 $(WINDRES) glib.rc $@
255 gspawn-win32-helper-console.c:
256 echo '#include "gspawn-win32-helper.c"' >$@
258 glib-2.0.lib: libglib-2.0.la glib.def
259 lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
261 dist-hook: $(BUILT_EXTRA_DIST)
262 files='$(BUILT_EXTRA_DIST)'; \
263 for f in $$files; do \
264 if test -f $$f; then d=.; else d=$(srcdir); fi; \
265 cp $$d/$$f $(distdir) || exit 1; done