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