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