Added. Added. Added. Added.
[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 += xdgmime
9 endif
10
11 gio.def: gio.symbols
12         (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gobject.symbols | sed -e '/^$$/d' -e 's/^/     /' -e 's/G_GNUC_[^ ]*//g' | sort) > gobject.def
13
14 gioalias.h: gio.symbols
15         $(PERL) $(srcdir)/makegioalias.pl < $(srcdir)/gio.symbols > gioalias.h
16
17 gioaliasdef.c: gio.symbols
18         $(PERL) $(srcdir)/makegioalias.pl -def < $(srcdir)/gio.symbols > gioaliasdef.c
19
20 if OS_LINUX
21 if HAVE_GNUC_VISIBILITY
22 TESTS = abicheck.sh pltcheck.sh
23 endif
24 endif
25
26 AM_CPPFLAGS = \
27         -DG_LOG_DOMAIN=\"GLib-GIO\"                     \
28         -I$(top_builddir)                               \
29         -I$(top_srcdir)                                 \
30         -I$(top_srcdir)/glib                            \
31         -I$(top_srcdir)/gmodule                         \
32         $(GLIB_DEBUG_FLAGS)                             \
33         -DG_DISABLE_DEPRECATED                          \
34         -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  
35
36 lib_LTLIBRARIES = libgio-2.0.la
37
38 marshal_sources = \
39         gio-marshal.h   \
40         gio-marshal.c   \
41         makegioalias.pl \
42         $(NULL)
43
44 if CROSS_COMPILING
45   glib_genmarshal=$(GLIB_GENMARSHAL)
46 else
47   glib_genmarshal=../gobject/glib-genmarshal
48 endif
49
50 gio-marshal.h: gio-marshal.list
51         $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --header > $@
52
53 gio-marshal.c: gio-marshal.h gio-marshal.list
54         (echo "#include \"gio-marshal.h\""; \
55         $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --body) > $@
56
57 local_sources = \
58         glocaldirectorymonitor.c        \
59         glocaldirectorymonitor.h        \
60         glocalfile.c                    \
61         glocalfile.h                    \
62         glocalfileenumerator.c          \
63         glocalfileenumerator.h          \
64         glocalfileinfo.c                \
65         glocalfileinfo.h                \
66         glocalfileinputstream.c         \
67         glocalfileinputstream.h         \
68         glocalfilemonitor.c             \
69         glocalfilemonitor.h             \
70         glocalfileoutputstream.c        \
71         glocalfileoutputstream.h        \
72         glocalvfs.c                     \
73         glocalvfs.h                     \
74         $(NULL)
75
76 platform_libadd =
77 appinfo_sources =
78
79 if HAVE_INOTIFY
80 SUBDIRS += inotify
81 platform_libadd += inotify/libinotify.la
82 endif
83
84 SUBDIRS += .
85
86 if HAVE_FAM
87 SUBDIRS += fam
88 endif
89
90 if OS_UNIX
91 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
92 platform_libadd += xdgmime/libxdgmime.la
93 unix_sources = \
94         gunixdrive.c            \
95         gunixdrive.h            \
96         gunixmounts.c           \
97         gunixmounts.h           \
98         gunixvolume.c           \
99         gunixvolume.h           \
100         gunixvolumemonitor.c    \
101         gunixvolumemonitor.h    \
102         gunixinputstream.c      \
103         gunixoutputstream.c     \
104         $(NULL)
105
106 giounixincludedir=$(includedir)/gio-unix-2.0/gio
107 giounixinclude_HEADERS = \
108         gunixmounts.h           \
109         gunixinputstream.h      \
110         gunixoutputstream.h     \
111         $(NULL)
112 endif
113
114 if OS_WIN32
115 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
116 platform_libadd += -lshlwapi
117 endif
118
119 libgio_2_0_la_SOURCES =         \
120         gappinfo.c              \
121         gasynchelper.c          \
122         gasynchelper.h          \
123         gasyncresult.c          \
124         gbufferedinputstream.c  \
125         gbufferedoutputstream.c \
126         gcancellable.c          \
127         gcontenttype.c          \
128         gcontenttypeprivate.h   \
129         gdatainputstream.c      \
130         gdataoutputstream.c     \
131         gdirectorymonitor.c     \
132         gdrive.c                \
133         gdriveprivate.h         \
134         gdummyfile.h            \
135         gdummyfile.c            \
136         gfile.c                 \
137         gfileattribute.c        \
138         gfileenumerator.c       \
139         gfileicon.c             \
140         gfileinfo.c             \
141         gfileinputstream.c      \
142         gfilemonitor.c          \
143         gfilenamecompleter.c    \
144         gfileoutputstream.c     \
145         gfilterinputstream.c    \
146         gfilteroutputstream.c   \
147         gicon.c                 \
148         ginputstream.c          \
149         gioerror.c              \
150         giomodule.c             \
151         gioscheduler.c          \
152         gloadableicon.c         \
153         gmemoryinputstream.c    \
154         gmemoryoutputstream.c   \
155         gmountoperation.c       \
156         gnativevolumemonitor.c  \
157         gnativevolumemonitor.h  \
158         goutputstream.c         \
159         gpollfilemonitor.c      \
160         gpollfilemonitor.h      \
161         gseekable.c             \
162         gsimpleasyncresult.c    \
163         gthemedicon.c           \
164         gunionvolumemonitor.c   \
165         gunionvolumemonitor.h   \
166         gvfs.c                  \
167         gvolume.c               \
168         gvolumemonitor.c        \
169         gvolumeprivate.h        \
170         $(appinfo_sources)      \
171         $(unix_sources)         \
172         $(local_sources)        \
173         $(marshal_sources)      \
174         $(NULL)
175
176 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
177
178 libgio_2_0_la_LIBADD = \
179         $(top_builddir)/glib/libglib-2.0.la             \
180         $(top_builddir)/gobject/libgobject-2.0.la       \
181         $(top_builddir)/gmodule/libgmodule-2.0.la       \
182         $(platform_libadd)                              \
183         $(SELINUX_LIBS)                                 \
184         $(GLIB_LIBS)                                    \
185         $(XATTR_LIBS)                                   \
186         $(NULL)
187
188 if OS_WIN32
189 no_undefined = -no-undefined
190 endif
191
192 libgio_2_0_la_LDFLAGS= -export-dynamic $(no_undefined) -export-symbols-regex '^g_.*'
193
194 gioincludedir=$(includedir)/glib-2.0/gio/
195 gioinclude_HEADERS = \
196         gappinfo.h              \
197         gasyncresult.h          \
198         gbufferedinputstream.h  \
199         gbufferedoutputstream.h \
200         gcancellable.h          \
201         gcontenttype.h          \
202         gdatainputstream.h      \
203         gdataoutputstream.h     \
204         gdirectorymonitor.h     \
205         gdrive.h                \
206         gfile.h                 \
207         gfileattribute.h        \
208         gfileenumerator.h       \
209         gfileicon.h             \
210         gfileinfo.h             \
211         gfileinputstream.h      \
212         gfilemonitor.h          \
213         gfilenamecompleter.h    \
214         gfileoutputstream.h     \
215         gfilterinputstream.h    \
216         gfilteroutputstream.h   \
217         gicon.h                 \
218         ginputstream.h          \
219         gio.h                   \
220         gioerror.h              \
221         giomodule.h             \
222         gioscheduler.h          \
223         gloadableicon.h         \
224         gmemoryinputstream.h    \
225         gmemoryoutputstream.h   \
226         gmountoperation.h       \
227         goutputstream.h         \
228         gseekable.h             \
229         gsimpleasyncresult.h    \
230         gthemedicon.h           \
231         gvfs.h                  \
232         gvolume.h               \
233         gvolumemonitor.h        \
234         $(NULL)
235
236
237 # these sources (also mentioned above) are generated.
238 BUILT_SOURCES = gio-marshal.h gio-marshal.c gioalias.h gioaliasdef.c
239
240 EXTRA_DIST =                    \
241         gio-marshal.list        \
242         gio.symbols             \
243         $(NULL)
244
245 CLEANFILES =                    \
246         $(marshal_sources)      \
247         $(NULL)