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 # -------------------------------------------------------------------------
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
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_8)$(__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) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
27 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG) \
28 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
30 $(OBJS)\render_sample.res \
31 $(OBJS)\render_render.obj
32 RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_23)$(__DEBUGRUNTIME_18) /DWIN32 \
34 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb \
35 $(____DEBUGRUNTIME_17_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
36 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
37 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
38 /I.\..\..\include /I$(SETUPHDIR) /W4 /DWXUSINGDLL $(__RTTIFLAG) \
39 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
41 $(OBJS)\renddll_renddll.obj
43 ### Conditionally set variables: ###
45 !if "$(USE_GUI)" == "0"
48 !if "$(USE_GUI)" == "1"
51 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
54 !if "$(DEBUG_FLAG)" == "1"
57 !if "$(UNICODE)" == "1"
60 !if "$(WXUNIV)" == "1"
63 !if "$(SHARED)" == "1"
66 !if "$(SHARED)" == "0"
69 !if "$(SHARED)" == "1"
72 !if "$(MONOLITHIC)" == "0"
75 !if "$(MONOLITHIC)" == "1"
78 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
81 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
84 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
87 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
90 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
91 ____DEBUGRUNTIME_2_p =
93 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
94 ____DEBUGRUNTIME_2_p = /D_DEBUG
96 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
97 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
99 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
100 ____DEBUGRUNTIME_2_p_1 =
102 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
103 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
105 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
106 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
108 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
109 ____DEBUGINFO_2_p_1 = /d _DEBUG
111 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
112 ____DEBUGINFO_2_p_1 =
114 !if "$(DEBUG_INFO)" == "0"
115 ____DEBUGINFO_2_p_1 =
117 !if "$(DEBUG_INFO)" == "1"
118 ____DEBUGINFO_2_p_1 = /d _DEBUG
120 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
123 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
126 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
127 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
129 !if "$(RUNTIME_LIBS)" == "dynamic"
132 !if "$(RUNTIME_LIBS)" == "static"
133 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
135 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
136 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
138 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
139 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
141 !if "$(WXUNIV)" == "1"
142 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
144 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
145 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
147 !if "$(DEBUG_FLAG)" == "1"
148 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
150 !if "$(USE_EXCEPTIONS)" == "0"
151 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
153 !if "$(USE_RTTI)" == "0"
154 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
156 !if "$(USE_THREADS)" == "0"
157 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
159 !if "$(UNICODE)" == "1"
160 __UNICODE_DEFINE_p_1 = /d _UNICODE
162 !if "$(SHARED)" == "1"
163 __DLLFLAG_p = /DWXUSINGDLL
165 !if "$(SHARED)" == "1"
166 __DLLFLAG_p_1 = /d WXUSINGDLL
168 !if "$(SHARED)" == "1"
169 __renddll___depname = \
170 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
172 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
173 ____DEBUGRUNTIME_17_p =
175 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
176 ____DEBUGRUNTIME_17_p = /D_DEBUG
178 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
179 ____DEBUGRUNTIME_17_p = $(____DEBUGINFO)
181 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
184 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
185 __DEBUGRUNTIME_18 = d
187 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
188 __DEBUGRUNTIME_18 = $(__DEBUGINFO_2)
190 !if "$(RUNTIME_LIBS)" == "dynamic"
191 __RUNTIME_LIBS_23 = D
193 !if "$(RUNTIME_LIBS)" == "static"
194 __RUNTIME_LIBS_23 = $(__THREADSFLAG)
196 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
199 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
202 !if "$(DEBUG_INFO)" == "0"
205 !if "$(DEBUG_INFO)" == "1"
208 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
209 __DEBUGINFO_1 = /DEBUG
211 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
214 !if "$(DEBUG_INFO)" == "0"
217 !if "$(DEBUG_INFO)" == "1"
218 __DEBUGINFO_1 = /DEBUG
220 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
221 ____DEBUGINFO = /D_DEBUG
223 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
226 !if "$(DEBUG_INFO)" == "0"
229 !if "$(DEBUG_INFO)" == "1"
230 ____DEBUGINFO = /D_DEBUG
232 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
235 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
238 !if "$(DEBUG_INFO)" == "0"
241 !if "$(DEBUG_INFO)" == "1"
244 !if "$(BUILD)" == "debug"
247 !if "$(BUILD)" == "release"
250 !if "$(USE_THREADS)" == "0"
253 !if "$(USE_THREADS)" == "1"
256 !if "$(USE_RTTI)" == "0"
259 !if "$(USE_RTTI)" == "1"
262 !if "$(USE_EXCEPTIONS)" == "0"
265 !if "$(USE_EXCEPTIONS)" == "1"
266 __EXCEPTIONSFLAG = /EHsc
268 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
269 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
271 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
272 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
274 !if "$(WXUNIV)" == "1"
275 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
277 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
278 __DEBUG_DEFINE_p = /D__WXDEBUG__
280 !if "$(DEBUG_FLAG)" == "1"
281 __DEBUG_DEFINE_p = /D__WXDEBUG__
283 !if "$(USE_EXCEPTIONS)" == "0"
284 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
286 !if "$(USE_RTTI)" == "0"
287 __RTTI_DEFINE_p = /DwxNO_RTTI
289 !if "$(USE_THREADS)" == "0"
290 __THREAD_DEFINE_p = /DwxNO_THREADS
292 !if "$(UNICODE)" == "1"
293 __UNICODE_DEFINE_p = /D_UNICODE
295 !if "$(MONOLITHIC)" == "0"
297 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
299 !if "$(MONOLITHIC)" == "0"
301 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
303 !if "$(MONOLITHIC)" == "1"
305 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
307 !if "$(USE_GUI)" == "1"
308 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
310 !if "$(USE_GUI)" == "1"
311 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
313 !if "$(USE_GUI)" == "1"
314 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
317 __UNICOWS_LIB_p = unicows.lib
323 -if not exist $(OBJS) mkdir $(OBJS)
327 all: $(OBJS)\render.exe $(__renddll___depname)
330 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
331 -if exist $(OBJS)\*.res del $(OBJS)\*.res
332 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
333 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
334 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
335 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
336 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
337 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk
338 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb
340 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
341 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
342 $(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
345 !if "$(SHARED)" == "1"
346 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
347 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
348 $(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
352 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
353 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 $**
355 $(OBJS)\render_render.obj: .\render.cpp
356 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
358 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
359 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**