1 ## Process this file with automake to produce Makefile.in
6 trio_libtrio_la = trio/libtrio.la
9 SUBDIRS = libcharset $(TRIO_SUBDIR)
11 DIST_SUBDIRS = libcharset trio
13 INCLUDES = -I$(top_srcdir) -DG_LOG_DOMAIN=\"GLib\" \
14 $(GLIB_DEBUG_FLAGS) -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
20 gen-unicode-tables.pl \
23 # These may be in the builddir too
29 lib_LTLIBRARIES = libglib-2.0.la
32 noinst_DATA = glib-2.0.lib
35 $(INSTALL) glib-2.0.lib $(DESTDIR)$(libdir)
38 -rm $(DESTDIR)$(libdir)/glib-2.0.lib
44 libglib_2_0_la_SOURCES = \
98 EXTRA_libglib_2_0_la_SOURCES = \
105 glibincludedir=$(includedir)/glib-2.0
106 glibinclude_HEADERS = \
110 glibsubincludedir=$(includedir)/glib-2.0/glib
111 glibsubinclude_HEADERS = \
157 install-data-local: install-ms-lib install-libtool-import-lib
158 @if test -f $(glibincludedir)/glist.h ; then \
159 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
160 echo "*** contents of this directory and type 'make install' again." ; \
164 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
167 no_undefined = -no-undefined
171 # This requires a very new libtool
172 export_symbols = -export-symbols glib.def
174 install-libtool-import-lib:
175 $(INSTALL) .libs/libglib-2.0.dll.a $(DESTDIR)$(libdir)
176 $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
178 uninstall-libtool-import-lib:
179 -rm $(DESTDIR)$(libdir)/libglib-2.0.dll.a $(DESTDIR)$(libdir)/glib-2.0.def
181 install-libtool-import-lib:
182 uninstall-libtool-import-lib:
185 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(trio_libtrio_la) $(GIO) $(GSPAWN) $(PLATFORMDEP) $(G_LIB_WIN32_RESOURCE) $(ICONV_LIBS) $(G_LIBS_EXTRA)
186 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(trio_libtrio_la) $(GIO) $(GSPAWN) $(PLATFORMDEP) $(G_LIB_WIN32_RESOURCE) $(GLIB_DEF)
188 libglib_2_0_la_LDFLAGS = \
189 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
190 -export-dynamic $(no_undefined) $(export_symbols)
193 bin_PROGRAMS = gspawn-win32-helper
194 gspawn_win32_helper_LDADD = libglib-2.0.la
195 gspawn_win32_helper_LDFLAGS = -mwindows
197 $(G_LIB_WIN32_RESOURCE): glib.rc
198 $(top_srcdir)/build/win32/lt-compile-resource glib.rc $@
201 glib-2.0.lib: libglib-2.0.la glib.def
202 lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
204 dist-hook: $(BUILT_EXTRA_DIST)
205 files='$(BUILT_EXTRA_DIST)'; \
206 for f in $$files; do \
207 if test -f $$f; then d=.; else d=$(srcdir); fi; \
208 cp $$d/$$f $(distdir) || exit 1; done