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 DATAVIEW_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
24 $(__DEBUGINFO_0) /Fd$(OBJS)\dataview.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)\dataview_dataview.obj \
36 $(OBJS)\dataview_mymodels.obj
37 DATAVIEW_RESOURCES = \
38 $(OBJS)\dataview_sample.res
40 ### Conditionally set variables: ###
42 !if "$(TOOLKIT)" == "GTK"
43 WIN32_TOOLKIT_LOWERCASE = gtk
45 !if "$(TOOLKIT)" == "MSW"
46 WIN32_TOOLKIT_LOWERCASE = msw
48 !if "$(TARGET_CPU)" == "AMD64"
51 !if "$(TARGET_CPU)" == "IA64"
54 !if "$(TARGET_CPU)" == "X64"
57 !if "$(TARGET_CPU)" == "amd64"
60 !if "$(TARGET_CPU)" == "ia64"
63 !if "$(TARGET_CPU)" == "x64"
66 !if "$(USE_GUI)" == "0"
69 !if "$(USE_GUI)" == "1"
70 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
72 !if "$(TOOLKIT)" == "MAC"
75 !if "$(OFFICIAL_BUILD)" == "1"
76 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
78 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
81 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
84 !if "$(UNICODE)" == "1"
87 !if "$(WXUNIV)" == "1"
90 !if "$(SHARED)" == "1"
93 !if "$(SHARED)" == "0"
96 !if "$(SHARED)" == "1"
99 !if "$(TARGET_CPU)" == "AMD64"
100 LINK_TARGET_CPU = /MACHINE:X64
102 !if "$(TARGET_CPU)" == "IA64"
103 LINK_TARGET_CPU = /MACHINE:IA64
105 !if "$(TARGET_CPU)" == "X64"
106 LINK_TARGET_CPU = /MACHINE:X64
108 !if "$(TARGET_CPU)" == "amd64"
109 LINK_TARGET_CPU = /MACHINE:X64
111 !if "$(TARGET_CPU)" == "ia64"
112 LINK_TARGET_CPU = /MACHINE:IA64
114 !if "$(TARGET_CPU)" == "x64"
115 LINK_TARGET_CPU = /MACHINE:X64
117 !if "$(MONOLITHIC)" == "0"
120 !if "$(MONOLITHIC)" == "1"
123 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
124 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
125 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
128 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
131 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
134 !if "$(DEBUG_INFO)" == "0"
137 !if "$(DEBUG_INFO)" == "1"
140 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
141 __DEBUGINFO_1 = /DEBUG
143 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
146 !if "$(DEBUG_INFO)" == "0"
149 !if "$(DEBUG_INFO)" == "1"
150 __DEBUGINFO_1 = /DEBUG
152 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
153 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
155 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
158 !if "$(DEBUG_INFO)" == "0"
161 !if "$(DEBUG_INFO)" == "1"
162 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
164 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
165 ____DEBUGRUNTIME_3_p = /D_DEBUG
167 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
168 ____DEBUGRUNTIME_3_p =
170 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
171 ____DEBUGRUNTIME_3_p =
173 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
174 ____DEBUGRUNTIME_3_p = /D_DEBUG
176 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
177 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
179 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
180 ____DEBUGRUNTIME_3_p_1 =
182 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
183 ____DEBUGRUNTIME_3_p_1 =
185 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
186 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
188 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
191 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
194 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
197 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
200 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
203 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
204 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
206 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
207 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
209 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
212 !if "$(BUILD)" == "debug"
213 __OPTIMIZEFLAG_6 = /Od
215 !if "$(BUILD)" == "release"
216 __OPTIMIZEFLAG_6 = /O2
218 !if "$(USE_THREADS)" == "0"
221 !if "$(USE_THREADS)" == "1"
224 !if "$(RUNTIME_LIBS)" == "dynamic"
225 __RUNTIME_LIBS_10 = D
227 !if "$(RUNTIME_LIBS)" == "static"
228 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
230 !if "$(USE_RTTI)" == "0"
233 !if "$(USE_RTTI)" == "1"
236 !if "$(USE_EXCEPTIONS)" == "0"
237 __EXCEPTIONSFLAG_12 =
239 !if "$(USE_EXCEPTIONS)" == "1"
240 __EXCEPTIONSFLAG_12 = /EHsc
242 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
243 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
245 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
246 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
248 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
249 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
251 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
252 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
254 !if "$(WXUNIV)" == "1"
255 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
257 !if "$(WXUNIV)" == "1"
258 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
260 !if "$(DEBUG_FLAG)" == "0"
261 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
263 !if "$(DEBUG_FLAG)" == "0"
264 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
266 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
267 __NDEBUG_DEFINE_p = /DNDEBUG
269 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
270 __NDEBUG_DEFINE_p = /DNDEBUG
272 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
273 __NDEBUG_DEFINE_p_1 = /d NDEBUG
275 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
276 __NDEBUG_DEFINE_p_1 = /d NDEBUG
278 !if "$(USE_EXCEPTIONS)" == "0"
279 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
281 !if "$(USE_EXCEPTIONS)" == "0"
282 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
284 !if "$(USE_RTTI)" == "0"
285 __RTTI_DEFINE_p = /DwxNO_RTTI
287 !if "$(USE_RTTI)" == "0"
288 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
290 !if "$(USE_THREADS)" == "0"
291 __THREAD_DEFINE_p = /DwxNO_THREADS
293 !if "$(USE_THREADS)" == "0"
294 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
296 !if "$(UNICODE)" == "0"
297 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
299 !if "$(UNICODE)" == "1"
300 __UNICODE_DEFINE_p = /D_UNICODE
302 !if "$(UNICODE)" == "0"
303 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
305 !if "$(UNICODE)" == "1"
306 __UNICODE_DEFINE_p_1 = /d _UNICODE
309 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
312 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
314 !if "$(USE_CAIRO)" == "1"
315 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
317 !if "$(USE_CAIRO)" == "1"
318 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = /i $(CAIRO_ROOT)\include\cairo
320 !if "$(SHARED)" == "1"
321 __DLLFLAG_p = /DWXUSINGDLL
323 !if "$(SHARED)" == "1"
324 __DLLFLAG_p_1 = /d WXUSINGDLL
326 !if "$(MONOLITHIC)" == "0"
328 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
330 !if "$(MONOLITHIC)" == "0"
332 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
334 !if "$(MONOLITHIC)" == "0"
336 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
338 !if "$(MONOLITHIC)" == "1"
340 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
342 !if "$(USE_GUI)" == "1"
343 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
345 !if "$(USE_GUI)" == "1"
346 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
348 !if "$(USE_GUI)" == "1"
349 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
352 __UNICOWS_LIB_p = unicows.lib
354 !if "$(USE_CAIRO)" == "1"
355 __CAIRO_LIB_p = cairo.lib
357 !if "$(USE_CAIRO)" == "1"
358 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
364 -if not exist $(OBJS) mkdir $(OBJS)
368 all: $(OBJS)\dataview.exe
371 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
372 -if exist $(OBJS)\*.res del $(OBJS)\*.res
373 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
374 -if exist $(OBJS)\dataview.exe del $(OBJS)\dataview.exe
375 -if exist $(OBJS)\dataview.ilk del $(OBJS)\dataview.ilk
376 -if exist $(OBJS)\dataview.pdb del $(OBJS)\dataview.pdb
378 $(OBJS)\dataview.exe: $(DATAVIEW_OBJECTS) $(OBJS)\dataview_sample.res
379 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\dataview.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
380 $(DATAVIEW_OBJECTS) $(DATAVIEW_RESOURCES) $(__WXLIB_ADV_p) $(__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
383 $(OBJS)\dataview_dataview.obj: .\dataview.cpp
384 $(CXX) /c /nologo /TP /Fo$@ $(DATAVIEW_CXXFLAGS) .\dataview.cpp
386 $(OBJS)\dataview_mymodels.obj: .\mymodels.cpp
387 $(CXX) /c /nologo /TP /Fo$@ $(DATAVIEW_CXXFLAGS) .\mymodels.cpp
389 $(OBJS)\dataview_sample.res: .\..\sample.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 .\..\sample.rc