Add initial TLS (SSL) support to gio
[platform/upstream/glib.git] / gio / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 NULL =
4
5 SUBDIRS=
6
7 if OS_UNIX
8 SUBDIRS += libasyncns xdgmime
9 endif
10
11 if OS_WIN32_AND_DLL_COMPILATION
12 if MS_LIB_AVAILABLE
13 noinst_DATA = gio-2.0.lib
14
15 install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
16 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
17 endif
18 endif
19
20 install-ms-lib:
21         $(install_ms_lib_cmd)
22
23 uninstall-ms-lib:
24         $(uninstall_ms_lib_cmd)
25
26 gio.def: gio.symbols
27         $(AM_V_GEN) (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
29
30 if OS_LINUX
31 if HAVE_GNUC_VISIBILITY
32 TESTS = abicheck.sh
33 endif
34 endif
35
36 if HAVE_THREADS
37 THREAD_FLAGS=-DG_THREADS_MANDATORY
38 endif
39
40 AM_CPPFLAGS = \
41         -DG_LOG_DOMAIN=\"GLib-GIO\"                     \
42         $(gmodule_INCLUDES)                             \
43         $(GLIB_DEBUG_FLAGS)                             \
44         $(THREAD_FLAGS)                                 \
45         -DG_DISABLE_DEPRECATED                          \
46         -DGIO_COMPILATION                               \
47         -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  
48
49 lib_LTLIBRARIES = libgio-2.0.la
50
51 marshal_sources = \
52         gio-marshal.h   \
53         gio-marshal.c   \
54         $(NULL)
55
56 if CROSS_COMPILING
57   glib_genmarshal=$(GLIB_GENMARSHAL)
58 else
59   glib_genmarshal=../gobject/glib-genmarshal
60 endif
61
62 gio-marshal.h: gio-marshal.list
63         $(AM_V_GEN) $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --header --internal > $@.tmp && \
64           mv $@.tmp $@
65
66 gio-marshal.c: gio-marshal.h gio-marshal.list
67         $(AM_V_GEN) (echo "#include \"gio-marshal.h\""; \
68         $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --body --internal) > $@.tmp && \
69           mv $@.tmp $@
70
71 gdbus_headers =                         \
72         gdbusauthobserver.h             \
73         gcredentials.h                  \
74         gdbusutils.h                    \
75         gdbuserror.h                    \
76         gdbusaddress.h                  \
77         gdbusconnection.h               \
78         gdbusmessage.h                  \
79         gdbusnameowning.h               \
80         gdbusnamewatching.h             \
81         gdbusproxy.h                    \
82         gdbusintrospection.h            \
83         gdbusmethodinvocation.h         \
84         gdbusserver.h                   \
85         $(NULL)
86
87 gdbus_sources =                                                         \
88         gdbusutils.h                    gdbusutils.c                    \
89         gdbusaddress.h                  gdbusaddress.c                  \
90         gdbusauthobserver.h             gdbusauthobserver.c             \
91         gdbusauth.h                     gdbusauth.c                     \
92         gdbusauthmechanism.h            gdbusauthmechanism.c            \
93         gdbusauthmechanismanon.h        gdbusauthmechanismanon.c        \
94         gdbusauthmechanismexternal.h    gdbusauthmechanismexternal.c    \
95         gdbusauthmechanismsha1.h        gdbusauthmechanismsha1.c        \
96         gdbuserror.h                    gdbuserror.c                    \
97         gdbusconnection.h               gdbusconnection.c               \
98         gdbusmessage.h                  gdbusmessage.c                  \
99         gdbusnameowning.h               gdbusnameowning.c               \
100         gdbusnamewatching.h             gdbusnamewatching.c             \
101         gdbusproxy.h                    gdbusproxy.c                    \
102         gdbusprivate.h                  gdbusprivate.c                  \
103         gdbusintrospection.h            gdbusintrospection.c            \
104         gdbusmethodinvocation.h         gdbusmethodinvocation.c         \
105         gdbusserver.h                   gdbusserver.c                   \
106         $(NULL)
107
108 settings_headers = \
109         gsettingsbackend.h              \
110         gsettings.h
111
112 settings_sources = \
113         gvdb/gvdb-format.h              \
114         gvdb/gvdb-reader.h              \
115         gvdb/gvdb-reader.c              \
116         gdelayedsettingsbackend.h       \
117         gdelayedsettingsbackend.c       \
118         gkeyfilesettingsbackend.c       \
119         gmemorysettingsbackend.h        \
120         gmemorysettingsbackend.c        \
121         gnullsettingsbackend.h          \
122         gnullsettingsbackend.c          \
123         gsettingsbackendinternal.h      \
124         gsettingsbackend.c              \
125         gsettingsschema.h               \
126         gsettingsschema.c               \
127         gsettings-mapping.h             \
128         gsettings-mapping.c             \
129         gsettings.c
130
131 if OS_WIN32
132 settings_sources += \
133         gregistrysettingsbackend.h      \
134         gregistrysettingsbackend.c
135 endif
136
137 application_headers = \
138         gactiongroup.h                  \
139         gsimpleactiongroup.h            \
140         gaction.h                       \
141         gsimpleaction.h                 \
142         gapplicationcommandline.h       \
143         gapplication.h
144
145 application_sources = \
146         gactiongroup.c                          \
147         gsimpleactiongroup.c                    \
148         gaction.c                               \
149         gsimpleaction.c                         \
150         gapplicationcommandline.c               \
151         gapplicationimpl.h                      \
152         gapplicationimpl-dbus.c                 \
153         gapplication.c
154
155 local_sources = \
156         glocaldirectorymonitor.c        \
157         glocaldirectorymonitor.h        \
158         glocalfile.c                    \
159         glocalfile.h                    \
160         glocalfileenumerator.c          \
161         glocalfileenumerator.h          \
162         glocalfileinfo.c                \
163         glocalfileinfo.h                \
164         glocalfileinputstream.c         \
165         glocalfileinputstream.h         \
166         glocalfilemonitor.c             \
167         glocalfilemonitor.h             \
168         glocalfileoutputstream.c        \
169         glocalfileoutputstream.h        \
170         glocalfileiostream.c            \
171         glocalfileiostream.h            \
172         glocalvfs.c                     \
173         glocalvfs.h                     \
174         gsocks4proxy.c                  \
175         gsocks4proxy.h                  \
176         gsocks4aproxy.c                 \
177         gsocks4aproxy.h                 \
178         gsocks5proxy.c                  \
179         gsocks5proxy.h                  \
180         $(NULL)
181
182 platform_libadd =
183 platform_deps =
184 appinfo_sources =
185
186 if HAVE_INOTIFY
187 SUBDIRS += inotify
188 platform_libadd += inotify/libinotify.la
189 platform_deps += inotify/libinotify.la
190 endif
191
192 if HAVE_FEN
193 AM_CPPFLAGS += -DHAVE_FEN
194 SUBDIRS += fen
195 platform_libadd += fen/libfen.la
196 platform_deps += fen/libfen.la
197 endif
198
199 if OS_WIN32
200 SUBDIRS += win32
201 platform_libadd += win32/libgiowin32.la
202 platform_deps += win32/libgiowin32.la
203 endif
204
205 SUBDIRS += .
206
207 if HAVE_FAM
208 SUBDIRS += fam
209 endif
210
211 if OS_UNIX
212 appinfo_sources += gdesktopappinfo.c
213 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
214 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
215 unix_sources = \
216         gfiledescriptorbased.c  \
217         gunixconnection.c       \
218         gunixcredentialsmessage.c       \
219         gunixfdlist.c           \
220         gunixfdmessage.c        \
221         gunixmount.c            \
222         gunixmount.h            \
223         gunixmounts.c           \
224         gunixresolver.c         \
225         gunixresolver.h         \
226         gunixsocketaddress.c    \
227         gunixvolume.c           \
228         gunixvolume.h           \
229         gunixvolumemonitor.c    \
230         gunixvolumemonitor.h    \
231         gunixinputstream.c      \
232         gunixoutputstream.c     \
233         $(NULL)
234
235
236 giounixincludedir=$(includedir)/gio-unix-2.0/gio
237 giounixinclude_HEADERS = \
238         gdesktopappinfo.h       \
239         gfiledescriptorbased.h  \
240         gunixconnection.h       \
241         gunixcredentialsmessage.h       \
242         gunixmounts.h           \
243         gunixfdlist.h           \
244         gunixfdmessage.h        \
245         gunixinputstream.h      \
246         gunixoutputstream.h     \
247         gunixsocketaddress.h    \
248         $(NULL)
249 endif
250
251 win32_actual_sources = \
252         gwin32mount.c \
253         gwin32mount.h \
254         gwin32resolver.c \
255         gwin32resolver.h \
256         gwin32volumemonitor.c \
257         gwin32volumemonitor.h \
258         gwin32inputstream.c \
259         gwin32outputstream.c \
260         gwin32outputstream.h \
261         $(NULL)
262
263 win32_more_sources_for_vcproj = \
264         gwin32appinfo.c \
265         win32/gwin32directorymonitor.c \
266         win32/gwinhttpfile.c \
267         win32/gwinhttpfileinputstream.c \
268         win32/gwinhttpfileoutputstream.c \
269         win32/gwinhttpvfs.c
270
271 if OS_WIN32
272 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
273 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
274 win32_sources = $(win32_actual_sources)
275
276 giowin32includedir=$(includedir)/gio-win32-2.0/gio
277 giowin32include_HEADERS = \
278         gwin32inputstream.h \
279         gwin32outputstream.h \
280         $(NULL)
281
282 endif
283
284 SUBDIRS += tests
285
286 libgio_2_0_la_SOURCES =         \
287         gappinfo.c              \
288         gasynchelper.c          \
289         gasynchelper.h          \
290         gasyncinitable.c        \
291         gasyncresult.c          \
292         gbufferedinputstream.c  \
293         gbufferedoutputstream.c \
294         gcancellable.c          \
295         gcontenttype.c          \
296         gcontenttypeprivate.h   \
297         gcharsetconverter.c     \
298         gconverter.c            \
299         gconverterinputstream.c \
300         gconverteroutputstream.c        \
301         gcredentials.c          \
302         gdatainputstream.c      \
303         gdataoutputstream.c     \
304         gdrive.c                \
305         gdummyfile.h            \
306         gdummyfile.c            \
307         gdummyproxyresolver.c   \
308         gdummyproxyresolver.h   \
309         gdummytlsbackend.c      \
310         gdummytlsbackend.h      \
311         gemblem.h               \
312         gemblem.c               \
313         gemblemedicon.h         \
314         gemblemedicon.c         \
315         gfile.c                 \
316         gfileattribute.c        \
317         gfileattribute-priv.h   \
318         gfileenumerator.c       \
319         gfileicon.c             \
320         gfileinfo.c             \
321         gfileinfo-priv.h        \
322         gfileinputstream.c      \
323         gfilemonitor.c          \
324         gfilenamecompleter.c    \
325         gfileoutputstream.c     \
326         gfileiostream.c         \
327         gfilterinputstream.c    \
328         gfilteroutputstream.c   \
329         gicon.c                 \
330         ginetaddress.c          \
331         ginetsocketaddress.c    \
332         ginitable.c             \
333         ginputstream.c          \
334         gioenums.h              \
335         gioerror.c              \
336         giomodule.c             \
337         giomodule-priv.h        \
338         gioscheduler.c          \
339         giostream.c             \
340         gloadableicon.c         \
341         gmount.c                \
342         gmemoryinputstream.c    \
343         gmemoryoutputstream.c   \
344         gmountoperation.c       \
345         gnativevolumemonitor.c  \
346         gnativevolumemonitor.h  \
347         gnetworkaddress.c       \
348         gnetworkingprivate.h    \
349         gnetworkservice.c       \
350         goutputstream.c         \
351         gperiodic.c             \
352         gpermission.c           \
353         gpollableinputstream.c  \
354         gpollableoutputstream.c \
355         gpollfilemonitor.c      \
356         gpollfilemonitor.h      \
357         gproxyresolver.c        \
358         gresolver.c             \
359         gseekable.c             \
360         gsimpleasyncresult.c    \
361         gsimplepermission.c     \
362         gsocket.c               \
363         gsocketaddress.c        \
364         gsocketaddressenumerator.c \
365         gsocketclient.c         \
366         gsocketconnectable.c    \
367         gsocketconnection.c     \
368         gsocketcontrolmessage.c \
369         gsocketinputstream.c    \
370         gsocketinputstream.h    \
371         gsocketlistener.c       \
372         gsocketoutputstream.c   \
373         gsocketoutputstream.h   \
374         gproxy.c                \
375         gproxyaddress.c         \
376         gproxyaddressenumerator.c \
377         gsocketservice.c        \
378         gsrvtarget.c            \
379         gtcpconnection.c        \
380         gtcpwrapperconnection.c \
381         gthreadedsocketservice.c\
382         gthemedicon.c           \
383         gthreadedresolver.c     \
384         gthreadedresolver.h     \
385         gtlsbackend.c           \
386         gtlscertificate.c       \
387         gtlsclientconnection.c  \
388         gtlsconnection.c        \
389         gtlsserverconnection.c  \
390         gunionvolumemonitor.c   \
391         gunionvolumemonitor.h   \
392         gvfs.c                  \
393         gvolume.c               \
394         gvolumemonitor.c        \
395         gzlibcompressor.c       \
396         gzlibdecompressor.c     \
397         gmountprivate.h         \
398         gioenumtypes.h          \
399         gioenumtypes.c          \
400         $(appinfo_sources)      \
401         $(unix_sources)         \
402         $(win32_sources)        \
403         $(application_sources)  \
404         $(settings_sources)     \
405         $(gdbus_sources)        \
406         $(local_sources)        \
407         $(marshal_sources)      \
408         $(NULL)
409
410 EXTRA_DIST += strinfo.c
411
412 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
413
414 libgio_2_0_la_LIBADD = \
415         $(top_builddir)/glib/libglib-2.0.la             \
416         $(top_builddir)/gobject/libgobject-2.0.la       \
417         $(top_builddir)/gmodule/libgmodule-2.0.la       \
418         $(platform_libadd)                              \
419         $(ZLIB_LIBS)                                    \
420         $(SELINUX_LIBS)                                 \
421         $(GLIB_LIBS)                                    \
422         $(XATTR_LIBS)                                   \
423         $(NULL)
424
425 if PLATFORM_WIN32
426 no_undefined = -no-undefined
427 endif
428
429 if OS_WIN32_AND_DLL_COMPILATION
430 export_symbols = -export-symbols gio.def
431 gio_def = gio.def
432
433 gio_win32_res = gio-win32-res.o
434 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
435
436 install-def-file:
437         $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
438
439 uninstall-def-file:
440         -rm $(DESTDIR)$(libdir)/gio-2.0.def
441 else
442 install-def-file:
443 uninstall-def-file:
444
445 export_symbols = -export-symbols-regex '^g_.*'
446 endif
447
448 install-data-local: install-ms-lib install-def-file
449         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
450
451 uninstall-local: uninstall-ms-lib uninstall-def-file
452
453 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
454         $(gio_win32_res_ldflag) \
455         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
456         -export-dynamic $(no_undefined) $(export_symbols)
457
458 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
459
460 gio-win32-res.o: gio.rc
461         $(WINDRES) gio.rc $@
462
463 gio_headers =                   \
464         gappinfo.h              \
465         gasyncinitable.h        \
466         gasyncresult.h          \
467         gbufferedinputstream.h  \
468         gbufferedoutputstream.h \
469         gcancellable.h          \
470         gcontenttype.h          \
471         gcharsetconverter.h     \
472         gconverter.h            \
473         gconverterinputstream.h \
474         gconverteroutputstream.h        \
475         gdatainputstream.h      \
476         gdataoutputstream.h     \
477         gdrive.h                \
478         gemblem.h               \
479         gemblemedicon.h         \
480         gfile.h                 \
481         gfileattribute.h        \
482         gfileenumerator.h       \
483         gfileicon.h             \
484         gfileinfo.h             \
485         gfileinputstream.h      \
486         gfilemonitor.h          \
487         gfilenamecompleter.h    \
488         gfileoutputstream.h     \
489         gfileiostream.h         \
490         gfilterinputstream.h    \
491         gfilteroutputstream.h   \
492         gicon.h                 \
493         ginetaddress.h          \
494         ginetsocketaddress.h    \
495         ginputstream.h          \
496         ginitable.h             \
497         gio.h                   \
498         giotypes.h              \
499         gioenums.h              \
500         gioerror.h              \
501         giomodule.h             \
502         gioscheduler.h          \
503         giostream.h             \
504         gloadableicon.h         \
505         gmount.h                \
506         gmemoryinputstream.h    \
507         gmemoryoutputstream.h   \
508         gmountoperation.h       \
509         gnativevolumemonitor.h  \
510         gnetworkaddress.h       \
511         gnetworkservice.h       \
512         goutputstream.h         \
513         gperiodic.h             \
514         gpermission.h           \
515         gpollableinputstream.h  \
516         gpollableoutputstream.h \
517         gproxyaddress.h         \
518         gproxy.h                \
519         gproxyaddressenumerator.h \
520         gproxyresolver.h        \
521         gresolver.h             \
522         gseekable.h             \
523         gsimpleasyncresult.h    \
524         gsimplepermission.h     \
525         gsocket.h               \
526         gsocketaddress.h        \
527         gsocketaddressenumerator.h \
528         gsocketclient.h         \
529         gsocketconnectable.h    \
530         gsocketconnection.h     \
531         gsocketcontrolmessage.h \
532         gsocketlistener.h       \
533         gsocketservice.h        \
534         gsrvtarget.h            \
535         gtcpconnection.h        \
536         gtcpwrapperconnection.h \
537         gthreadedsocketservice.h\
538         gthemedicon.h           \
539         gtlsbackend.h           \
540         gtlscertificate.h       \
541         gtlsclientconnection.h  \
542         gtlsconnection.h        \
543         gtlsserverconnection.h  \
544         gvfs.h                  \
545         gvolume.h               \
546         gvolumemonitor.h        \
547         gzlibcompressor.h       \
548         gzlibdecompressor.h     \
549         $(application_headers)  \
550         $(settings_headers)     \
551         $(gdbus_headers)        \
552         $(NULL)
553
554 gioincludedir=$(includedir)/glib-2.0/gio/
555 gioinclude_HEADERS =            \
556         $(gio_headers)          \
557         gioenumtypes.h
558
559 # these sources (also mentioned above) are generated.
560 BUILT_SOURCES =                 \
561         gio-marshal.h           \
562         gio-marshal.c           \
563         gioenumtypes.h          \
564         gioenumtypes.c          \
565         $(NULL)
566
567 EXTRA_DIST +=                   \
568         gio-marshal.list        \
569         gio.symbols             \
570         gioenumtypes.h.template \
571         gioenumtypes.c.template \
572         makefile.msc            \
573         abicheck.sh             \
574         gio.rc.in               \
575         gschema.dtd             \
576         $(NULL)
577
578 BUILT_EXTRA_DIST =              \
579         gio.rc
580
581 CLEANFILES =                    \
582         $(marshal_sources)      \
583         $(NULL)
584
585 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
586         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
587           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
588             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
589
590 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
591         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
592           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
593             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
594
595 gio-2.0.lib: libgio-2.0.la gio.def
596         lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
597
598 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
599
600 gio_querymodules_SOURCES = gio-querymodules.c
601 gio_querymodules_LDADD   = \
602         $(top_builddir)/glib/libglib-2.0.la             \
603         $(top_builddir)/gobject/libgobject-2.0.la       \
604         $(top_builddir)/gmodule/libgmodule-2.0.la       \
605         libgio-2.0.la                                   \
606         $(NULL)
607
608 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
609 glib_compile_schemas_SOURCES = \
610         gvdb/gvdb-format.h              \
611         gvdb/gvdb-builder.h             \
612         gvdb/gvdb-builder.c             \
613         glib-compile-schemas.c
614
615 gsettings_LDADD = \
616         $(top_builddir)/glib/libglib-2.0.la             \
617         $(top_builddir)/gobject/libgobject-2.0.la       \
618         libgio-2.0.la
619 gsettings_SOURCES = gsettings-tool.c
620
621 schemadir = $(datadir)/glib-2.0/schemas
622 dist_schema_DATA = gschema.dtd
623
624 # ------------------------------------------------------------------------
625 # gdbus(1) tool
626
627 bin_PROGRAMS += gdbus
628 gdbus_SOURCES = gdbus-tool.c
629 gdbus_LDADD = libgio-2.0.la \
630         $(top_builddir)/glib/libglib-2.0.la             \
631         $(top_builddir)/gobject/libgobject-2.0.la
632
633 completiondir = $(sysconfdir)/bash_completion.d
634 completion_SCRIPTS = \
635         gdbus-bash-completion.sh                \
636         gsettings-bash-completion.sh
637 EXTRA_DIST += $(completion_SCRIPTS)
638
639 # ------------------------------------------------------------------------
640
641 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
642         files='$(BUILT_EXTRA_DIST)'; \
643         for f in $$files; do \
644           if test -f $$f; then d=.; else d=$(srcdir); fi; \
645           cp $$d/$$f $(distdir) || exit 1; done
646
647 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
648         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
649                 case $$F in \
650                 gunix*.c|gdesktopappinfo.c) ;; \
651                 *.c) echo '   <File RelativePath="..\..\..\gio\'$$F'" />' \
652                      ;; \
653                 esac; \
654         done | sort -u >libgio.sourcefiles
655         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
656         rm libgio.sourcefiles
657
658 if HAVE_GLIB_RUNTIME_LIBDIR
659 install-data-hook:
660         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
661         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
662         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
663         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
664         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
665 endif