to get the default translation target on win32 use g_win32_get_locale()
[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         -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         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 #       gioenumtypes.h          \
56         gioerror.h              \
57         giomodule.h             \
58         gioscheduler.h          \
59         gloadableicon.h         \
60         gmount.h                \
61         gmemoryinputstream.h    \
62         gmemoryoutputstream.h   \
63         gmountoperation.h       \
64         gnativevolumemonitor.h  \
65         goutputstream.h         \
66         gseekable.h             \
67         gsimpleasyncresult.h    \
68         gthemedicon.h           \
69         gvfs.h                  \
70         gvolume.h               \
71         gvolumemonitor.h        \
72         $(NULL)
73
74 OBJECTS = \
75         gappinfo.obj \
76         gasynchelper.obj \
77         gasyncresult.obj \
78         gbufferedinputstream.obj \
79         gbufferedoutputstream.obj \
80         gcancellable.obj \
81         gcontenttype.obj \
82         gdatainputstream.obj \
83         gdataoutputstream.obj \
84 #       gdesktopappinfo.obj \
85         gdrive.obj \
86         gdummyfile.obj \
87         gfile.obj \
88         gfileattribute.obj \
89         gfileenumerator.obj \
90         gfileicon.obj \
91         gfileinfo.obj \
92         gfileinputstream.obj \
93         gfilemonitor.obj \
94         gfilenamecompleter.obj \
95         gfileoutputstream.obj \
96         gfilterinputstream.obj \
97         gfilteroutputstream.obj \
98         gicon.obj \
99         ginputstream.obj \
100         gioenumtypes.obj \
101         gioerror.obj \
102         giomodule.obj \
103         gioscheduler.obj \
104         gloadableicon.obj \
105         gmemoryinputstream.obj \
106         gmemoryoutputstream.obj \
107         gmount.obj \
108         gmountoperation.obj \
109         gnativevolumemonitor.obj \
110         goutputstream.obj \
111         gpollfilemonitor.obj \
112         gseekable.obj \
113         gsimpleasyncresult.obj \
114 #       gsocketinputstream.obj \
115 #       gsocketoutputstream.obj \
116         gthemedicon.obj \
117         gunionvolumemonitor.obj \
118         gvfs.obj \
119         gvolume.obj \
120         gvolumemonitor.obj \
121         \
122         glocalvfs.obj \
123         glocalfile.obj \
124         glocalfileenumerator.obj \
125         glocalfileinfo.obj \
126         glocalfileinputstream.obj \
127         glocalfileoutputstream.obj \
128         glocalfilemonitor.obj \
129         glocaldirectorymonitor.obj \
130         gwin32appinfo.obj \
131         \
132         gio-marshal.obj \
133         gwin32directorymonitor.obj
134
135 libgio_2_0_la_LIBADD = \
136         $(top_builddir)/glib/libglib-2.0.la \
137         $(top_builddir)/gobject/libgobject-2.0.la \
138         $(top_builddir)/gmodule/libgmodule-2.0.la \
139         $(platform_libadd) \
140         $(SELINUX_LIBS) \
141         $(GLIB_LIBS) \
142         $(XATTR_LIBS) \
143         $(NULL)
144
145 unix_sources = \
146         gunixdrive.c \
147         gunixdrive.h \
148         gunixmounts.c \
149         gunixmounts.h \
150         gunixvolume.c \
151         gunixvolume.h \
152         gunixvolumemonitor.c \
153         gunixvolumemonitor.h \
154         $(NULL)
155
156 NULL = \
157         
158
159 libgio_2_0_la_LDFLAG = \
160         -export-dynamic \
161         $(no_undefined) \
162         -export-symbols-regex \
163         '^g_.*'
164
165 giounixincludedi = \
166         $(includedir)/gio-unix-2.0/gio
167
168 platform_libadd = \
169         -lshlwapi
170
171 marshal_sources = \
172         gio-marshal.h gio-marshal.c $(NULL)
173
174 gioincludedi = \
175         $(includedir)/glib-2.0/gio/
176
177 EXTRA_DIST = \
178         gio-marshal.list $(NULL)
179
180 CLEANFILES = \
181         $(marshal_sources) $(NULL)
182
183 no_undefined = \
184         -no-undefined
185
186 giounixinclude_HEADERS = \
187         gunixmounts.h $(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         gioalias.h              \
224         gioaliasdef.c           \
225         gio-marshal.c \
226         gioenumtypes.h          \
227         gioenumtypes.c          \
228         libgio-$(PKG_VER).dll
229
230
231 $(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
232         copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
233
234 gioalias.h: gio.symbols
235         perl ..\glib\makegalias.pl < gio.symbols > gioalias.h
236
237 gioaliasdef.c: gio.symbols
238           perl ..\glib\makegalias.pl -def < gio.symbols > gioaliasdef.c
239
240 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
241         $(PERL) ..\gobject\glib-mkenums --template gioenumtypes.h.template $(gio_headers) > gioenumtypes.h
242         
243 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
244         $(PERL) ..\gobject\glib-mkenums --template gioenumtypes.c.template $(gio_headers) > gioenumtypes.c
245
246 gio.def: gio.symbols
247         echo EXPORTS > gio.def
248         cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DINCLUDE_INTERNAL_SYMBOLS -DALL_FILES \
249                 -DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
250                 -DG_GNUC_PRINTF=;G_GNUC_PRINTF gio.symbols >> gio.def
251
252 gwin32directorymonitor.obj : win32\gwin32directorymonitor.c 
253         $(CC) $(CFLAGS) -I win32 -c win32\gwin32directorymonitor.c
254
255 RESOURCE = $(PACKAGE).res
256
257 libgio-$(PKG_VER).dll : $(OBJECTS) $(PACKAGE).def
258         $(CC) $(CFLAGS) -LD -Felibgio-$(PKG_VER).dll $(OBJECTS) \
259         ..\glib\glib-2.0.lib ..\gobject\gobject-2.0.lib ..\gmodule\gmodule-2.0.lib \
260         $(INTL_LIBS) \
261         kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib $(LDFLAGS) \
262         /implib:gio-2.0.lib /def:$(PACKAGE).def
263
264 .c.obj :
265         $(CC) $(CFLAGS) -c $(PKG_CFLAGS) $<