]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.vc
Cosmetic changes
[wxWidgets.git] / samples / render / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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
15 WX_RELEASE_NODOT = 25
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
17 OBJS = \
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\lib\vc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \
23 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME_2_p) \
24 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
27 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG) \
28 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
29 RENDER_OBJECTS = \
30 $(OBJS)\render_sample.res \
31 $(OBJS)\render_render.obj
32 RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_23)$(__DEBUGRUNTIME_18) /DWIN32 \
33 $(__DEBUGINFO) \
34 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb \
35 $(____DEBUGRUNTIME_17_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
36 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
37 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
38 /I.\..\..\include /I$(SETUPHDIR) /W4 /DWXUSINGDLL $(__RTTIFLAG) \
39 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
40 RENDDLL_OBJECTS = \
41 $(OBJS)\renddll_renddll.obj
42
43 ### Conditionally set variables: ###
44
45 !if "$(USE_GUI)" == "0"
46 PORTNAME = base
47 !endif
48 !if "$(USE_GUI)" == "1"
49 PORTNAME = msw
50 !endif
51 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
52 WXDEBUGFLAG = d
53 !endif
54 !if "$(DEBUG_FLAG)" == "1"
55 WXDEBUGFLAG = d
56 !endif
57 !if "$(UNICODE)" == "1"
58 WXUNICODEFLAG = u
59 !endif
60 !if "$(WXUNIV)" == "1"
61 WXUNIVNAME = univ
62 !endif
63 !if "$(SHARED)" == "1"
64 WXDLLFLAG = dll
65 !endif
66 !if "$(SHARED)" == "0"
67 LIBTYPE_SUFFIX = lib
68 !endif
69 !if "$(SHARED)" == "1"
70 LIBTYPE_SUFFIX = dll
71 !endif
72 !if "$(MONOLITHIC)" == "0"
73 EXTRALIBS_FOR_BASE =
74 !endif
75 !if "$(MONOLITHIC)" == "1"
76 EXTRALIBS_FOR_BASE =
77 !endif
78 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
79 PLUGINSUFFIX = d
80 !endif
81 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
82 PLUGINSUFFIX = ud
83 !endif
84 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
85 PLUGINSUFFIX =
86 !endif
87 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
88 PLUGINSUFFIX = u
89 !endif
90 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
91 ____DEBUGRUNTIME_2_p =
92 !endif
93 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
94 ____DEBUGRUNTIME_2_p = /D_DEBUG
95 !endif
96 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
97 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
98 !endif
99 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
100 ____DEBUGRUNTIME_2_p_1 =
101 !endif
102 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
103 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
104 !endif
105 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
106 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
107 !endif
108 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
109 ____DEBUGINFO_2_p_1 = /d _DEBUG
110 !endif
111 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
112 ____DEBUGINFO_2_p_1 =
113 !endif
114 !if "$(DEBUG_INFO)" == "0"
115 ____DEBUGINFO_2_p_1 =
116 !endif
117 !if "$(DEBUG_INFO)" == "1"
118 ____DEBUGINFO_2_p_1 = /d _DEBUG
119 !endif
120 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
121 __DEBUGRUNTIME_3 =
122 !endif
123 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
124 __DEBUGRUNTIME_3 = d
125 !endif
126 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
127 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
128 !endif
129 !if "$(RUNTIME_LIBS)" == "dynamic"
130 __RUNTIME_LIBS_8 = D
131 !endif
132 !if "$(RUNTIME_LIBS)" == "static"
133 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
134 !endif
135 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
136 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
137 !endif
138 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
139 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
140 !endif
141 !if "$(WXUNIV)" == "1"
142 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
143 !endif
144 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
145 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
146 !endif
147 !if "$(DEBUG_FLAG)" == "1"
148 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
149 !endif
150 !if "$(USE_EXCEPTIONS)" == "0"
151 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
152 !endif
153 !if "$(USE_RTTI)" == "0"
154 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
155 !endif
156 !if "$(USE_THREADS)" == "0"
157 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
158 !endif
159 !if "$(UNICODE)" == "1"
160 __UNICODE_DEFINE_p_1 = /d _UNICODE
161 !endif
162 !if "$(SHARED)" == "1"
163 __DLLFLAG_p = /DWXUSINGDLL
164 !endif
165 !if "$(SHARED)" == "1"
166 __DLLFLAG_p_1 = /d WXUSINGDLL
167 !endif
168 !if "$(SHARED)" == "1"
169 __renddll___depname = \
170 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
171 !endif
172 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
173 ____DEBUGRUNTIME_17_p =
174 !endif
175 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
176 ____DEBUGRUNTIME_17_p = /D_DEBUG
177 !endif
178 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
179 ____DEBUGRUNTIME_17_p = $(____DEBUGINFO)
180 !endif
181 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
182 __DEBUGRUNTIME_18 =
183 !endif
184 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
185 __DEBUGRUNTIME_18 = d
186 !endif
187 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
188 __DEBUGRUNTIME_18 = $(__DEBUGINFO_2)
189 !endif
190 !if "$(RUNTIME_LIBS)" == "dynamic"
191 __RUNTIME_LIBS_23 = D
192 !endif
193 !if "$(RUNTIME_LIBS)" == "static"
194 __RUNTIME_LIBS_23 = $(__THREADSFLAG)
195 !endif
196 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
197 __DEBUGINFO = /Zi
198 !endif
199 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
200 __DEBUGINFO =
201 !endif
202 !if "$(DEBUG_INFO)" == "0"
203 __DEBUGINFO =
204 !endif
205 !if "$(DEBUG_INFO)" == "1"
206 __DEBUGINFO = /Zi
207 !endif
208 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
209 __DEBUGINFO_1 = /DEBUG
210 !endif
211 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
212 __DEBUGINFO_1 =
213 !endif
214 !if "$(DEBUG_INFO)" == "0"
215 __DEBUGINFO_1 =
216 !endif
217 !if "$(DEBUG_INFO)" == "1"
218 __DEBUGINFO_1 = /DEBUG
219 !endif
220 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
221 ____DEBUGINFO = /D_DEBUG
222 !endif
223 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
224 ____DEBUGINFO =
225 !endif
226 !if "$(DEBUG_INFO)" == "0"
227 ____DEBUGINFO =
228 !endif
229 !if "$(DEBUG_INFO)" == "1"
230 ____DEBUGINFO = /D_DEBUG
231 !endif
232 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
233 __DEBUGINFO_2 = d
234 !endif
235 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
236 __DEBUGINFO_2 =
237 !endif
238 !if "$(DEBUG_INFO)" == "0"
239 __DEBUGINFO_2 =
240 !endif
241 !if "$(DEBUG_INFO)" == "1"
242 __DEBUGINFO_2 = d
243 !endif
244 !if "$(BUILD)" == "debug"
245 __OPTIMIZEFLAG = /Od
246 !endif
247 !if "$(BUILD)" == "release"
248 __OPTIMIZEFLAG = /O2
249 !endif
250 !if "$(USE_THREADS)" == "0"
251 __THREADSFLAG = L
252 !endif
253 !if "$(USE_THREADS)" == "1"
254 __THREADSFLAG = T
255 !endif
256 !if "$(USE_RTTI)" == "0"
257 __RTTIFLAG =
258 !endif
259 !if "$(USE_RTTI)" == "1"
260 __RTTIFLAG = /GR
261 !endif
262 !if "$(USE_EXCEPTIONS)" == "0"
263 __EXCEPTIONSFLAG =
264 !endif
265 !if "$(USE_EXCEPTIONS)" == "1"
266 __EXCEPTIONSFLAG = /EHsc
267 !endif
268 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
269 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
270 !endif
271 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
272 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
273 !endif
274 !if "$(WXUNIV)" == "1"
275 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
276 !endif
277 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
278 __DEBUG_DEFINE_p = /D__WXDEBUG__
279 !endif
280 !if "$(DEBUG_FLAG)" == "1"
281 __DEBUG_DEFINE_p = /D__WXDEBUG__
282 !endif
283 !if "$(USE_EXCEPTIONS)" == "0"
284 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
285 !endif
286 !if "$(USE_RTTI)" == "0"
287 __RTTI_DEFINE_p = /DwxNO_RTTI
288 !endif
289 !if "$(USE_THREADS)" == "0"
290 __THREAD_DEFINE_p = /DwxNO_THREADS
291 !endif
292 !if "$(UNICODE)" == "1"
293 __UNICODE_DEFINE_p = /D_UNICODE
294 !endif
295 !if "$(MONOLITHIC)" == "0"
296 __WXLIB_CORE_p = \
297 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
298 !endif
299 !if "$(MONOLITHIC)" == "0"
300 __WXLIB_BASE_p = \
301 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
302 !endif
303 !if "$(MONOLITHIC)" == "1"
304 __WXLIB_MONO_p = \
305 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
306 !endif
307 !if "$(USE_GUI)" == "1"
308 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
309 !endif
310 !if "$(USE_GUI)" == "1"
311 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
312 !endif
313 !if "$(USE_GUI)" == "1"
314 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
315 !endif
316 !if "$(MSLU)" == "1"
317 __UNICOWS_LIB_p = unicows.lib
318 !endif
319
320
321 all: $(OBJS)
322 $(OBJS):
323 -if not exist $(OBJS) mkdir $(OBJS)
324
325 ### Targets: ###
326
327 all: $(OBJS)\render.exe $(__renddll___depname)
328
329 clean:
330 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
331 -if exist $(OBJS)\*.res del $(OBJS)\*.res
332 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
333 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
334 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
335 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
336 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
337 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk
338 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb
339
340 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
341 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
342 $(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 $(EXTRALIBS_FOR_BASE) $(__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
343 <<
344
345 !if "$(SHARED)" == "1"
346 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
347 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
348 $(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 $(EXTRALIBS_FOR_BASE) $(__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
349 <<
350 !endif
351
352 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
353 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples $**
354
355 $(OBJS)\render_render.obj: .\render.cpp
356 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
357
358 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
359 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**
360