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)3
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 "$(MONOLITHIC)" == "0"
66 !if "$(MONOLITHIC)" == "1"
69 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
72 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
75 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
78 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
81 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
82 ____DEBUGRUNTIME_2_p =
84 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
85 ____DEBUGRUNTIME_2_p = /D_DEBUG
87 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
88 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
90 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
91 ____DEBUGRUNTIME_2_p_1 =
93 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
94 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
96 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
97 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
99 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
100 ____DEBUGINFO_2_p_1 = /d _DEBUG
102 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
103 ____DEBUGINFO_2_p_1 =
105 !if "$(DEBUG_INFO)" == "0"
106 ____DEBUGINFO_2_p_1 =
108 !if "$(DEBUG_INFO)" == "1"
109 ____DEBUGINFO_2_p_1 = /d _DEBUG
111 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
114 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
117 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
118 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
120 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
121 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
123 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
124 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
126 !if "$(WXUNIV)" == "1"
127 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
129 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
130 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
132 !if "$(DEBUG_FLAG)" == "1"
133 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
135 !if "$(UNICODE)" == "1"
136 __UNICODE_DEFINE_p_1 = /d _UNICODE
138 !if "$(SHARED)" == "1"
139 __DLLFLAG_p = /DWXUSINGDLL
141 !if "$(SHARED)" == "1"
142 __DLLFLAG_p_1 = /d WXUSINGDLL
144 !if "$(SHARED)" == "1"
145 __renddll___depname = \
146 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
148 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
149 ____DEBUGRUNTIME_16_p =
151 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
152 ____DEBUGRUNTIME_16_p = /D_DEBUG
154 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
155 ____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
157 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
160 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
161 __DEBUGRUNTIME_17 = d
163 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
164 __DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
166 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
169 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
172 !if "$(DEBUG_INFO)" == "0"
175 !if "$(DEBUG_INFO)" == "1"
178 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
179 __DEBUGINFO_1 = /DEBUG
181 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
184 !if "$(DEBUG_INFO)" == "0"
187 !if "$(DEBUG_INFO)" == "1"
188 __DEBUGINFO_1 = /DEBUG
190 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
191 ____DEBUGINFO = /D_DEBUG
193 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
196 !if "$(DEBUG_INFO)" == "0"
199 !if "$(DEBUG_INFO)" == "1"
200 ____DEBUGINFO = /D_DEBUG
202 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
205 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
208 !if "$(DEBUG_INFO)" == "0"
211 !if "$(DEBUG_INFO)" == "1"
214 !if "$(BUILD)" == "debug"
217 !if "$(BUILD)" == "release"
220 !if "$(RUNTIME_LIBS)" == "dynamic"
223 !if "$(RUNTIME_LIBS)" == "static"
226 !if "$(USE_EXCEPTIONS)" == "0"
229 !if "$(USE_EXCEPTIONS)" == "1"
230 __EXCEPTIONSFLAG = /GR
232 !if "$(USE_EXCEPTIONS)" == "0"
235 !if "$(USE_EXCEPTIONS)" == "1"
236 __EXCEPTIONSFLAG_0 = /GX
238 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
239 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
241 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
242 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
244 !if "$(WXUNIV)" == "1"
245 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
247 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
248 __DEBUG_DEFINE_p = /D__WXDEBUG__
250 !if "$(DEBUG_FLAG)" == "1"
251 __DEBUG_DEFINE_p = /D__WXDEBUG__
253 !if "$(UNICODE)" == "1"
254 __UNICODE_DEFINE_p = /D_UNICODE
256 !if "$(SHARED)" == "0"
257 LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
259 !if "$(SHARED)" == "1"
260 LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
262 !if "$(MONOLITHIC)" == "0"
264 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
266 !if "$(MONOLITHIC)" == "0"
268 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
270 !if "$(MONOLITHIC)" == "1"
272 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
274 !if "$(USE_GUI)" == "1"
275 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
277 !if "$(USE_GUI)" == "1"
278 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
280 !if "$(USE_GUI)" == "1"
281 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
284 __UNICOWS_LIB_p = unicows.lib
290 -if not exist $(OBJS) mkdir $(OBJS)
294 all: $(OBJS)\render.exe $(__renddll___depname)
297 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
298 -if exist $(OBJS)\*.res del $(OBJS)\*.res
299 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
300 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
301 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
302 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
303 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk
304 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb
306 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
307 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
308 $(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
311 !if "$(SHARED)" == "1"
312 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
313 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
314 $(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
318 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
319 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 $**
321 $(OBJS)\render_render.obj: .\render.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
324 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**