1 include $(top_srcdir)/Makefile.decl
8 SUBDIRS += libasyncns xdgmime
11 if OS_WIN32_AND_DLL_COMPILATION
13 noinst_DATA = gio-2.0.lib
15 install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
16 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
24 $(uninstall_ms_lib_cmd)
27 (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gio.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g' | sort) > gio.def.tmp && \
28 mv gio.def.tmp gio.def
30 gioalias.h: gio.symbols
31 $(PERL) $(srcdir)/makegioalias.pl < $(srcdir)/gio.symbols > gioalias.h.tmp && \
32 mv gioalias.h.tmp gioalias.h
34 gioaliasdef.c: gio.symbols
35 $(PERL) $(srcdir)/makegioalias.pl -def < $(srcdir)/gio.symbols > gioaliasdef.c.tmp && \
36 mv gioaliasdef.c.tmp gioaliasdef.c
39 if HAVE_GNUC_VISIBILITY
40 TESTS = abicheck.sh pltcheck.sh
45 -DG_LOG_DOMAIN=\"GLib-GIO\" \
48 -I$(top_srcdir)/glib \
49 -I$(top_srcdir)/gmodule \
51 -DG_DISABLE_DEPRECATED \
53 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
55 lib_LTLIBRARIES = libgio-2.0.la
63 glib_genmarshal=$(GLIB_GENMARSHAL)
65 glib_genmarshal=../gobject/glib-genmarshal
68 gio-marshal.h: gio-marshal.list
69 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --header --internal > $@.tmp && \
72 gio-marshal.c: gio-marshal.h gio-marshal.list
73 (echo "#include \"gio-marshal.h\""; \
74 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --body --internal) > $@.tmp && \
78 glocaldirectorymonitor.c \
79 glocaldirectorymonitor.h \
82 glocalfileenumerator.c \
83 glocalfileenumerator.h \
86 glocalfileinputstream.c \
87 glocalfileinputstream.h \
90 glocalfileoutputstream.c \
91 glocalfileoutputstream.h \
102 platform_libadd += inotify/libinotify.la
103 platform_deps += inotify/libinotify.la
107 AM_CPPFLAGS += -DHAVE_FEN
109 platform_libadd += fen/libfen.la
110 platform_deps += fen/libfen.la
115 platform_libadd += win32/libgiowin32.la
116 platform_deps += win32/libgiowin32.la
127 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
128 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
129 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
137 gunixsocketaddress.c \
140 gunixvolumemonitor.c \
141 gunixvolumemonitor.h \
143 gunixoutputstream.c \
147 giounixincludedir=$(includedir)/gio-unix-2.0/gio
148 giounixinclude_HEADERS = \
152 gunixoutputstream.h \
153 gunixsocketaddress.h \
158 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
159 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
165 gwin32volumemonitor.c \
166 gwin32volumemonitor.h \
173 libgio_2_0_la_SOURCES = \
178 gbufferedinputstream.c \
179 gbufferedoutputstream.c \
182 gcontenttypeprivate.h \
184 gdataoutputstream.c \
194 gfileattribute-priv.h \
200 gfilenamecompleter.c \
201 gfileoutputstream.c \
203 gfilterinputstream.c \
204 gfilteroutputstream.c \
207 ginetsocketaddress.c \
217 gmemoryinputstream.c \
218 gmemoryoutputstream.c \
220 gnativevolumemonitor.c \
221 gnativevolumemonitor.h \
223 gnetworkingprivate.h \
230 gsimpleasyncresult.c \
232 gsocketaddressenumerator.c \
233 gsocketconnectable.c \
236 gthreadedresolver.c \
237 gthreadedresolver.h \
238 gunionvolumemonitor.c \
239 gunionvolumemonitor.h \
255 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
257 libgio_2_0_la_LIBADD = \
258 $(top_builddir)/glib/libglib-2.0.la \
259 $(top_builddir)/gobject/libgobject-2.0.la \
260 $(top_builddir)/gmodule/libgmodule-2.0.la \
268 no_undefined = -no-undefined
271 if OS_WIN32_AND_DLL_COMPILATION
272 export_symbols = -export-symbols gio.def
276 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
279 -rm $(DESTDIR)$(libdir)/gio-2.0.def
284 export_symbols = -export-symbols-regex '^g_.*'
287 install-data-local: install-ms-lib install-def-file
288 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
290 uninstall-local: uninstall-ms-lib uninstall-def-file
292 libgio_2_0_la_LDFLAGS = \
293 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
294 -export-dynamic $(no_undefined) $(export_symbols)
296 libgio_2_0_la_DEPENDENCIES = $(gio_def) $(platform_deps)
301 gbufferedinputstream.h \
302 gbufferedoutputstream.h \
306 gdataoutputstream.h \
317 gfilenamecompleter.h \
318 gfileoutputstream.h \
320 gfilterinputstream.h \
321 gfilteroutputstream.h \
324 ginetsocketaddress.h \
335 gmemoryinputstream.h \
336 gmemoryoutputstream.h \
338 gnativevolumemonitor.h \
344 gsimpleasyncresult.h \
346 gsocketaddressenumerator.h \
347 gsocketconnectable.h \
355 gioincludedir=$(includedir)/glib-2.0/gio/
356 gioinclude_HEADERS = \
360 # these sources (also mentioned above) are generated.
373 gioenumtypes.h.template \
374 gioenumtypes.c.template \
385 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
386 ( top_builddir=`cd $(top_builddir) && pwd`; \
387 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
388 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
390 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
391 ( top_builddir=`cd $(top_builddir) && pwd`; \
392 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
393 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
395 gio-2.0.lib: libgio-2.0.la gio.def
396 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@