1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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)2
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
22 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME_2_p) \
23 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
25 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH \
26 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\render_sample.res \
29 $(OBJS)\render_render.obj
30 RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_17) /DWIN32 \
32 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb \
33 $(____DEBUGRUNTIME_16_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
34 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
35 /I.\..\..\include /I$(SETUPHDIR) /W4 /DWXUSINGDLL $(__EXCEPTIONSFLAG) \
36 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
38 $(OBJS)\renddll_renddll.obj
40 ### Conditionally set variables: ###
42 !if "$(USE_GUI)" == "0"
45 !if "$(USE_GUI)" == "1"
48 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
51 !if "$(DEBUG_FLAG)" == "1"
54 !if "$(UNICODE)" == "1"
57 !if "$(WXUNIV)" == "1"
60 !if "$(SHARED)" == "1"
63 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
66 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
69 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
72 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
75 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
76 ____DEBUGRUNTIME_2_p =
78 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
79 ____DEBUGRUNTIME_2_p = /D_DEBUG
81 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
82 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
84 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
85 ____DEBUGRUNTIME_2_p_1 =
87 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
88 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
90 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
91 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
93 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
94 ____DEBUGINFO_2_p_1 = /d _DEBUG
96 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
99 !if "$(DEBUG_INFO)" == "0"
100 ____DEBUGINFO_2_p_1 =
102 !if "$(DEBUG_INFO)" == "1"
103 ____DEBUGINFO_2_p_1 = /d _DEBUG
105 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
108 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
111 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
112 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
114 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
115 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
117 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
118 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
120 !if "$(WXUNIV)" == "1"
121 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
123 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
124 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
126 !if "$(DEBUG_FLAG)" == "1"
127 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
129 !if "$(UNICODE)" == "1"
130 __UNICODE_DEFINE_p_1 = /d _UNICODE
132 !if "$(SHARED)" == "1"
133 __DLLFLAG_p = /DWXUSINGDLL
135 !if "$(SHARED)" == "1"
136 __DLLFLAG_p_1 = /d WXUSINGDLL
138 !if "$(SHARED)" == "1"
139 __renddll___depname = \
140 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
142 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
143 ____DEBUGRUNTIME_16_p =
145 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
146 ____DEBUGRUNTIME_16_p = /D_DEBUG
148 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
149 ____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
151 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
154 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
155 __DEBUGRUNTIME_17 = d
157 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
158 __DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
160 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
163 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
166 !if "$(DEBUG_INFO)" == "0"
169 !if "$(DEBUG_INFO)" == "1"
172 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
173 __DEBUGINFO_1 = /DEBUG
175 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
178 !if "$(DEBUG_INFO)" == "0"
181 !if "$(DEBUG_INFO)" == "1"
182 __DEBUGINFO_1 = /DEBUG
184 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
185 ____DEBUGINFO = /D_DEBUG
187 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
190 !if "$(DEBUG_INFO)" == "0"
193 !if "$(DEBUG_INFO)" == "1"
194 ____DEBUGINFO = /D_DEBUG
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"
211 !if "$(BUILD)" == "release"
214 !if "$(RUNTIME_LIBS)" == "dynamic"
217 !if "$(RUNTIME_LIBS)" == "static"
220 !if "$(USE_EXCEPTIONS)" == "0"
223 !if "$(USE_EXCEPTIONS)" == "1"
224 __EXCEPTIONSFLAG = /GR
226 !if "$(USE_EXCEPTIONS)" == "0"
229 !if "$(USE_EXCEPTIONS)" == "1"
230 __EXCEPTIONSFLAG_0 = /GX
232 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
233 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
235 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
236 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
238 !if "$(WXUNIV)" == "1"
239 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
241 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
242 __DEBUG_DEFINE_p = /D__WXDEBUG__
244 !if "$(DEBUG_FLAG)" == "1"
245 __DEBUG_DEFINE_p = /D__WXDEBUG__
247 !if "$(UNICODE)" == "1"
248 __UNICODE_DEFINE_p = /D_UNICODE
250 !if "$(SHARED)" == "0"
251 LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
253 !if "$(SHARED)" == "1"
254 LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
256 !if "$(MONOLITHIC)" == "0"
258 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
260 !if "$(MONOLITHIC)" == "0"
262 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
264 !if "$(MONOLITHIC)" == "1"
266 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
268 !if "$(USE_GUI)" == "1"
269 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
271 !if "$(USE_GUI)" == "1"
272 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
274 !if "$(USE_GUI)" == "1"
275 __LIB_PNG_p = wxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
278 __UNICOWS_LIB_p = unicows.lib
284 -if not exist $(OBJS) mkdir $(OBJS)
288 all: $(OBJS)\render.exe $(__renddll___depname)
291 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
292 -if exist $(OBJS)\*.res del $(OBJS)\*.res
293 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
294 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
295 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
296 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
297 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk
298 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb
300 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
301 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
302 $(RENDER_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__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
305 !if "$(SHARED)" == "1"
306 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
307 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
308 $(RENDDLL_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__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
312 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
313 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 $**
315 $(OBJS)\render_render.obj: .\render.cpp
316 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
318 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
319 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**