1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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 # -------------------------------------------------------------------------
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\lib\vc_$(LIBTYPE_SUFFIX)$(CFG)
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
23 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME_2_p) \
24 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
26 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH \
27 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
29 $(OBJS)\render_sample.res \
30 $(OBJS)\render_render.obj
31 RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_17) /DWIN32 \
33 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb \
34 $(____DEBUGRUNTIME_16_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
35 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
36 /I.\..\..\include /I$(SETUPHDIR) /W4 /DWXUSINGDLL $(__EXCEPTIONSFLAG) \
37 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
39 $(OBJS)\renddll_renddll.obj
41 ### Conditionally set variables: ###
43 !if "$(USE_GUI)" == "0"
46 !if "$(USE_GUI)" == "1"
49 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
52 !if "$(DEBUG_FLAG)" == "1"
55 !if "$(UNICODE)" == "1"
58 !if "$(WXUNIV)" == "1"
61 !if "$(SHARED)" == "1"
64 !if "$(SHARED)" == "0"
67 !if "$(SHARED)" == "1"
70 !if "$(MONOLITHIC)" == "0"
73 !if "$(MONOLITHIC)" == "1"
76 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
79 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
82 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
85 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
88 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
89 ____DEBUGRUNTIME_2_p =
91 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
92 ____DEBUGRUNTIME_2_p = /D_DEBUG
94 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
95 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
97 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
98 ____DEBUGRUNTIME_2_p_1 =
100 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
101 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
103 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
104 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
106 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
107 ____DEBUGINFO_2_p_1 = /d _DEBUG
109 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
110 ____DEBUGINFO_2_p_1 =
112 !if "$(DEBUG_INFO)" == "0"
113 ____DEBUGINFO_2_p_1 =
115 !if "$(DEBUG_INFO)" == "1"
116 ____DEBUGINFO_2_p_1 = /d _DEBUG
118 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
121 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
124 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
125 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
127 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
128 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
130 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
131 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
133 !if "$(WXUNIV)" == "1"
134 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
136 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
137 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
139 !if "$(DEBUG_FLAG)" == "1"
140 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
142 !if "$(UNICODE)" == "1"
143 __UNICODE_DEFINE_p_1 = /d _UNICODE
145 !if "$(SHARED)" == "1"
146 __DLLFLAG_p = /DWXUSINGDLL
148 !if "$(SHARED)" == "1"
149 __DLLFLAG_p_1 = /d WXUSINGDLL
151 !if "$(SHARED)" == "1"
152 __renddll___depname = \
153 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
155 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
156 ____DEBUGRUNTIME_16_p =
158 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
159 ____DEBUGRUNTIME_16_p = /D_DEBUG
161 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
162 ____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
164 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
167 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
168 __DEBUGRUNTIME_17 = d
170 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
171 __DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
173 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
176 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
179 !if "$(DEBUG_INFO)" == "0"
182 !if "$(DEBUG_INFO)" == "1"
185 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
186 __DEBUGINFO_1 = /DEBUG
188 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
191 !if "$(DEBUG_INFO)" == "0"
194 !if "$(DEBUG_INFO)" == "1"
195 __DEBUGINFO_1 = /DEBUG
197 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
198 ____DEBUGINFO = /D_DEBUG
200 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
203 !if "$(DEBUG_INFO)" == "0"
206 !if "$(DEBUG_INFO)" == "1"
207 ____DEBUGINFO = /D_DEBUG
209 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
212 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
215 !if "$(DEBUG_INFO)" == "0"
218 !if "$(DEBUG_INFO)" == "1"
221 !if "$(BUILD)" == "debug"
224 !if "$(BUILD)" == "release"
227 !if "$(RUNTIME_LIBS)" == "dynamic"
230 !if "$(RUNTIME_LIBS)" == "static"
233 !if "$(USE_EXCEPTIONS)" == "0"
236 !if "$(USE_EXCEPTIONS)" == "1"
237 __EXCEPTIONSFLAG = /GR
239 !if "$(USE_EXCEPTIONS)" == "0"
242 !if "$(USE_EXCEPTIONS)" == "1"
243 __EXCEPTIONSFLAG_0 = /GX
245 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
246 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
248 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
249 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
251 !if "$(WXUNIV)" == "1"
252 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
254 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
255 __DEBUG_DEFINE_p = /D__WXDEBUG__
257 !if "$(DEBUG_FLAG)" == "1"
258 __DEBUG_DEFINE_p = /D__WXDEBUG__
260 !if "$(UNICODE)" == "1"
261 __UNICODE_DEFINE_p = /D_UNICODE
263 !if "$(MONOLITHIC)" == "0"
265 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
267 !if "$(MONOLITHIC)" == "0"
269 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
271 !if "$(MONOLITHIC)" == "1"
273 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
275 !if "$(USE_GUI)" == "1"
276 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
278 !if "$(USE_GUI)" == "1"
279 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
281 !if "$(USE_GUI)" == "1"
282 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
285 __UNICOWS_LIB_p = unicows.lib
291 -if not exist $(OBJS) mkdir $(OBJS)
295 all: $(OBJS)\render.exe $(__renddll___depname)
298 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
299 -if exist $(OBJS)\*.res del $(OBJS)\*.res
300 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
301 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
302 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
303 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
304 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
305 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk
306 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb
308 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
309 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
310 $(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
313 !if "$(SHARED)" == "1"
314 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
315 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
316 $(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
320 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
321 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 $**
323 $(OBJS)\render_render.obj: .\render.cpp
324 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
326 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
327 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**