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 - <$(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
26 BUILT_SOURCES = galias.h
31 gen-unicode-tables.pl \
36 # These may be in the builddir too
43 lib_LTLIBRARIES = libglib-2.0.la
46 noinst_DATA = glib-2.0.lib
49 $(INSTALL) glib-2.0.lib $(DESTDIR)$(libdir)
52 -rm $(DESTDIR)$(libdir)/glib-2.0.lib
58 libglib_2_0_la_SOURCES = \
116 EXTRA_libglib_2_0_la_SOURCES = \
123 glibincludedir=$(includedir)/glib-2.0
124 glibinclude_HEADERS = \
128 glibsubincludedir=$(includedir)/glib-2.0/glib
129 glibsubinclude_HEADERS = \
181 install-data-local: install-ms-lib install-libtool-import-lib
182 @if test -f $(glibincludedir)/glist.h ; then \
183 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
184 echo "*** contents of this directory and type 'make install' again." ; \
188 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
191 no_undefined = -no-undefined
195 # This requires a very new libtool
196 export_symbols = -export-symbols glib.def
198 install-libtool-import-lib:
199 # Don't put the binary compatibility entries in the import lib!
200 # (Unfortunately the GNU linker doesn't yet understand the PRIVATE
201 # directive in .def files.)
203 for entry in `grep PRIVATE glib.def | sed -e 's/PRIVATE//'`; do \
204 file=`nm -A .libs/libglib-2.0.dll.a | tr -d '\r' | grep -m 1 -E $$entry'$$' | cut -d: -f2`; \
205 ar d .libs/libglib-2.0.dll.a $$file; \
207 $(INSTALL) .libs/libglib-2.0.dll.a $(DESTDIR)$(libdir)
208 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
210 uninstall-libtool-import-lib:
211 -rm $(DESTDIR)$(libdir)/libglib-2.0.dll.a $(DESTDIR)$(libdir)/glib-2.0.def
213 install-libtool-import-lib:
214 uninstall-libtool-import-lib:
216 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
219 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @G_LIB_WIN32_RESOURCE@ @ICONV_LIBS@ @G_LIBS_EXTRA@
220 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @G_LIB_WIN32_RESOURCE@ @GLIB_DEF@
222 libglib_2_0_la_LDFLAGS = \
223 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
224 -export-dynamic $(no_undefined) $(export_symbols)
227 bin_PROGRAMS = gspawn-win32-helper
228 gspawn_win32_helper_LDADD = libglib-2.0.la
229 gspawn_win32_helper_LDFLAGS = -mwindows
231 $(G_LIB_WIN32_RESOURCE): glib.rc
232 $(top_srcdir)/build/win32/lt-compile-resource glib.rc $@
235 glib-2.0.lib: libglib-2.0.la glib.def
236 lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
238 dist-hook: $(BUILT_EXTRA_DIST)
239 files='$(BUILT_EXTRA_DIST)'; \
240 for f in $$files; do \
241 if test -f $$f; then d=.; else d=$(srcdir); fi; \
242 cp $$d/$$f $(distdir) || exit 1; done