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 # -------------------------------------------------------------------------
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 DOCVIEW_CXXFLAGS = /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
21 $(__DEBUGINFO_0) /Fd$(OBJS)\docview.pdb $(____DEBUGRUNTIME_2_p) \
22 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
24 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH \
25 $(__EXCEPTIONSFLAG_8) $(__EXCEPTIONSFLAG_9) $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\docview_docview.obj \
28 $(OBJS)\docview_doc.obj \
29 $(OBJS)\docview_view.obj \
30 $(OBJS)\docview_docview.res
32 ### Conditionally set variables: ###
34 !if "$(USE_GUI)" == "0"
37 !if "$(USE_GUI)" == "1"
40 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
43 !if "$(DEBUG_FLAG)" == "1"
46 !if "$(UNICODE)" == "1"
49 !if "$(WXUNIV)" == "1"
52 !if "$(SHARED)" == "1"
55 !if "$(MONOLITHIC)" == "0"
58 !if "$(MONOLITHIC)" == "1"
61 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
64 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
67 !if "$(DEBUG_INFO)" == "0"
70 !if "$(DEBUG_INFO)" == "1"
73 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
74 __DEBUGINFO_1 = /DEBUG
76 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
79 !if "$(DEBUG_INFO)" == "0"
82 !if "$(DEBUG_INFO)" == "1"
83 __DEBUGINFO_1 = /DEBUG
85 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
86 ____DEBUGRUNTIME_2_p =
88 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
89 ____DEBUGRUNTIME_2_p = /D_DEBUG
91 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
92 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
94 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
95 ____DEBUGINFO_2_p = /D_DEBUG
97 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
100 !if "$(DEBUG_INFO)" == "0"
103 !if "$(DEBUG_INFO)" == "1"
104 ____DEBUGINFO_2_p = /D_DEBUG
106 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
107 ____DEBUGRUNTIME_2_p_1 =
109 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
110 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
112 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
113 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
115 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
116 ____DEBUGINFO_2_p_1 = /d _DEBUG
118 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
119 ____DEBUGINFO_2_p_1 =
121 !if "$(DEBUG_INFO)" == "0"
122 ____DEBUGINFO_2_p_1 =
124 !if "$(DEBUG_INFO)" == "1"
125 ____DEBUGINFO_2_p_1 = /d _DEBUG
127 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
130 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
133 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
134 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
136 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
139 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
142 !if "$(DEBUG_INFO)" == "0"
145 !if "$(DEBUG_INFO)" == "1"
148 !if "$(BUILD)" == "debug"
149 __OPTIMIZEFLAG_4 = /Od
151 !if "$(BUILD)" == "release"
152 __OPTIMIZEFLAG_4 = /O2
154 !if "$(RUNTIME_LIBS)" == "dynamic"
157 !if "$(RUNTIME_LIBS)" == "static"
160 !if "$(USE_EXCEPTIONS)" == "0"
163 !if "$(USE_EXCEPTIONS)" == "1"
164 __EXCEPTIONSFLAG_8 = /GR
166 !if "$(USE_EXCEPTIONS)" == "0"
169 !if "$(USE_EXCEPTIONS)" == "1"
170 __EXCEPTIONSFLAG_9 = /GX
172 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
173 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
175 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
176 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
178 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
179 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
181 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
182 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
184 !if "$(WXUNIV)" == "1"
185 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
187 !if "$(WXUNIV)" == "1"
188 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
190 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
191 __DEBUG_DEFINE_p = /D__WXDEBUG__
193 !if "$(DEBUG_FLAG)" == "1"
194 __DEBUG_DEFINE_p = /D__WXDEBUG__
196 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
197 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
199 !if "$(DEBUG_FLAG)" == "1"
200 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
202 !if "$(UNICODE)" == "1"
203 __UNICODE_DEFINE_p = /D_UNICODE
205 !if "$(UNICODE)" == "1"
206 __UNICODE_DEFINE_p_1 = /d _UNICODE
208 !if "$(SHARED)" == "1"
209 __DLLFLAG_p = /DWXUSINGDLL
211 !if "$(SHARED)" == "1"
212 __DLLFLAG_p_1 = /d WXUSINGDLL
214 !if "$(MONOLITHIC)" == "0"
216 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
218 !if "$(MONOLITHIC)" == "0"
220 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
222 !if "$(MONOLITHIC)" == "1"
224 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
226 !if "$(USE_GUI)" == "1"
227 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
229 !if "$(USE_GUI)" == "1"
230 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
232 !if "$(USE_GUI)" == "1"
233 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
236 __UNICOWS_LIB_p = unicows.lib
238 !if "$(SHARED)" == "0"
239 LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
241 !if "$(SHARED)" == "1"
242 LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
248 -if not exist $(OBJS) mkdir $(OBJS)
252 all: $(OBJS)\docview.exe
255 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
256 -if exist $(OBJS)\*.res del $(OBJS)\*.res
257 -if exist $(OBJS)\docview.exe del $(OBJS)\docview.exe
258 -if exist $(OBJS)\docview.ilk del $(OBJS)\docview.ilk
259 -if exist $(OBJS)\docview.pdb del $(OBJS)\docview.pdb
261 $(OBJS)\docview.exe: $(DOCVIEW_OBJECTS) $(OBJS)\docview_docview.res
262 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
263 $(DOCVIEW_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
266 $(OBJS)\docview_docview.obj: .\docview.cpp
267 $(CXX) /c /nologo /TP /Fo$@ $(DOCVIEW_CXXFLAGS) $**
269 $(OBJS)\docview_doc.obj: .\doc.cpp
270 $(CXX) /c /nologo /TP /Fo$@ $(DOCVIEW_CXXFLAGS) $**
272 $(OBJS)\docview_view.obj: .\view.cpp
273 $(CXX) /c /nologo /TP /Fo$@ $(DOCVIEW_CXXFLAGS) $**
275 $(OBJS)\docview_docview.res: .\docview.rc
276 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 /d NOPCH $**