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