1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (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)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(ARCH_SUFFIX)
20 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)$(ARCH_SUFFIX)_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 DOCVIEW_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
24 $(__DEBUGINFO_0) /Fd$(OBJS)\docview.pdb $(____DEBUGRUNTIME_3_p) \
25 $(__OPTIMIZEFLAG_6) /D_CRT_SECURE_NO_DEPRECATE=1 \
26 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
27 $(__NO_VC_CRTDBG_p) /D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
28 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
29 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
30 $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
31 $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
32 /I.\..\..\samples /DNOPCH $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) \
33 $(CPPFLAGS) $(CXXFLAGS)
35 $(OBJS)\docview_docview.obj \
36 $(OBJS)\docview_doc.obj \
37 $(OBJS)\docview_view.obj
39 $(OBJS)\docview_docview.res
41 ### Conditionally set variables: ###
43 !if "$(TOOLKIT)" == "GTK"
44 WIN32_TOOLKIT_LOWERCASE = gtk
46 !if "$(TOOLKIT)" == "MSW"
47 WIN32_TOOLKIT_LOWERCASE = msw
49 !if "$(TARGET_CPU)" == "AMD64"
52 !if "$(TARGET_CPU)" == "IA64"
55 !if "$(TARGET_CPU)" == "X64"
58 !if "$(TARGET_CPU)" == "amd64"
61 !if "$(TARGET_CPU)" == "ia64"
64 !if "$(TARGET_CPU)" == "x64"
67 !if "$(USE_GUI)" == "0"
70 !if "$(USE_GUI)" == "1"
71 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
73 !if "$(TOOLKIT)" == "MAC"
76 !if "$(OFFICIAL_BUILD)" == "1"
77 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
79 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
82 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
85 !if "$(UNICODE)" == "1"
88 !if "$(WXUNIV)" == "1"
91 !if "$(SHARED)" == "1"
94 !if "$(SHARED)" == "0"
97 !if "$(SHARED)" == "1"
100 !if "$(TARGET_CPU)" == "AMD64"
101 LINK_TARGET_CPU = /MACHINE:X64
103 !if "$(TARGET_CPU)" == "IA64"
104 LINK_TARGET_CPU = /MACHINE:IA64
106 !if "$(TARGET_CPU)" == "X64"
107 LINK_TARGET_CPU = /MACHINE:X64
109 !if "$(TARGET_CPU)" == "amd64"
110 LINK_TARGET_CPU = /MACHINE:X64
112 !if "$(TARGET_CPU)" == "ia64"
113 LINK_TARGET_CPU = /MACHINE:IA64
115 !if "$(TARGET_CPU)" == "x64"
116 LINK_TARGET_CPU = /MACHINE:X64
118 !if "$(MONOLITHIC)" == "0"
121 !if "$(MONOLITHIC)" == "1"
124 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
125 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
126 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
129 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
132 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
135 !if "$(DEBUG_INFO)" == "0"
138 !if "$(DEBUG_INFO)" == "1"
141 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
142 __DEBUGINFO_1 = /DEBUG
144 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
147 !if "$(DEBUG_INFO)" == "0"
150 !if "$(DEBUG_INFO)" == "1"
151 __DEBUGINFO_1 = /DEBUG
153 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
154 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
156 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
159 !if "$(DEBUG_INFO)" == "0"
162 !if "$(DEBUG_INFO)" == "1"
163 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
165 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
166 ____DEBUGRUNTIME_3_p = /D_DEBUG
168 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
169 ____DEBUGRUNTIME_3_p =
171 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
172 ____DEBUGRUNTIME_3_p =
174 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
175 ____DEBUGRUNTIME_3_p = /D_DEBUG
177 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
178 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
180 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
181 ____DEBUGRUNTIME_3_p_1 =
183 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
184 ____DEBUGRUNTIME_3_p_1 =
186 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
187 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
189 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
192 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
195 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
198 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
201 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
204 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
205 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
207 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
208 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
210 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
213 !if "$(BUILD)" == "debug"
214 __OPTIMIZEFLAG_6 = /Od
216 !if "$(BUILD)" == "release"
217 __OPTIMIZEFLAG_6 = /O2
219 !if "$(USE_THREADS)" == "0"
222 !if "$(USE_THREADS)" == "1"
225 !if "$(RUNTIME_LIBS)" == "dynamic"
226 __RUNTIME_LIBS_10 = D
228 !if "$(RUNTIME_LIBS)" == "static"
229 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
231 !if "$(USE_RTTI)" == "0"
234 !if "$(USE_RTTI)" == "1"
237 !if "$(USE_EXCEPTIONS)" == "0"
238 __EXCEPTIONSFLAG_12 =
240 !if "$(USE_EXCEPTIONS)" == "1"
241 __EXCEPTIONSFLAG_12 = /EHsc
243 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
244 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
246 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
247 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
249 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
250 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
252 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
253 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
255 !if "$(WXUNIV)" == "1"
256 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
258 !if "$(WXUNIV)" == "1"
259 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
261 !if "$(DEBUG_FLAG)" == "0"
262 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
264 !if "$(DEBUG_FLAG)" == "0"
265 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
267 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
268 __NDEBUG_DEFINE_p = /DNDEBUG
270 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
271 __NDEBUG_DEFINE_p = /DNDEBUG
273 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
274 __NDEBUG_DEFINE_p_1 = /d NDEBUG
276 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
277 __NDEBUG_DEFINE_p_1 = /d NDEBUG
279 !if "$(USE_EXCEPTIONS)" == "0"
280 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
282 !if "$(USE_EXCEPTIONS)" == "0"
283 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
285 !if "$(USE_RTTI)" == "0"
286 __RTTI_DEFINE_p = /DwxNO_RTTI
288 !if "$(USE_RTTI)" == "0"
289 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
291 !if "$(USE_THREADS)" == "0"
292 __THREAD_DEFINE_p = /DwxNO_THREADS
294 !if "$(USE_THREADS)" == "0"
295 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
297 !if "$(UNICODE)" == "0"
298 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
300 !if "$(UNICODE)" == "1"
301 __UNICODE_DEFINE_p = /D_UNICODE
303 !if "$(UNICODE)" == "0"
304 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
306 !if "$(UNICODE)" == "1"
307 __UNICODE_DEFINE_p_1 = /d _UNICODE
310 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
313 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
315 !if "$(USE_CAIRO)" == "1"
316 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
318 !if "$(USE_CAIRO)" == "1"
319 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = /i $(CAIRO_ROOT)\include\cairo
321 !if "$(SHARED)" == "1"
322 __DLLFLAG_p = /DWXUSINGDLL
324 !if "$(SHARED)" == "1"
325 __DLLFLAG_p_1 = /d WXUSINGDLL
327 !if "$(MONOLITHIC)" == "0"
329 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
331 !if "$(MONOLITHIC)" == "0"
333 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
335 !if "$(MONOLITHIC)" == "1"
337 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
339 !if "$(USE_GUI)" == "1"
340 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
342 !if "$(USE_GUI)" == "1"
343 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
345 !if "$(USE_GUI)" == "1"
346 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
349 __UNICOWS_LIB_p = unicows.lib
351 !if "$(USE_CAIRO)" == "1"
352 __CAIRO_LIB_p = cairo.lib
354 !if "$(USE_CAIRO)" == "1"
355 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
361 -if not exist $(OBJS) mkdir $(OBJS)
365 all: $(OBJS)\docview.exe
368 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
369 -if exist $(OBJS)\*.res del $(OBJS)\*.res
370 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
371 -if exist $(OBJS)\docview.exe del $(OBJS)\docview.exe
372 -if exist $(OBJS)\docview.ilk del $(OBJS)\docview.ilk
373 -if exist $(OBJS)\docview.pdb del $(OBJS)\docview.pdb
375 $(OBJS)\docview.exe: $(DOCVIEW_OBJECTS) $(OBJS)\docview_docview.res
376 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\docview.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
377 $(DOCVIEW_OBJECTS) $(DOCVIEW_RESOURCES) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_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
380 $(OBJS)\docview_docview.obj: .\docview.cpp
381 $(CXX) /c /nologo /TP /Fo$@ $(DOCVIEW_CXXFLAGS) .\docview.cpp
383 $(OBJS)\docview_doc.obj: .\doc.cpp
384 $(CXX) /c /nologo /TP /Fo$@ $(DOCVIEW_CXXFLAGS) .\doc.cpp
386 $(OBJS)\docview_view.obj: .\view.cpp
387 $(CXX) /c /nologo /TP /Fo$@ $(DOCVIEW_CXXFLAGS) .\view.cpp
389 $(OBJS)\docview_docview.res: .\docview.rc
390 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_3_p_1) /d _CRT_SECURE_NO_DEPRECATE=1 /d _CRT_NON_CONFORMING_SWPRINTFS=1 /d _SCL_SECURE_NO_WARNINGS=1 $(__NO_VC_CRTDBG_p_1) /d __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_1_p) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples /d NOPCH .\docview.rc