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 # -------------------------------------------------------------------------
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
18 LIBDIRNAME = .\..\..\lib\vc$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
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) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
26 /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
27 /I.\..\..\samples /DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
30 $(OBJS)\render_sample.res \
31 $(OBJS)\render_render.obj
32 RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_23)$(__DEBUGRUNTIME) /DWIN32 \
34 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb \
35 $(____DEBUGRUNTIME) $(__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 $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 \
39 /DWXUSINGDLL $(__RTTIFLAG) $(__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 "$(TARGET_CPU)" == "amd64"
64 DIR_SUFFIX_CPU = _amd64
66 !if "$(TARGET_CPU)" == "amd64"
67 DIR_SUFFIX_CPU = _amd64
69 !if "$(TARGET_CPU)" == "ia64"
70 DIR_SUFFIX_CPU = _ia64
72 !if "$(TARGET_CPU)" == "ia64"
73 DIR_SUFFIX_CPU = _ia64
75 !if "$(SHARED)" == "1"
78 !if "$(SHARED)" == "0"
81 !if "$(SHARED)" == "1"
84 !if "$(TARGET_CPU)" == "amd64"
85 LINK_TARGET_CPU = /MACHINE:AMD64
87 !if "$(TARGET_CPU)" == "amd64"
88 LINK_TARGET_CPU = /MACHINE:AMD64
90 !if "$(TARGET_CPU)" == "ia64"
91 LINK_TARGET_CPU = /MACHINE:IA64
93 !if "$(TARGET_CPU)" == "ia64"
94 LINK_TARGET_CPU = /MACHINE:IA64
96 !if "$(MONOLITHIC)" == "0"
99 !if "$(MONOLITHIC)" == "1"
102 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
105 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
108 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
111 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
114 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
115 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
117 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
118 ____DEBUGRUNTIME_2_p_1 =
120 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
121 ____DEBUGRUNTIME_2_p_1 =
123 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
124 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
126 !if "$(RUNTIME_LIBS)" == "dynamic"
129 !if "$(RUNTIME_LIBS)" == "static"
130 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
132 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
133 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
135 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
136 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
138 !if "$(WXUNIV)" == "1"
139 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
141 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
142 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
144 !if "$(DEBUG_FLAG)" == "1"
145 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
147 !if "$(USE_EXCEPTIONS)" == "0"
148 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
150 !if "$(USE_RTTI)" == "0"
151 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
153 !if "$(USE_THREADS)" == "0"
154 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
156 !if "$(UNICODE)" == "1"
157 __UNICODE_DEFINE_p_1 = /d _UNICODE
160 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
162 !if "$(USE_GDIPLUS)" == "1"
163 __GFXCTX_DEFINE_p_1 = /d wxUSE_GRAPHICS_CONTEXT=1
165 !if "$(SHARED)" == "1"
166 __DLLFLAG_p = /DWXUSINGDLL
168 !if "$(SHARED)" == "1"
169 __DLLFLAG_p_1 = /d WXUSINGDLL
171 !if "$(SHARED)" == "1"
172 __renddll___depname = \
173 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll
175 !if "$(RUNTIME_LIBS)" == "dynamic"
176 __RUNTIME_LIBS_23 = D
178 !if "$(RUNTIME_LIBS)" == "static"
179 __RUNTIME_LIBS_23 = $(__THREADSFLAG)
181 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
184 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
187 !if "$(DEBUG_INFO)" == "0"
190 !if "$(DEBUG_INFO)" == "1"
193 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
194 __DEBUGINFO_1 = /DEBUG
196 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
199 !if "$(DEBUG_INFO)" == "0"
202 !if "$(DEBUG_INFO)" == "1"
203 __DEBUGINFO_1 = /DEBUG
205 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
206 ____DEBUGRUNTIME = /D_DEBUG
208 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
211 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
214 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
215 ____DEBUGRUNTIME = /D_DEBUG
217 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
220 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
223 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
226 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
229 !if "$(BUILD)" == "debug"
232 !if "$(BUILD)" == "release"
235 !if "$(USE_THREADS)" == "0"
238 !if "$(USE_THREADS)" == "1"
241 !if "$(USE_RTTI)" == "0"
244 !if "$(USE_RTTI)" == "1"
247 !if "$(USE_EXCEPTIONS)" == "0"
250 !if "$(USE_EXCEPTIONS)" == "1"
251 __EXCEPTIONSFLAG = /EHsc
253 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
254 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
256 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
257 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
259 !if "$(WXUNIV)" == "1"
260 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
262 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
263 __DEBUG_DEFINE_p = /D__WXDEBUG__
265 !if "$(DEBUG_FLAG)" == "1"
266 __DEBUG_DEFINE_p = /D__WXDEBUG__
268 !if "$(USE_EXCEPTIONS)" == "0"
269 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
271 !if "$(USE_RTTI)" == "0"
272 __RTTI_DEFINE_p = /DwxNO_RTTI
274 !if "$(USE_THREADS)" == "0"
275 __THREAD_DEFINE_p = /DwxNO_THREADS
277 !if "$(UNICODE)" == "1"
278 __UNICODE_DEFINE_p = /D_UNICODE
281 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
283 !if "$(USE_GDIPLUS)" == "1"
284 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
286 !if "$(MONOLITHIC)" == "0"
288 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
290 !if "$(MONOLITHIC)" == "0"
292 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
294 !if "$(MONOLITHIC)" == "1"
296 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
298 !if "$(USE_GUI)" == "1"
299 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
301 !if "$(USE_GUI)" == "1"
302 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
304 !if "$(USE_GUI)" == "1"
305 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
308 __UNICOWS_LIB_p = unicows.lib
310 !if "$(USE_GDIPLUS)" == "1"
311 __GDIPLUS_LIB_p = gdiplus.lib
317 -if not exist $(OBJS) mkdir $(OBJS)
321 all: $(OBJS)\render.exe $(__renddll___depname)
324 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
325 -if exist $(OBJS)\*.res del $(OBJS)\*.res
326 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
327 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
328 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
329 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
330 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll
331 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.ilk
332 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb
334 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
335 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
336 $(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
339 !if "$(SHARED)" == "1"
340 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
341 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) @<<
342 $(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
346 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
347 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 $**
349 $(OBJS)\render_render.obj: .\render.cpp
350 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
352 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
353 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**