1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.5 (http://www.bakefile.org)
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
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
21 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME) /DWIN32 \
25 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) \
26 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
27 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
28 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
29 /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
30 /I.\..\..\samples /DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
33 $(OBJS)\render_sample.res \
34 $(OBJS)\render_render.obj
35 RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_23)$(__DEBUGRUNTIME) /DWIN32 \
37 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb \
38 $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
39 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
40 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
41 $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 \
42 /DWXUSINGDLL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
44 $(OBJS)\renddll_renddll.obj
46 ### Conditionally set variables: ###
48 !if "$(USE_GUI)" == "0"
51 !if "$(USE_GUI)" == "1"
54 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
57 !if "$(DEBUG_FLAG)" == "1"
60 !if "$(UNICODE)" == "1"
63 !if "$(WXUNIV)" == "1"
66 !if "$(TARGET_CPU)" == "AMD64"
67 DIR_SUFFIX_CPU = _amd64
69 !if "$(TARGET_CPU)" == "IA64"
70 DIR_SUFFIX_CPU = _ia64
72 !if "$(TARGET_CPU)" == "amd64"
73 DIR_SUFFIX_CPU = _amd64
75 !if "$(TARGET_CPU)" == "ia64"
76 DIR_SUFFIX_CPU = _ia64
78 !if "$(SHARED)" == "1"
81 !if "$(SHARED)" == "0"
84 !if "$(SHARED)" == "1"
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)" == "amd64"
94 LINK_TARGET_CPU = /MACHINE:AMD64
96 !if "$(TARGET_CPU)" == "ia64"
97 LINK_TARGET_CPU = /MACHINE:IA64
99 !if "$(MONOLITHIC)" == "0"
102 !if "$(MONOLITHIC)" == "1"
105 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
108 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
111 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
114 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
117 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
118 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
120 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
121 ____DEBUGRUNTIME_2_p_1 =
123 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
124 ____DEBUGRUNTIME_2_p_1 =
126 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
127 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
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)" == "0"
160 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
162 !if "$(UNICODE)" == "1"
163 __UNICODE_DEFINE_p_1 = /d _UNICODE
166 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
168 !if "$(USE_GDIPLUS)" == "1"
169 __GFXCTX_DEFINE_p_1 = /d wxUSE_GRAPHICS_CONTEXT=1
171 !if "$(SHARED)" == "1"
172 __DLLFLAG_p = /DWXUSINGDLL
174 !if "$(SHARED)" == "1"
175 __DLLFLAG_p_1 = /d WXUSINGDLL
177 !if "$(SHARED)" == "1"
178 __renddll___depname = \
179 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
181 !if "$(RUNTIME_LIBS)" == "dynamic"
182 __RUNTIME_LIBS_23 = D
184 !if "$(RUNTIME_LIBS)" == "static"
185 __RUNTIME_LIBS_23 = $(__THREADSFLAG)
187 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
190 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
193 !if "$(DEBUG_INFO)" == "0"
196 !if "$(DEBUG_INFO)" == "1"
199 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
200 __DEBUGINFO_1 = /DEBUG
202 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
205 !if "$(DEBUG_INFO)" == "0"
208 !if "$(DEBUG_INFO)" == "1"
209 __DEBUGINFO_1 = /DEBUG
211 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
212 ____DEBUGRUNTIME = /D_DEBUG
214 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
217 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
220 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
221 ____DEBUGRUNTIME = /D_DEBUG
223 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
226 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
229 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
232 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
235 !if "$(BUILD)" == "debug"
238 !if "$(BUILD)" == "release"
241 !if "$(USE_THREADS)" == "0"
244 !if "$(USE_THREADS)" == "1"
247 !if "$(USE_RTTI)" == "0"
250 !if "$(USE_RTTI)" == "1"
253 !if "$(USE_EXCEPTIONS)" == "0"
256 !if "$(USE_EXCEPTIONS)" == "1"
257 __EXCEPTIONSFLAG = /EHsc
259 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
260 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
262 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
263 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
265 !if "$(WXUNIV)" == "1"
266 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
268 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
269 __DEBUG_DEFINE_p = /D__WXDEBUG__
271 !if "$(DEBUG_FLAG)" == "1"
272 __DEBUG_DEFINE_p = /D__WXDEBUG__
274 !if "$(USE_EXCEPTIONS)" == "0"
275 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
277 !if "$(USE_RTTI)" == "0"
278 __RTTI_DEFINE_p = /DwxNO_RTTI
280 !if "$(USE_THREADS)" == "0"
281 __THREAD_DEFINE_p = /DwxNO_THREADS
283 !if "$(UNICODE)" == "0"
284 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
286 !if "$(UNICODE)" == "1"
287 __UNICODE_DEFINE_p = /D_UNICODE
290 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
292 !if "$(USE_GDIPLUS)" == "1"
293 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
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
319 !if "$(USE_GDIPLUS)" == "1"
320 __GDIPLUS_LIB_p = gdiplus.lib
326 -if not exist $(OBJS) mkdir $(OBJS)
330 all: $(OBJS)\render.exe $(__renddll___depname)
333 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
334 -if exist $(OBJS)\*.res del $(OBJS)\*.res
335 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
336 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
337 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
338 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
339 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
340 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk
341 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb
343 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
344 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\render.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
345 $(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 wininet.lib
348 !if "$(SHARED)" == "1"
349 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
350 link /DLL /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(LDFLAGS) @<<
351 $(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 wininet.lib
355 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
356 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 /d NOPCH .\..\..\samples\sample.rc
358 $(OBJS)\render_render.obj: .\render.cpp
359 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) .\render.cpp
361 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
362 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) .\renddll.cpp