[start of port to win32/msvc] HAVE_UNIST_H and _pipe() only include
[platform/upstream/glib.git] / gio / makefile.msc
1 # autogenerated from automake.am with automake.py
2 TOP = ..\..
3 PRJ_TOP = ..
4 PACKAGE = gio
5 PKG_VER = 2.0
6 !INCLUDE $(TOP)\glib\build\win32\make.msc
7
8 # SUBDIRS = fam
9
10 sub-all: 
11         for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc sub-one THIS=%d
12
13 sub-one:
14         cd $(THIS)
15         nmake -nologo -f makefile.msc
16         cd ..
17
18 INCLUDES = \
19         -I .. -I ..\glib -I ..\gmodule -I . \
20         $(INTL_CFLAGS)
21
22 DEFINES = \
23         -DG_LOG_DOMAIN=\"GLib-GIO\" \
24         -DGIO_MODULE_DIR=\"$(libdir)/gio/modules\"
25
26 appinfo_sources = \
27         gwin32appinfo.c gwin32appinfo.h
28
29 gio_headers =                   \
30         gappinfo.h              \
31         gasyncresult.h          \
32         gbufferedinputstream.h  \
33         gbufferedoutputstream.h \
34         gcancellable.h          \
35         gcontenttype.h          \
36         gdatainputstream.h      \
37         gdataoutputstream.h     \
38         gdirectorymonitor.h     \
39         gdrive.h                \
40         gfile.h                 \
41         gfileattribute.h        \
42         gfileenumerator.h       \
43         gfileicon.h             \
44         gfileinfo.h             \
45         gfileinputstream.h      \
46         gfilemonitor.h          \
47         gfilenamecompleter.h    \
48         gfileoutputstream.h     \
49         gfilterinputstream.h    \
50         gfilteroutputstream.h   \
51         gicon.h                 \
52         ginputstream.h          \
53         gio.h                   \
54         gioerror.h              \
55         giomodule.h             \
56         gioscheduler.h          \
57         gloadableicon.h         \
58         gmemoryinputstream.h    \
59         gmemoryoutputstream.h   \
60         gmountoperation.h       \
61         goutputstream.h         \
62         gseekable.h             \
63         gsimpleasyncresult.h    \
64         gthemedicon.h           \
65         gvfs.h                  \
66         gvolume.h               \
67         gvolumemonitor.h        \
68         $(NULL)
69
70 OBJECTS = \
71         gappinfo.obj \
72         gasynchelper.obj \
73         gasyncresult.obj \
74         gbufferedinputstream.obj \
75         gbufferedoutputstream.obj \
76         gcancellable.obj \
77         gcontenttype.obj \
78         gdatainputstream.obj \
79         gdataoutputstream.obj \
80         gdirectorymonitor.obj \
81         gdrive.obj \
82         gdummyfile.obj \
83         gfile.obj \
84         gfileattribute.obj \
85         gfileenumerator.obj \
86         gfileicon.obj \
87         gfileinfo.obj \
88         gfileinputstream.obj \
89         gfilemonitor.obj \
90         gfilenamecompleter.obj \
91         gfileoutputstream.obj \
92         gfilterinputstream.obj \
93         gfilteroutputstream.obj \
94         gicon.obj \
95         ginputstream.obj \
96         gioenumtypes.obj \
97         gioerror.obj \
98         giomodule.obj \
99         gioscheduler.obj \
100         gloadableicon.obj \
101         gmemoryinputstream.obj \
102         gmemoryoutputstream.obj \
103         gmountoperation.obj \
104         gnativevolumemonitor.obj \
105         goutputstream.obj \
106         gpollfilemonitor.obj \
107         gseekable.obj \
108         gsimpleasyncresult.obj \
109 #       gsocketinputstream.obj \
110 #       gsocketoutputstream.obj \
111         gthemedicon.obj \
112         gunionvolumemonitor.obj \
113         gvfs.obj \
114         gvolume.obj \
115         gvolumemonitor.obj \
116         \
117         glocalvfs.obj \
118         glocalfile.obj \
119         glocalfileenumerator.obj \
120         glocalfileinfo.obj \
121         glocalfileinputstream.obj \
122         glocalfileoutputstream.obj \
123         gwin32appinfo.obj \
124         \
125         gio-marshal.obj
126
127 libgio_2_0_la_LIBADD = \
128         $(top_builddir)/glib/libglib-2.0.la \
129         $(top_builddir)/gobject/libgobject-2.0.la \
130         $(top_builddir)/gmodule/libgmodule-2.0.la \
131         $(platform_libadd) \
132         $(SELINUX_LIBS) \
133         $(GLIB_LIBS) \
134         $(XATTR_LIBS) \
135         $(NULL)
136
137 unix_sources = \
138         gunixdrive.c \
139         gunixdrive.h \
140         gunixmounts.c \
141         gunixmounts.h \
142         gunixvolume.c \
143         gunixvolume.h \
144         gunixvolumemonitor.c \
145         gunixvolumemonitor.h \
146         $(NULL)
147
148 NULL = \
149         
150
151 libgio_2_0_la_LDFLAG = \
152         -export-dynamic \
153         $(no_undefined) \
154         -export-symbols-regex \
155         '^g_.*'
156
157 giounixincludedi = \
158         $(includedir)/gio-unix-2.0/gio
159
160 platform_libadd = \
161         -lshlwapi
162
163 marshal_sources = \
164         gio-marshal.h gio-marshal.c $(NULL)
165
166 gioincludedi = \
167         $(includedir)/glib-2.0/gio/
168
169 EXTRA_DIST = \
170         gio-marshal.list $(NULL)
171
172 CLEANFILES = \
173         $(marshal_sources) $(NULL)
174
175 no_undefined = \
176         -no-undefined
177
178 giounixinclude_HEADERS = \
179         gunixmounts.h $(NULL)
180
181 GLIB_GEN_MARSHAL = ..\gobject\glib-genmarshal.exe 
182
183 gio-marshal.h: gio-marshal.list
184         $(GLIB_GEN_MARSHAL) --prefix=_gio_marshal gio-marshal.list --header >> xgen-gwmh \
185         && copy /y xgen-gwmh gio-marshal.h \
186         && del xgen-gwmh xgen-gwmh~
187
188 gio-marshal.c: gio-marshal.h
189         echo #include "gio-marshal.h" >> xgen-gwmc \
190         && $(GLIB_GEN_MARSHAL) --prefix=_gio_marshal gio-marshal.list --body >> xgen-gwmc \
191         && copy xgen-gwmc gio-marshal.c \
192         && del xgen-gwmc xgen-gwmc~
193
194 local_sources = \
195         glocaldirectorymonitor.c \
196         glocaldirectorymonitor.h \
197         glocalfile.c \
198         glocalfile.h \
199         glocalfileenumerator.c \
200         glocalfileenumerator.h \
201         glocalfileinfo.c \
202         glocalfileinfo.h \
203         glocalfileinputstream.c \
204         glocalfileinputstream.h \
205         glocalfilemonitor.c \
206         glocalfilemonitor.h \
207         glocalfileoutputstream.c \
208         glocalfileoutputstream.h \
209         glocalvfs.c \
210         glocalvfs.h \
211         $(NULL)
212
213 all : \
214         $(PRJ_TOP)\config.h \
215         gioalias.h              \
216         gioaliasdef.c           \
217         gio-marshal.c \
218         gioenumtypes.h          \
219         gioenumtypes.c          \
220         libgio-$(PKG_VER).dll
221
222
223 $(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
224         copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
225
226 gioalias.h: gio.symbols
227         perl ..\glib\makegalias.pl < gio.symbols > gioalias.h
228
229 gioaliasdef.c: gio.symbols
230           perl ..\glib\makegalias.pl -def < gio.symbols > gioaliasdef.c
231
232 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
233         $(PERL) ..\gobject\glib-mkenums --template gioenumtypes.h.template $(gio_headers) > gioenumtypes.h
234         
235 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
236         $(PERL) ..\gobject\glib-mkenums --template gioenumtypes.c.template $(gio_headers) > gioenumtypes.c
237
238 gio.def: gio.symbols
239         echo EXPORTS > gio.def
240         cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DINCLUDE_INTERNAL_SYMBOLS -DALL_FILES \
241                 -DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
242                 -DG_GNUC_PRINTF=;G_GNUC_PRINTF gio.symbols >> gio.def
243
244
245 RESOURCE = $(PACKAGE).res
246
247 libgio-$(PKG_VER).dll : $(OBJECTS) $(PACKAGE).def
248         $(CC) $(CFLAGS) -LD -Felibgio-$(PKG_VER).dll $(OBJECTS) \
249         ..\glib\glib-2.0.lib ..\gobject\gobject-2.0.lib ..\gmodule\gmodule-2.0.lib \
250         $(INTL_LIBS) \
251         user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:$(PACKAGE).def
252
253 .c.obj :
254         $(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<