1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.1 (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)0
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
19 LIBDIRNAME = .\..\..\lib\vc$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
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) $(__GFXCTX_DEFINE_p) \
27 /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
28 /I.\..\..\samples /DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
31 $(OBJS)\render_sample.res \
32 $(OBJS)\render_render.obj
33 RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_23)$(__DEBUGRUNTIME) /DWIN32 \
35 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb \
36 $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
37 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
38 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
39 $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 \
40 /DWXUSINGDLL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
42 $(OBJS)\renddll_renddll.obj
44 ### Conditionally set variables: ###
46 !if "$(USE_GUI)" == "0"
49 !if "$(USE_GUI)" == "1"
52 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
55 !if "$(DEBUG_FLAG)" == "1"
58 !if "$(UNICODE)" == "1"
61 !if "$(WXUNIV)" == "1"
64 !if "$(TARGET_CPU)" == "amd64"
65 DIR_SUFFIX_CPU = _amd64
67 !if "$(TARGET_CPU)" == "amd64"
68 DIR_SUFFIX_CPU = _amd64
70 !if "$(TARGET_CPU)" == "ia64"
71 DIR_SUFFIX_CPU = _ia64
73 !if "$(TARGET_CPU)" == "ia64"
74 DIR_SUFFIX_CPU = _ia64
76 !if "$(SHARED)" == "1"
79 !if "$(SHARED)" == "0"
82 !if "$(SHARED)" == "1"
85 !if "$(TARGET_CPU)" == "amd64"
86 LINK_TARGET_CPU = /MACHINE:AMD64
88 !if "$(TARGET_CPU)" == "amd64"
89 LINK_TARGET_CPU = /MACHINE:AMD64
91 !if "$(TARGET_CPU)" == "ia64"
92 LINK_TARGET_CPU = /MACHINE:IA64
94 !if "$(TARGET_CPU)" == "ia64"
95 LINK_TARGET_CPU = /MACHINE:IA64
97 !if "$(MONOLITHIC)" == "0"
100 !if "$(MONOLITHIC)" == "1"
103 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
106 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
109 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
112 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
115 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
116 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
118 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
119 ____DEBUGRUNTIME_2_p_1 =
121 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
122 ____DEBUGRUNTIME_2_p_1 =
124 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
125 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
127 !if "$(RUNTIME_LIBS)" == "dynamic"
130 !if "$(RUNTIME_LIBS)" == "static"
131 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
133 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
134 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
136 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
137 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
139 !if "$(WXUNIV)" == "1"
140 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
142 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
143 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
145 !if "$(DEBUG_FLAG)" == "1"
146 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
148 !if "$(USE_EXCEPTIONS)" == "0"
149 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
151 !if "$(USE_RTTI)" == "0"
152 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
154 !if "$(USE_THREADS)" == "0"
155 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
157 !if "$(UNICODE)" == "1"
158 __UNICODE_DEFINE_p_1 = /d _UNICODE
161 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
163 !if "$(USE_GDIPLUS)" == "1"
164 __GFXCTX_DEFINE_p_1 = /d wxUSE_GRAPHICS_CONTEXT=1
166 !if "$(SHARED)" == "1"
167 __DLLFLAG_p = /DWXUSINGDLL
169 !if "$(SHARED)" == "1"
170 __DLLFLAG_p_1 = /d WXUSINGDLL
172 !if "$(SHARED)" == "1"
173 __renddll___depname = \
174 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
176 !if "$(RUNTIME_LIBS)" == "dynamic"
177 __RUNTIME_LIBS_23 = D
179 !if "$(RUNTIME_LIBS)" == "static"
180 __RUNTIME_LIBS_23 = $(__THREADSFLAG)
182 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
185 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
188 !if "$(DEBUG_INFO)" == "0"
191 !if "$(DEBUG_INFO)" == "1"
194 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
195 __DEBUGINFO_1 = /DEBUG
197 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
200 !if "$(DEBUG_INFO)" == "0"
203 !if "$(DEBUG_INFO)" == "1"
204 __DEBUGINFO_1 = /DEBUG
206 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
207 ____DEBUGRUNTIME = /D_DEBUG
209 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
212 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
215 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
216 ____DEBUGRUNTIME = /D_DEBUG
218 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
221 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
224 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
227 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
230 !if "$(BUILD)" == "debug"
233 !if "$(BUILD)" == "release"
236 !if "$(USE_THREADS)" == "0"
239 !if "$(USE_THREADS)" == "1"
242 !if "$(USE_RTTI)" == "0"
245 !if "$(USE_RTTI)" == "1"
248 !if "$(USE_EXCEPTIONS)" == "0"
251 !if "$(USE_EXCEPTIONS)" == "1"
252 __EXCEPTIONSFLAG = /EHsc
254 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
255 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
257 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
258 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
260 !if "$(WXUNIV)" == "1"
261 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
263 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
264 __DEBUG_DEFINE_p = /D__WXDEBUG__
266 !if "$(DEBUG_FLAG)" == "1"
267 __DEBUG_DEFINE_p = /D__WXDEBUG__
269 !if "$(USE_EXCEPTIONS)" == "0"
270 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
272 !if "$(USE_RTTI)" == "0"
273 __RTTI_DEFINE_p = /DwxNO_RTTI
275 !if "$(USE_THREADS)" == "0"
276 __THREAD_DEFINE_p = /DwxNO_THREADS
278 !if "$(UNICODE)" == "1"
279 __UNICODE_DEFINE_p = /D_UNICODE
282 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
284 !if "$(USE_GDIPLUS)" == "1"
285 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
287 !if "$(MONOLITHIC)" == "0"
289 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
291 !if "$(MONOLITHIC)" == "0"
293 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
295 !if "$(MONOLITHIC)" == "1"
297 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
299 !if "$(USE_GUI)" == "1"
300 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
302 !if "$(USE_GUI)" == "1"
303 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
305 !if "$(USE_GUI)" == "1"
306 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
309 __UNICOWS_LIB_p = unicows.lib
311 !if "$(USE_GDIPLUS)" == "1"
312 __GDIPLUS_LIB_p = gdiplus.lib
318 -if not exist $(OBJS) mkdir $(OBJS)
322 all: $(OBJS)\render.exe $(__renddll___depname)
325 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
326 -if exist $(OBJS)\*.res del $(OBJS)\*.res
327 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
328 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
329 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
330 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
331 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
332 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk
333 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb
335 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
336 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
337 $(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) $(__GDIPLUS_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
340 !if "$(SHARED)" == "1"
341 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
342 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) @<<
343 $(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) $(__GDIPLUS_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
347 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
348 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) $(__GFXCTX_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\include /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples $**
350 $(OBJS)\render_render.obj: .\render.cpp
351 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
353 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
354 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**