1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.8 (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 # -------------------------------------------------------------------------
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
20 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 WXRC_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
24 $(__DEBUGINFO_0) /Fd$(OBJS)\wxrc.pdb $(____DEBUGRUNTIME_3_p) \
25 $(__OPTIMIZEFLAG_6) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
28 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
29 $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE \
30 /DwxUSE_GUI=0 $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) $(CPPFLAGS) \
35 ### Conditionally set variables: ###
37 !if "$(USE_GUI)" == "0"
40 !if "$(USE_GUI)" == "1"
43 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
46 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
49 !if "$(UNICODE)" == "1"
52 !if "$(WXUNIV)" == "1"
55 !if "$(TARGET_CPU)" == "AMD64"
56 DIR_SUFFIX_CPU = _amd64
58 !if "$(TARGET_CPU)" == "IA64"
59 DIR_SUFFIX_CPU = _ia64
61 !if "$(TARGET_CPU)" == "amd64"
62 DIR_SUFFIX_CPU = _amd64
64 !if "$(TARGET_CPU)" == "ia64"
65 DIR_SUFFIX_CPU = _ia64
67 !if "$(SHARED)" == "1"
70 !if "$(SHARED)" == "0"
73 !if "$(SHARED)" == "1"
76 !if "$(TARGET_CPU)" == "AMD64"
77 LINK_TARGET_CPU = /MACHINE:X64
79 !if "$(TARGET_CPU)" == "IA64"
80 LINK_TARGET_CPU = /MACHINE:IA64
82 !if "$(TARGET_CPU)" == "amd64"
83 LINK_TARGET_CPU = /MACHINE:X64
85 !if "$(TARGET_CPU)" == "ia64"
86 LINK_TARGET_CPU = /MACHINE:IA64
88 !if "$(MONOLITHIC)" == "0"
91 !if "$(MONOLITHIC)" == "1"
94 !if "$(USE_XRC)" == "1"
95 __wxrc___depname = $(OBJS)\wxrc.exe
97 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
100 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
103 !if "$(DEBUG_INFO)" == "0"
106 !if "$(DEBUG_INFO)" == "1"
109 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
110 __DEBUGINFO_1 = /DEBUG
112 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
115 !if "$(DEBUG_INFO)" == "0"
118 !if "$(DEBUG_INFO)" == "1"
119 __DEBUGINFO_1 = /DEBUG
121 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
122 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
124 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
127 !if "$(DEBUG_INFO)" == "0"
130 !if "$(DEBUG_INFO)" == "1"
131 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
133 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
134 ____DEBUGRUNTIME_3_p = /D_DEBUG
136 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
137 ____DEBUGRUNTIME_3_p =
139 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
140 ____DEBUGRUNTIME_3_p =
142 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
143 ____DEBUGRUNTIME_3_p = /D_DEBUG
145 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
148 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
151 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
154 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
157 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
160 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
161 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
163 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
164 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
166 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
169 !if "$(BUILD)" == "debug"
170 __OPTIMIZEFLAG_6 = /Od
172 !if "$(BUILD)" == "release"
173 __OPTIMIZEFLAG_6 = /O2
175 !if "$(USE_THREADS)" == "0"
178 !if "$(USE_THREADS)" == "1"
181 !if "$(RUNTIME_LIBS)" == "dynamic"
182 __RUNTIME_LIBS_10 = D
184 !if "$(RUNTIME_LIBS)" == "static"
185 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
187 !if "$(USE_RTTI)" == "0"
190 !if "$(USE_RTTI)" == "1"
193 !if "$(USE_EXCEPTIONS)" == "0"
194 __EXCEPTIONSFLAG_12 =
196 !if "$(USE_EXCEPTIONS)" == "1"
197 __EXCEPTIONSFLAG_12 = /EHsc
199 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
200 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
202 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
203 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
205 !if "$(WXUNIV)" == "1"
206 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
208 !if "$(DEBUG_FLAG)" == "0"
209 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
211 !if "$(USE_EXCEPTIONS)" == "0"
212 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
214 !if "$(USE_RTTI)" == "0"
215 __RTTI_DEFINE_p = /DwxNO_RTTI
217 !if "$(USE_THREADS)" == "0"
218 __THREAD_DEFINE_p = /DwxNO_THREADS
220 !if "$(UNICODE)" == "0"
221 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
223 !if "$(UNICODE)" == "1"
224 __UNICODE_DEFINE_p = /D_UNICODE
227 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
229 !if "$(USE_GDIPLUS)" == "1"
230 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
232 !if "$(USE_CAIRO)" == "1"
233 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
235 !if "$(SHARED)" == "1"
236 __DLLFLAG_p = /DWXUSINGDLL
238 !if "$(MONOLITHIC)" == "0"
240 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
242 !if "$(MONOLITHIC)" == "0"
244 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
246 !if "$(MONOLITHIC)" == "1"
248 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
251 __UNICOWS_LIB_p = unicows.lib
253 !if "$(USE_GDIPLUS)" == "1"
254 __GDIPLUS_LIB_p = gdiplus.lib
256 !if "$(USE_CAIRO)" == "1"
257 __CAIRO_LIB_p = cairo.lib
259 !if "$(USE_CAIRO)" == "1"
260 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
266 -if not exist $(OBJS) mkdir $(OBJS)
270 all: $(__wxrc___depname)
273 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
274 -if exist $(OBJS)\*.res del $(OBJS)\*.res
275 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
276 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
277 -if exist $(OBJS)\wxrc.ilk del $(OBJS)\wxrc.ilk
278 -if exist $(OBJS)\wxrc.pdb del $(OBJS)\wxrc.pdb
280 !if "$(USE_XRC)" == "1"
281 $(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
282 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\wxrc.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
283 $(WXRC_OBJECTS) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) $(__CAIRO_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
287 $(OBJS)\wxrc_wxrc.obj: .\wxrc.cpp
288 $(CXX) /c /nologo /TP /Fo$@ $(WXRC_CXXFLAGS) .\wxrc.cpp