Allow configuration of gio-module-dir
[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         $(NULL)
85
86 giounixincludedir=$(includedir)/gio-unix-2.0/gio
87 giounixinclude_HEADERS = \
88         gunixmounts.h           \
89         $(NULL)
90 endif
91
92 if OS_WIN32
93 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
94 platform_libadd += -lshlwapi
95 endif
96
97 libgio_2_0_la_SOURCES =         \
98         gappinfo.c              \
99         gasynchelper.c          \
100         gasynchelper.h          \
101         gasyncresult.c          \
102         gbufferedinputstream.c  \
103         gbufferedoutputstream.c \
104         gcancellable.c          \
105         gcontenttype.c          \
106         gcontenttypeprivate.h   \
107         gdatainputstream.c      \
108         gdataoutputstream.c     \
109         gdirectorymonitor.c     \
110         gdrive.c                \
111         gdriveprivate.h         \
112         gdummyfile.h            \
113         gdummyfile.c            \
114         gfile.c                 \
115         gfileattribute.c        \
116         gfileenumerator.c       \
117         gfileicon.c             \
118         gfileinfo.c             \
119         gfileinputstream.c      \
120         gfilemonitor.c          \
121         gfilenamecompleter.c    \
122         gfileoutputstream.c     \
123         gfilterinputstream.c    \
124         gfilteroutputstream.c   \
125         gicon.c                 \
126         ginputstream.c          \
127         gioerror.c              \
128         giomodule.c             \
129         gioscheduler.c          \
130         gloadableicon.c         \
131         gmemoryinputstream.c    \
132         gmemoryoutputstream.c   \
133         gmountoperation.c       \
134         gnativevolumemonitor.c  \
135         gnativevolumemonitor.h  \
136         goutputstream.c         \
137         gpollfilemonitor.c      \
138         gpollfilemonitor.h      \
139         gseekable.c             \
140         gsimpleasyncresult.c    \
141         gsocketinputstream.c    \
142         gsocketoutputstream.c   \
143         gthemedicon.c           \
144         gunionvolumemonitor.c   \
145         gunionvolumemonitor.h   \
146         gurifuncs.c             \
147         gvfs.c                  \
148         gvolume.c               \
149         gvolumemonitor.c        \
150         gvolumeprivate.h        \
151         $(appinfo_sources)      \
152         $(unix_sources)         \
153         $(local_sources)        \
154         $(marshal_sources)      \
155         $(NULL)
156
157 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
158
159 libgio_2_0_la_LIBADD = \
160         $(top_builddir)/glib/libglib-2.0.la             \
161         $(top_builddir)/gobject/libgobject-2.0.la       \
162         $(top_builddir)/gmodule/libgmodule-2.0.la       \
163         $(platform_libadd)                              \
164         $(SELINUX_LIBS)                                 \
165         $(GLIB_LIBS)                                    \
166         $(XATTR_LIBS)                                   \
167         $(NULL)
168
169 if OS_WIN32
170 no_undefined = -no-undefined
171 endif
172
173 libgio_2_0_la_LDFLAGS= -export-dynamic $(no_undefined) -export-symbols-regex '^g_.*'
174
175 gioincludedir=$(includedir)/glib-2.0/gio/
176 gioinclude_HEADERS = \
177         gappinfo.h              \
178         gasyncresult.h          \
179         gbufferedinputstream.h  \
180         gbufferedoutputstream.h \
181         gcancellable.h          \
182         gcontenttype.h          \
183         gdatainputstream.h      \
184         gdataoutputstream.h     \
185         gdirectorymonitor.h     \
186         gdrive.h                \
187         gfile.h                 \
188         gfileattribute.h        \
189         gfileenumerator.h       \
190         gfileicon.h             \
191         gfileinfo.h             \
192         gfileinputstream.h      \
193         gfilemonitor.h          \
194         gfilenamecompleter.h    \
195         gfileoutputstream.h     \
196         gfilterinputstream.h    \
197         gfilteroutputstream.h   \
198         gicon.h                 \
199         ginputstream.h          \
200         gio.h                   \
201         gioerror.h              \
202         giomodule.h             \
203         gioscheduler.h          \
204         gloadableicon.h         \
205         gmemoryinputstream.h    \
206         gmemoryoutputstream.h   \
207         gmountoperation.h       \
208         goutputstream.h         \
209         gseekable.h             \
210         gsimpleasyncresult.h    \
211         gsocketinputstream.h    \
212         gsocketoutputstream.h   \
213         gthemedicon.h           \
214         gurifuncs.h             \
215         gvfs.h                  \
216         gvolume.h               \
217         gvolumemonitor.h        \
218         $(NULL)
219
220 EXTRA_DIST =                    \
221         gio-marshal.list        \
222         $(NULL)
223
224 CLEANFILES =                    \
225         $(marshal_sources)      \
226         $(NULL)