]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/render/makefile.vc
decode URIs in wxFileDataObject::SetData(); fixes problem with filenames with spaces...
[wxWidgets.git] / samples / render / makefile.vc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!include <../../build/msw/config.vc>
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15WX_RELEASE_NODOT = 25
16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
17OBJS = \
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
22 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME_2_p) \
23 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
25 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH \
26 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
27RENDER_OBJECTS = \
28 $(OBJS)\render_sample.res \
29 $(OBJS)\render_render.obj
30RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_17) /DWIN32 \
31 $(__DEBUGINFO) \
32 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb \
33 $(____DEBUGRUNTIME_16_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
34 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
35 /I.\..\..\include /I$(SETUPHDIR) /W4 /DWXUSINGDLL $(__EXCEPTIONSFLAG) \
36 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
37RENDDLL_OBJECTS = \
38 $(OBJS)\renddll_renddll.obj
39
40### Conditionally set variables: ###
41
42!if "$(USE_GUI)" == "0"
43PORTNAME = base
44!endif
45!if "$(USE_GUI)" == "1"
46PORTNAME = msw
47!endif
48!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
49WXDEBUGFLAG = d
50!endif
51!if "$(DEBUG_FLAG)" == "1"
52WXDEBUGFLAG = d
53!endif
54!if "$(UNICODE)" == "1"
55WXUNICODEFLAG = u
56!endif
57!if "$(WXUNIV)" == "1"
58WXUNIVNAME = univ
59!endif
60!if "$(SHARED)" == "1"
61WXDLLFLAG = dll
62!endif
63!if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
64PLUGINSUFFIX = d
65!endif
66!if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
67PLUGINSUFFIX = ud
68!endif
69!if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
70PLUGINSUFFIX =
71!endif
72!if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
73PLUGINSUFFIX = u
74!endif
75!if "$(DEBUG_RUNTIME_LIBS)" == "0"
76____DEBUGRUNTIME_2_p =
77!endif
78!if "$(DEBUG_RUNTIME_LIBS)" == "1"
79____DEBUGRUNTIME_2_p = /D_DEBUG
80!endif
81!if "$(DEBUG_RUNTIME_LIBS)" == "default"
82____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
83!endif
84!if "$(DEBUG_RUNTIME_LIBS)" == "0"
85____DEBUGRUNTIME_2_p_1 =
86!endif
87!if "$(DEBUG_RUNTIME_LIBS)" == "1"
88____DEBUGRUNTIME_2_p_1 = /d _DEBUG
89!endif
90!if "$(DEBUG_RUNTIME_LIBS)" == "default"
91____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
92!endif
93!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
94____DEBUGINFO_2_p_1 = /d _DEBUG
95!endif
96!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
97____DEBUGINFO_2_p_1 =
98!endif
99!if "$(DEBUG_INFO)" == "0"
100____DEBUGINFO_2_p_1 =
101!endif
102!if "$(DEBUG_INFO)" == "1"
103____DEBUGINFO_2_p_1 = /d _DEBUG
104!endif
105!if "$(DEBUG_RUNTIME_LIBS)" == "0"
106__DEBUGRUNTIME_3 =
107!endif
108!if "$(DEBUG_RUNTIME_LIBS)" == "1"
109__DEBUGRUNTIME_3 = d
110!endif
111!if "$(DEBUG_RUNTIME_LIBS)" == "default"
112__DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
113!endif
114!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
115__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
116!endif
117!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
118__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
119!endif
120!if "$(WXUNIV)" == "1"
121__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
122!endif
123!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
124__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
125!endif
126!if "$(DEBUG_FLAG)" == "1"
127__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
128!endif
129!if "$(UNICODE)" == "1"
130__UNICODE_DEFINE_p_1 = /d _UNICODE
131!endif
132!if "$(SHARED)" == "1"
133__DLLFLAG_p = /DWXUSINGDLL
134!endif
135!if "$(SHARED)" == "1"
136__DLLFLAG_p_1 = /d WXUSINGDLL
137!endif
138!if "$(SHARED)" == "1"
139__renddll___depname = \
140 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
141!endif
142!if "$(DEBUG_RUNTIME_LIBS)" == "0"
143____DEBUGRUNTIME_16_p =
144!endif
145!if "$(DEBUG_RUNTIME_LIBS)" == "1"
146____DEBUGRUNTIME_16_p = /D_DEBUG
147!endif
148!if "$(DEBUG_RUNTIME_LIBS)" == "default"
149____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
150!endif
151!if "$(DEBUG_RUNTIME_LIBS)" == "0"
152__DEBUGRUNTIME_17 =
153!endif
154!if "$(DEBUG_RUNTIME_LIBS)" == "1"
155__DEBUGRUNTIME_17 = d
156!endif
157!if "$(DEBUG_RUNTIME_LIBS)" == "default"
158__DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
159!endif
160!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
161__DEBUGINFO = /Zi
162!endif
163!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
164__DEBUGINFO =
165!endif
166!if "$(DEBUG_INFO)" == "0"
167__DEBUGINFO =
168!endif
169!if "$(DEBUG_INFO)" == "1"
170__DEBUGINFO = /Zi
171!endif
172!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
173__DEBUGINFO_1 = /DEBUG
174!endif
175!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
176__DEBUGINFO_1 =
177!endif
178!if "$(DEBUG_INFO)" == "0"
179__DEBUGINFO_1 =
180!endif
181!if "$(DEBUG_INFO)" == "1"
182__DEBUGINFO_1 = /DEBUG
183!endif
184!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
185____DEBUGINFO = /D_DEBUG
186!endif
187!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
188____DEBUGINFO =
189!endif
190!if "$(DEBUG_INFO)" == "0"
191____DEBUGINFO =
192!endif
193!if "$(DEBUG_INFO)" == "1"
194____DEBUGINFO = /D_DEBUG
195!endif
196!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
197__DEBUGINFO_2 = d
198!endif
199!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
200__DEBUGINFO_2 =
201!endif
202!if "$(DEBUG_INFO)" == "0"
203__DEBUGINFO_2 =
204!endif
205!if "$(DEBUG_INFO)" == "1"
206__DEBUGINFO_2 = d
207!endif
208!if "$(BUILD)" == "debug"
209__OPTIMIZEFLAG = /Od
210!endif
211!if "$(BUILD)" == "release"
212__OPTIMIZEFLAG = /O2
213!endif
214!if "$(RUNTIME_LIBS)" == "dynamic"
215__RUNTIME_LIBS = D
216!endif
217!if "$(RUNTIME_LIBS)" == "static"
218__RUNTIME_LIBS = T
219!endif
220!if "$(USE_EXCEPTIONS)" == "0"
221__EXCEPTIONSFLAG =
222!endif
223!if "$(USE_EXCEPTIONS)" == "1"
224__EXCEPTIONSFLAG = /GR
225!endif
226!if "$(USE_EXCEPTIONS)" == "0"
227__EXCEPTIONSFLAG_0 =
228!endif
229!if "$(USE_EXCEPTIONS)" == "1"
230__EXCEPTIONSFLAG_0 = /GX
231!endif
232!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
233__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
234!endif
235!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
236__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
237!endif
238!if "$(WXUNIV)" == "1"
239__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
240!endif
241!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
242__DEBUG_DEFINE_p = /D__WXDEBUG__
243!endif
244!if "$(DEBUG_FLAG)" == "1"
245__DEBUG_DEFINE_p = /D__WXDEBUG__
246!endif
247!if "$(UNICODE)" == "1"
248__UNICODE_DEFINE_p = /D_UNICODE
249!endif
250!if "$(SHARED)" == "0"
251LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
252!endif
253!if "$(SHARED)" == "1"
254LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
255!endif
256!if "$(MONOLITHIC)" == "0"
257__WXLIB_CORE_p = \
258 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
259!endif
260!if "$(MONOLITHIC)" == "0"
261__WXLIB_BASE_p = \
262 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
263!endif
264!if "$(MONOLITHIC)" == "1"
265__WXLIB_MONO_p = \
266 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
267!endif
268!if "$(USE_GUI)" == "1"
269__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
270!endif
271!if "$(USE_GUI)" == "1"
272__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
273!endif
274!if "$(USE_GUI)" == "1"
275__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
276!endif
277!if "$(MSLU)" == "1"
278__UNICOWS_LIB_p = unicows.lib
279!endif
280
281
282all: $(OBJS)
283$(OBJS):
284 -if not exist $(OBJS) mkdir $(OBJS)
285
286### Targets: ###
287
288all: $(OBJS)\render.exe $(__renddll___depname)
289
290clean:
291 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
292 -if exist $(OBJS)\*.res del $(OBJS)\*.res
293 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
294 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
295 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
296 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
297 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk
298 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb
299
300$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
301 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
302 $(RENDER_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib odbc32.lib
303<<
304
305!if "$(SHARED)" == "1"
306$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
307 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
308 $(RENDDLL_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib odbc32.lib
309<<
310!endif
311
312$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
313 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples $**
314
315$(OBJS)\render_render.obj: .\render.cpp
316 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
317
318$(OBJS)\renddll_renddll.obj: .\renddll.cpp
319 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**