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 # =========================================================================
7 !include <../../build/msw/config.vc>
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\vc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__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) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
26 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG) \
27 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
29 $(OBJS)\render_sample.res \
30 $(OBJS)\render_render.obj
31 RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_23)$(__DEBUGRUNTIME_18) /DWIN32 \
33 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb \
34 $(____DEBUGRUNTIME_17_p) $(__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)
40 $(OBJS)\renddll_renddll.obj
42 ### Conditionally set variables: ###
44 !if "$(USE_GUI)" == "0"
47 !if "$(USE_GUI)" == "1"
50 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
53 !if "$(DEBUG_FLAG)" == "1"
56 !if "$(UNICODE)" == "1"
59 !if "$(WXUNIV)" == "1"
62 !if "$(SHARED)" == "1"
65 !if "$(SHARED)" == "0"
68 !if "$(SHARED)" == "1"
71 !if "$(MONOLITHIC)" == "0"
74 !if "$(MONOLITHIC)" == "1"
77 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
80 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
83 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
86 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
89 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
90 ____DEBUGRUNTIME_2_p =
92 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
93 ____DEBUGRUNTIME_2_p = /D_DEBUG
95 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
96 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
98 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
99 ____DEBUGRUNTIME_2_p_1 =
101 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
102 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
104 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
105 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
107 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
108 ____DEBUGINFO_2_p_1 = /d _DEBUG
110 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
111 ____DEBUGINFO_2_p_1 =
113 !if "$(DEBUG_INFO)" == "0"
114 ____DEBUGINFO_2_p_1 =
116 !if "$(DEBUG_INFO)" == "1"
117 ____DEBUGINFO_2_p_1 = /d _DEBUG
119 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
122 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
125 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
126 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
128 !if "$(RUNTIME_LIBS)" == "dynamic"
131 !if "$(RUNTIME_LIBS)" == "static"
132 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
134 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
135 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
137 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
138 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
140 !if "$(WXUNIV)" == "1"
141 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
143 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
144 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
146 !if "$(DEBUG_FLAG)" == "1"
147 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
149 !if "$(USE_EXCEPTIONS)" == "0"
150 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
152 !if "$(USE_RTTI)" == "0"
153 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
155 !if "$(USE_THREADS)" == "0"
156 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
158 !if "$(UNICODE)" == "1"
159 __UNICODE_DEFINE_p_1 = /d _UNICODE
161 !if "$(SHARED)" == "1"
162 __DLLFLAG_p = /DWXUSINGDLL
164 !if "$(SHARED)" == "1"
165 __DLLFLAG_p_1 = /d WXUSINGDLL
167 !if "$(SHARED)" == "1"
168 __renddll___depname = \
169 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll
171 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
172 ____DEBUGRUNTIME_17_p =
174 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
175 ____DEBUGRUNTIME_17_p = /D_DEBUG
177 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
178 ____DEBUGRUNTIME_17_p = $(____DEBUGINFO)
180 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
183 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
184 __DEBUGRUNTIME_18 = d
186 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
187 __DEBUGRUNTIME_18 = $(__DEBUGINFO_2)
189 !if "$(RUNTIME_LIBS)" == "dynamic"
190 __RUNTIME_LIBS_23 = D
192 !if "$(RUNTIME_LIBS)" == "static"
193 __RUNTIME_LIBS_23 = $(__THREADSFLAG)
195 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
198 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
201 !if "$(DEBUG_INFO)" == "0"
204 !if "$(DEBUG_INFO)" == "1"
207 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
208 __DEBUGINFO_1 = /DEBUG
210 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
213 !if "$(DEBUG_INFO)" == "0"
216 !if "$(DEBUG_INFO)" == "1"
217 __DEBUGINFO_1 = /DEBUG
219 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
220 ____DEBUGINFO = /D_DEBUG
222 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
225 !if "$(DEBUG_INFO)" == "0"
228 !if "$(DEBUG_INFO)" == "1"
229 ____DEBUGINFO = /D_DEBUG
231 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
234 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
237 !if "$(DEBUG_INFO)" == "0"
240 !if "$(DEBUG_INFO)" == "1"
243 !if "$(BUILD)" == "debug"
246 !if "$(BUILD)" == "release"
249 !if "$(USE_THREADS)" == "0"
252 !if "$(USE_THREADS)" == "1"
255 !if "$(USE_RTTI)" == "0"
258 !if "$(USE_RTTI)" == "1"
261 !if "$(USE_EXCEPTIONS)" == "0"
264 !if "$(USE_EXCEPTIONS)" == "1"
265 __EXCEPTIONSFLAG = /EHsc
267 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
268 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
270 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
271 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
273 !if "$(WXUNIV)" == "1"
274 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
276 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
277 __DEBUG_DEFINE_p = /D__WXDEBUG__
279 !if "$(DEBUG_FLAG)" == "1"
280 __DEBUG_DEFINE_p = /D__WXDEBUG__
282 !if "$(USE_EXCEPTIONS)" == "0"
283 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
285 !if "$(USE_RTTI)" == "0"
286 __RTTI_DEFINE_p = /DwxNO_RTTI
288 !if "$(USE_THREADS)" == "0"
289 __THREAD_DEFINE_p = /DwxNO_THREADS
291 !if "$(UNICODE)" == "1"
292 __UNICODE_DEFINE_p = /D_UNICODE
294 !if "$(MONOLITHIC)" == "0"
296 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
298 !if "$(MONOLITHIC)" == "0"
300 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
302 !if "$(MONOLITHIC)" == "1"
304 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
306 !if "$(USE_GUI)" == "1"
307 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
309 !if "$(USE_GUI)" == "1"
310 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
312 !if "$(USE_GUI)" == "1"
313 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
316 __UNICOWS_LIB_p = unicows.lib
322 -if not exist $(OBJS) mkdir $(OBJS)
326 all: $(OBJS)\render.exe $(__renddll___depname)
329 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
330 -if exist $(OBJS)\*.res del $(OBJS)\*.res
331 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
332 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
333 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
334 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
335 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll
336 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.ilk
337 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb
339 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
340 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
341 $(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
344 !if "$(SHARED)" == "1"
345 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
346 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
347 $(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
351 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
352 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 $(OBJS)\render_render.obj: .\render.cpp
355 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
357 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
358 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**