1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (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 WXRC_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \
22 $(__DEBUGINFO_0) /Fd$(OBJS)\wxrc.pdb $(____DEBUGRUNTIME_2_p) \
23 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 /I.\..\..\include /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE \
27 /DwxUSE_GUI=0 $(__RTTIFLAG_9) $(__EXCEPTIONSFLAG_10) $(CPPFLAGS) $(CXXFLAGS)
31 ### Conditionally set variables: ###
33 !if "$(USE_GUI)" == "0"
36 !if "$(USE_GUI)" == "1"
39 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
42 !if "$(DEBUG_FLAG)" == "1"
45 !if "$(UNICODE)" == "1"
48 !if "$(WXUNIV)" == "1"
51 !if "$(TARGET_CPU)" == "AMD64"
52 DIR_SUFFIX_CPU = _amd64
54 !if "$(TARGET_CPU)" == "IA64"
55 DIR_SUFFIX_CPU = _ia64
57 !if "$(SHARED)" == "1"
60 !if "$(SHARED)" == "0"
63 !if "$(SHARED)" == "1"
66 !if "$(TARGET_CPU)" == "AMD64"
67 LINK_TARGET_CPU = /MACHINE:AMD64
69 !if "$(TARGET_CPU)" == "IA64"
70 LINK_TARGET_CPU = /MACHINE:IA64
72 !if "$(MONOLITHIC)" == "0"
75 !if "$(MONOLITHIC)" == "1"
78 !if "$(USE_XRC)" == "1"
79 __wxrc___depname = $(OBJS)\wxrc.exe
81 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
84 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
87 !if "$(DEBUG_INFO)" == "0"
90 !if "$(DEBUG_INFO)" == "1"
93 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
94 __DEBUGINFO_1 = /DEBUG
96 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
99 !if "$(DEBUG_INFO)" == "0"
102 !if "$(DEBUG_INFO)" == "1"
103 __DEBUGINFO_1 = /DEBUG
105 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
106 ____DEBUGRUNTIME_2_p = /D_DEBUG
108 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
109 ____DEBUGRUNTIME_2_p =
111 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
112 ____DEBUGRUNTIME_2_p =
114 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
115 ____DEBUGRUNTIME_2_p = /D_DEBUG
117 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
120 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
123 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
126 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
129 !if "$(BUILD)" == "debug"
130 __OPTIMIZEFLAG_4 = /Od
132 !if "$(BUILD)" == "release"
133 __OPTIMIZEFLAG_4 = /O2
135 !if "$(USE_THREADS)" == "0"
138 !if "$(USE_THREADS)" == "1"
141 !if "$(RUNTIME_LIBS)" == "dynamic"
144 !if "$(RUNTIME_LIBS)" == "static"
145 __RUNTIME_LIBS_8 = $(__THREADSFLAG_7)
147 !if "$(USE_RTTI)" == "0"
150 !if "$(USE_RTTI)" == "1"
153 !if "$(USE_EXCEPTIONS)" == "0"
154 __EXCEPTIONSFLAG_10 =
156 !if "$(USE_EXCEPTIONS)" == "1"
157 __EXCEPTIONSFLAG_10 = /EHsc
159 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
160 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
162 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
163 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
165 !if "$(WXUNIV)" == "1"
166 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
168 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
169 __DEBUG_DEFINE_p = /D__WXDEBUG__
171 !if "$(DEBUG_FLAG)" == "1"
172 __DEBUG_DEFINE_p = /D__WXDEBUG__
174 !if "$(USE_EXCEPTIONS)" == "0"
175 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
177 !if "$(USE_RTTI)" == "0"
178 __RTTI_DEFINE_p = /DwxNO_RTTI
180 !if "$(USE_THREADS)" == "0"
181 __THREAD_DEFINE_p = /DwxNO_THREADS
183 !if "$(UNICODE)" == "1"
184 __UNICODE_DEFINE_p = /D_UNICODE
187 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
189 !if "$(SHARED)" == "1"
190 __DLLFLAG_p = /DWXUSINGDLL
192 !if "$(MONOLITHIC)" == "0"
194 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
196 !if "$(MONOLITHIC)" == "0"
198 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
200 !if "$(MONOLITHIC)" == "1"
202 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
204 !if "$(USE_GUI)" == "1"
205 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
207 !if "$(USE_GUI)" == "1"
208 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
210 !if "$(USE_GUI)" == "1"
211 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
214 __UNICOWS_LIB_p = unicows.lib
220 -if not exist $(OBJS) mkdir $(OBJS)
224 all: $(__wxrc___depname)
227 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
228 -if exist $(OBJS)\*.res del $(OBJS)\*.res
229 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
230 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
231 -if exist $(OBJS)\wxrc.ilk del $(OBJS)\wxrc.ilk
232 -if exist $(OBJS)\wxrc.pdb del $(OBJS)\wxrc.pdb
234 !if "$(USE_XRC)" == "1"
235 $(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
236 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
237 $(WXRC_OBJECTS) $(__WXLIB_XML_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
241 $(OBJS)\wxrc_wxrc.obj: .\wxrc.cpp
242 $(CXX) /c /nologo /TP /Fo$@ $(WXRC_CXXFLAGS) $**