Trivial formatting fixes
[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 = win32
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         -FImsvc_recommended_pragmas.h \
20         -I .. -I ..\glib -I ..\gmodule -I . \
21         $(INTL_CFLAGS)
22
23 DEFINES = \
24         -DG_LOG_DOMAIN=\"GLib-GIO\" \
25         -DGIO_MODULE_DIR=\"$(libdir)/gio/modules\" \
26         -DGIO_COMPILATION
27
28 appinfo_sources = \
29         gwin32appinfo.c gwin32appinfo.h
30
31 gio_headers =                   \
32         gappinfo.h              \
33         gasyncresult.h          \
34         gbufferedinputstream.h  \
35         gbufferedoutputstream.h \
36         gcancellable.h          \
37         gcontenttype.h          \
38         gdatainputstream.h      \
39         gdataoutputstream.h     \
40         gdrive.h                \
41         gemblem.h               \
42         gemblemedicon.h         \
43         gfile.h                 \
44         gfileattribute.h        \
45         gfileenumerator.h       \
46         gfileicon.h             \
47         gfileinfo.h             \
48         gfileinputstream.h      \
49         gfilemonitor.h          \
50         gfilenamecompleter.h    \
51         gfileoutputstream.h     \
52         gfilterinputstream.h    \
53         gfilteroutputstream.h   \
54         gicon.h                 \
55         ginputstream.h          \
56         gio.h                   \
57         giotypes.h              \
58         gioenums.h              \
59         gioerror.h              \
60         giomodule.h             \
61         gioscheduler.h          \
62         gloadableicon.h         \
63         gmount.h                \
64         gmemoryinputstream.h    \
65         gmemoryoutputstream.h   \
66         gmountoperation.h       \
67         gnativevolumemonitor.h  \
68         goutputstream.h         \
69         gseekable.h             \
70         gsimpleasyncresult.h    \
71         gthemedicon.h           \
72         gvfs.h                  \
73         gvolume.h               \
74         gvolumemonitor.h        \
75         $(NULL)
76
77 OBJECTS = \
78         gappinfo.obj \
79         gasynchelper.obj \
80         gasyncinitable.obj \
81         gasyncresult.obj \
82         gbufferedinputstream.obj \
83         gbufferedoutputstream.obj \
84         gcancellable.obj \
85         gcontenttype.obj \
86         gdatainputstream.obj \
87         gdataoutputstream.obj \
88 #       gdesktopappinfo.obj \
89         gdrive.obj \
90         gdummyfile.obj \
91         gemblem.obj \
92         gemblemedicon.obj \
93         gfile.obj \
94         gfileattribute.obj \
95         gfileenumerator.obj \
96         gfileicon.obj \
97         gfileinfo.obj \
98         gfileinputstream.obj \
99         gfileiostream.obj \
100         gfilemonitor.obj \
101         gfilenamecompleter.obj \
102         gfileoutputstream.obj \
103         gfilterinputstream.obj \
104         gfilteroutputstream.obj \
105         gicon.obj \
106         ginetaddress.obj \
107         ginetsocketaddress.obj \
108         ginitable.obj \
109         ginputstream.obj \
110         gioenumtypes.obj \
111         gioerror.obj \
112         giomodule.obj \
113         gioscheduler.obj \
114         giostream.obj \
115         gloadableicon.obj \
116         glocalfileiostream.obj \
117         gmemoryinputstream.obj \
118         gmemoryoutputstream.obj \
119         gmount.obj \
120         gmountoperation.obj \
121         gnativevolumemonitor.obj \
122         gnetworkaddress.obj \
123         gnetworkservice.obj \
124         goutputstream.obj \
125         gpollfilemonitor.obj \
126         gresolver.obj \
127         gseekable.obj \
128         gsimpleasyncresult.obj \
129         gsocket.obj \
130         gsocketaddress.obj \
131         gsocketaddressenumerator.obj \
132         gsocketclient.obj \
133         gsocketconnectable.obj \
134         gsocketconnection.obj \
135         gsocketcontrolmessage.obj \
136         gsocketlistener.obj \
137         gsocketservice.obj \
138         gsocketinputstream.obj \
139         gsocketoutputstream.obj \
140         gsrvtarget.obj \
141         gtcpconnection.obj \
142         gthreadedresolver.obj \
143         gthreadedsocketservice.obj \
144         gthemedicon.obj \
145         gunionvolumemonitor.obj \
146         gvfs.obj \
147         gvolume.obj \
148         gvolumemonitor.obj \
149         \
150         glocalvfs.obj \
151         glocalfile.obj \
152         glocalfileenumerator.obj \
153         glocalfileinfo.obj \
154         glocalfileinputstream.obj \
155         glocalfileoutputstream.obj \
156         glocalfilemonitor.obj \
157         glocaldirectorymonitor.obj \
158         gwin32appinfo.obj \
159         \
160         gio-marshal.obj \
161         gwin32mount.obj \
162         gwin32volumemonitor.obj \
163         gwin32resolver.obj 
164
165 libgio_2_0_la_LIBADD = \
166         $(top_builddir)/glib/libglib-2.0.la \
167         $(top_builddir)/gobject/libgobject-2.0.la \
168         $(top_builddir)/gmodule/libgmodule-2.0.la \
169         $(platform_libadd) \
170         $(SELINUX_LIBS) \
171         $(GLIB_LIBS) \
172         $(XATTR_LIBS) \
173         $(NULL)
174
175 unix_sources = \
176         gunixdrive.c \
177         gunixdrive.h \
178         gunixmounts.c \
179         gunixmounts.h \
180         gunixvolume.c \
181         gunixvolume.h \
182         gunixvolumemonitor.c \
183         gunixvolumemonitor.h \
184         $(NULL)
185
186 marshal_sources = \
187         gio-marshal.h gio-marshal.c $(NULL)
188
189 GLIB_GEN_MARSHAL = ..\gobject\glib-genmarshal.exe 
190
191 gio-marshal.h: gio-marshal.list
192         $(GLIB_GEN_MARSHAL) --prefix=_gio_marshal gio-marshal.list --header >> xgen-gwmh \
193         && copy /y xgen-gwmh gio-marshal.h \
194         && del xgen-gwmh xgen-gwmh~
195
196 gio-marshal.c: gio-marshal.h
197         echo #include "gio-marshal.h" >> xgen-gwmc \
198         && $(GLIB_GEN_MARSHAL) --prefix=_gio_marshal gio-marshal.list --body >> xgen-gwmc \
199         && copy xgen-gwmc gio-marshal.c \
200         && del xgen-gwmc xgen-gwmc~
201
202 local_sources = \
203         glocaldirectorymonitor.c \
204         glocaldirectorymonitor.h \
205         glocalfile.c \
206         glocalfile.h \
207         glocalfileenumerator.c \
208         glocalfileenumerator.h \
209         glocalfileinfo.c \
210         glocalfileinfo.h \
211         glocalfileinputstream.c \
212         glocalfileinputstream.h \
213         glocalfilemonitor.c \
214         glocalfilemonitor.h \
215         glocalfileoutputstream.c \
216         glocalfileoutputstream.h \
217         glocalvfs.c \
218         glocalvfs.h \
219         $(NULL)
220
221 all : \
222         $(PRJ_TOP)\config.h \
223         sub-all \
224         gio-marshal.c \
225         gioenumtypes.h          \
226         gioenumtypes.c          \
227         libgio-$(PKG_VER)-0.dll
228
229
230 $(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
231         copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
232
233 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
234         $(PERL) ..\gobject\glib-mkenums --template gioenumtypes.h.template $(gio_headers) > gioenumtypes.h
235         
236 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
237         $(PERL) ..\gobject\glib-mkenums --template gioenumtypes.c.template $(gio_headers) > gioenumtypes.c
238
239 gio.def: gio.symbols
240         echo EXPORTS > gio.def
241         cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DINCLUDE_INTERNAL_SYMBOLS -DALL_FILES \
242                 -DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
243                 -DG_GNUC_PRINTF=;G_GNUC_PRINTF gio.symbols >> gio.def
244
245 RESOURCE = $(PACKAGE).res
246
247 $(PACKAGE).res : $(PACKAGE).rc
248         rc -DBUILDNUMBER=0 -r -fo $(PACKAGE).res $(PACKAGE).rc
249
250 libgio-$(PKG_VER)-0.dll : $(OBJECTS) win32\giowin32.lib $(PACKAGE).def $(RESOURCE)
251         $(CC) $(CFLAGS) -LD -Felibgio-$(PKG_VER)-0.dll $(OBJECTS) $(RESOURCE) \
252         ..\glib\glib-2.0.lib ..\gobject\gobject-2.0.lib ..\gmodule\gmodule-2.0.lib \
253         win32\giowin32.lib \
254         $(INTL_LIBS) \
255         kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib ws2_32.lib dnsapi.lib mpr.lib $(LDFLAGS) \
256         /implib:gio-2.0.lib /def:$(PACKAGE).def
257
258 .c.obj :
259         $(CC) $(CFLAGS) -c $(PKG_CFLAGS) $<