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 = \
122 EXTRA_libglib_2_0_la_SOURCES = \
129 glibincludedir=$(includedir)/glib-2.0
130 glibinclude_HEADERS = \
134 glibsubincludedir=$(includedir)/glib-2.0/glib
135 glibsubinclude_HEADERS = \
187 install-data-local: install-ms-lib install-libtool-import-lib
188 @if test -f $(glibincludedir)/glist.h ; then \
189 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
190 echo "*** contents of this directory and type 'make install' again." ; \
194 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
197 no_undefined = -no-undefined
201 # This requires a very new libtool
202 export_symbols = -export-symbols glib.def
204 install-libtool-import-lib:
205 $(INSTALL) .libs/libglib-2.0.dll.a $(DESTDIR)$(libdir)
206 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
208 uninstall-libtool-import-lib:
209 -rm $(DESTDIR)$(libdir)/libglib-2.0.dll.a $(DESTDIR)$(libdir)/glib-2.0.def
211 install-libtool-import-lib:
212 uninstall-libtool-import-lib:
214 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
217 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @G_LIB_WIN32_RESOURCE@ @ICONV_LIBS@ @G_LIBS_EXTRA@
218 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @G_LIB_WIN32_RESOURCE@ @GLIB_DEF@
220 libglib_2_0_la_LDFLAGS = \
221 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
222 -export-dynamic $(no_undefined) $(export_symbols)
225 bin_PROGRAMS = gspawn-win32-helper
226 gspawn_win32_helper_LDADD = libglib-2.0.la
227 gspawn_win32_helper_LDFLAGS = -mwindows
229 $(G_LIB_WIN32_RESOURCE): glib.rc
230 $(top_srcdir)/build/win32/lt-compile-resource glib.rc $@
233 glib-2.0.lib: libglib-2.0.la glib.def
234 lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
236 dist-hook: $(BUILT_EXTRA_DIST)
237 files='$(BUILT_EXTRA_DIST)'; \
238 for f in $$files; do \
239 if test -f $$f; then d=.; else d=$(srcdir); fi; \
240 cp $$d/$$f $(distdir) || exit 1; done