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