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
36 gen-unicode-tables.pl \
41 # These may be in the builddir too
48 lib_LTLIBRARIES = libglib-2.0.la
51 noinst_DATA = glib-2.0.lib
54 $(INSTALL) glib-2.0.lib $(DESTDIR)$(libdir)
57 -rm $(DESTDIR)$(libdir)/glib-2.0.lib
63 libglib_2_0_la_SOURCES = \
123 EXTRA_libglib_2_0_la_SOURCES = \
130 glibincludedir=$(includedir)/glib-2.0
131 glibinclude_HEADERS = \
135 glibsubincludedir=$(includedir)/glib-2.0/glib
136 glibsubinclude_HEADERS = \
189 install-data-local: install-ms-lib install-def-file
190 @if test -f $(glibincludedir)/glist.h ; then \
191 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
192 echo "*** contents of this directory and type 'make install' again." ; \
196 uninstall-local: uninstall-ms-lib uninstall-def-file
199 no_undefined = -no-undefined
203 # This requires a very new libtool
204 export_symbols = -export-symbols glib.def
207 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
210 -rm $(DESTDIR)$(libdir)/glib-2.0.def
215 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
219 glib_win32_res = glib-win32-res.o
220 glib_win32_res_ldflag = -Wl,$(glib_win32_res)
223 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
224 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) @GLIB_DEF@
226 libglib_2_0_la_LDFLAGS = \
227 $(glib_win32_res_ldflag) \
228 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
229 -export-dynamic $(no_undefined) $(export_symbols)
232 bin_PROGRAMS = gspawn-win32-helper
233 gspawn_win32_helper_LDADD = libglib-2.0.la
234 gspawn_win32_helper_LDFLAGS = -mwindows
236 glib-win32-res.o: glib.rc
237 $(WINDRES) glib.rc $@
240 glib-2.0.lib: libglib-2.0.la glib.def
241 lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
243 dist-hook: $(BUILT_EXTRA_DIST)
244 files='$(BUILT_EXTRA_DIST)'; \
245 for f in $$files; do \
246 if test -f $$f; then d=.; else d=$(srcdir); fi; \
247 cp $$d/$$f $(distdir) || exit 1; done