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