]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.vc
final sweep over docs - replace & with \&
[wxWidgets.git] / samples / render / makefile.vc
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
15 WX_RELEASE_NODOT = 25
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
17 OBJS = \
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 RENDER_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)
27 RENDER_OBJECTS = \
28 $(OBJS)\render_sample.res \
29 $(OBJS)\render_render.obj
30 RENDDLL_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)
37 RENDDLL_OBJECTS = \
38 $(OBJS)\renddll_renddll.obj
39
40 ### Conditionally set variables: ###
41
42 !if "$(USE_GUI)" == "0"
43 PORTNAME = base
44 !endif
45 !if "$(USE_GUI)" == "1"
46 PORTNAME = msw
47 !endif
48 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
49 WXDEBUGFLAG = d
50 !endif
51 !if "$(DEBUG_FLAG)" == "1"
52 WXDEBUGFLAG = d
53 !endif
54 !if "$(UNICODE)" == "1"
55 WXUNICODEFLAG = u
56 !endif
57 !if "$(WXUNIV)" == "1"
58 WXUNIVNAME = univ
59 !endif
60 !if "$(SHARED)" == "1"
61 WXDLLFLAG = dll
62 !endif
63 !if "$(MONOLITHIC)" == "0"
64 EXTRALIBS_FOR_BASE =
65 !endif
66 !if "$(MONOLITHIC)" == "1"
67 EXTRALIBS_FOR_BASE =
68 !endif
69 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
70 PLUGINSUFFIX = d
71 !endif
72 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
73 PLUGINSUFFIX = ud
74 !endif
75 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
76 PLUGINSUFFIX =
77 !endif
78 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
79 PLUGINSUFFIX = u
80 !endif
81 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
82 ____DEBUGRUNTIME_2_p =
83 !endif
84 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
85 ____DEBUGRUNTIME_2_p = /D_DEBUG
86 !endif
87 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
88 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
89 !endif
90 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
91 ____DEBUGRUNTIME_2_p_1 =
92 !endif
93 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
94 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
95 !endif
96 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
97 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
98 !endif
99 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
100 ____DEBUGINFO_2_p_1 = /d _DEBUG
101 !endif
102 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
103 ____DEBUGINFO_2_p_1 =
104 !endif
105 !if "$(DEBUG_INFO)" == "0"
106 ____DEBUGINFO_2_p_1 =
107 !endif
108 !if "$(DEBUG_INFO)" == "1"
109 ____DEBUGINFO_2_p_1 = /d _DEBUG
110 !endif
111 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
112 __DEBUGRUNTIME_3 =
113 !endif
114 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
115 __DEBUGRUNTIME_3 = d
116 !endif
117 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
118 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
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 "$(WXUNIV)" == "1"
127 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
128 !endif
129 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
130 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
131 !endif
132 !if "$(DEBUG_FLAG)" == "1"
133 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
134 !endif
135 !if "$(UNICODE)" == "1"
136 __UNICODE_DEFINE_p_1 = /d _UNICODE
137 !endif
138 !if "$(SHARED)" == "1"
139 __DLLFLAG_p = /DWXUSINGDLL
140 !endif
141 !if "$(SHARED)" == "1"
142 __DLLFLAG_p_1 = /d WXUSINGDLL
143 !endif
144 !if "$(SHARED)" == "1"
145 __renddll___depname = \
146 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
147 !endif
148 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
149 ____DEBUGRUNTIME_16_p =
150 !endif
151 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
152 ____DEBUGRUNTIME_16_p = /D_DEBUG
153 !endif
154 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
155 ____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
156 !endif
157 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
158 __DEBUGRUNTIME_17 =
159 !endif
160 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
161 __DEBUGRUNTIME_17 = d
162 !endif
163 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
164 __DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
165 !endif
166 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
167 __DEBUGINFO = /Zi
168 !endif
169 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
170 __DEBUGINFO =
171 !endif
172 !if "$(DEBUG_INFO)" == "0"
173 __DEBUGINFO =
174 !endif
175 !if "$(DEBUG_INFO)" == "1"
176 __DEBUGINFO = /Zi
177 !endif
178 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
179 __DEBUGINFO_1 = /DEBUG
180 !endif
181 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
182 __DEBUGINFO_1 =
183 !endif
184 !if "$(DEBUG_INFO)" == "0"
185 __DEBUGINFO_1 =
186 !endif
187 !if "$(DEBUG_INFO)" == "1"
188 __DEBUGINFO_1 = /DEBUG
189 !endif
190 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
191 ____DEBUGINFO = /D_DEBUG
192 !endif
193 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
194 ____DEBUGINFO =
195 !endif
196 !if "$(DEBUG_INFO)" == "0"
197 ____DEBUGINFO =
198 !endif
199 !if "$(DEBUG_INFO)" == "1"
200 ____DEBUGINFO = /D_DEBUG
201 !endif
202 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
203 __DEBUGINFO_2 = d
204 !endif
205 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
206 __DEBUGINFO_2 =
207 !endif
208 !if "$(DEBUG_INFO)" == "0"
209 __DEBUGINFO_2 =
210 !endif
211 !if "$(DEBUG_INFO)" == "1"
212 __DEBUGINFO_2 = d
213 !endif
214 !if "$(BUILD)" == "debug"
215 __OPTIMIZEFLAG = /Od
216 !endif
217 !if "$(BUILD)" == "release"
218 __OPTIMIZEFLAG = /O2
219 !endif
220 !if "$(RUNTIME_LIBS)" == "dynamic"
221 __RUNTIME_LIBS = D
222 !endif
223 !if "$(RUNTIME_LIBS)" == "static"
224 __RUNTIME_LIBS = T
225 !endif
226 !if "$(USE_EXCEPTIONS)" == "0"
227 __EXCEPTIONSFLAG =
228 !endif
229 !if "$(USE_EXCEPTIONS)" == "1"
230 __EXCEPTIONSFLAG = /GR
231 !endif
232 !if "$(USE_EXCEPTIONS)" == "0"
233 __EXCEPTIONSFLAG_0 =
234 !endif
235 !if "$(USE_EXCEPTIONS)" == "1"
236 __EXCEPTIONSFLAG_0 = /GX
237 !endif
238 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
239 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
240 !endif
241 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
242 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
243 !endif
244 !if "$(WXUNIV)" == "1"
245 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
246 !endif
247 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
248 __DEBUG_DEFINE_p = /D__WXDEBUG__
249 !endif
250 !if "$(DEBUG_FLAG)" == "1"
251 __DEBUG_DEFINE_p = /D__WXDEBUG__
252 !endif
253 !if "$(UNICODE)" == "1"
254 __UNICODE_DEFINE_p = /D_UNICODE
255 !endif
256 !if "$(SHARED)" == "0"
257 LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
258 !endif
259 !if "$(SHARED)" == "1"
260 LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
261 !endif
262 !if "$(MONOLITHIC)" == "0"
263 __WXLIB_CORE_p = \
264 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
265 !endif
266 !if "$(MONOLITHIC)" == "0"
267 __WXLIB_BASE_p = \
268 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
269 !endif
270 !if "$(MONOLITHIC)" == "1"
271 __WXLIB_MONO_p = \
272 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
273 !endif
274 !if "$(USE_GUI)" == "1"
275 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
276 !endif
277 !if "$(USE_GUI)" == "1"
278 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
279 !endif
280 !if "$(USE_GUI)" == "1"
281 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
282 !endif
283 !if "$(MSLU)" == "1"
284 __UNICOWS_LIB_p = unicows.lib
285 !endif
286
287
288 all: $(OBJS)
289 $(OBJS):
290 -if not exist $(OBJS) mkdir $(OBJS)
291
292 ### Targets: ###
293
294 all: $(OBJS)\render.exe $(__renddll___depname)
295
296 clean:
297 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
298 -if exist $(OBJS)\*.res del $(OBJS)\*.res
299 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
300 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
301 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
302 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
303 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk
304 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb
305
306 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
307 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
308 $(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
309 <<
310
311 !if "$(SHARED)" == "1"
312 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
313 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
314 $(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
315 <<
316 !endif
317
318 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
319 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 $**
320
321 $(OBJS)\render_render.obj: .\render.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
323
324 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**