]> git.saurik.com Git - wxWidgets.git/blob - samples/docview/makefile.vc
Unselect all wxDataViewCtrl items when clicking outside of the item area.
[wxWidgets.git] / samples / docview / makefile.vc
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 # =========================================================================
6
7 !include <../../build/msw/config.vc>
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 29
16 COMPILER_PREFIX = vc
17 OBJS = \
18 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(ARCH_SUFFIX)
19 LIBDIRNAME = \
20 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)$(ARCH_SUFFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21 SETUPHDIR = \
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)
34 DOCVIEW_OBJECTS = \
35 $(OBJS)\docview_docview.obj \
36 $(OBJS)\docview_doc.obj \
37 $(OBJS)\docview_view.obj
38 DOCVIEW_RESOURCES = \
39 $(OBJS)\docview_docview.res
40
41 ### Conditionally set variables: ###
42
43 !if "$(TOOLKIT)" == "GTK"
44 WIN32_TOOLKIT_LOWERCASE = gtk
45 !endif
46 !if "$(TOOLKIT)" == "MSW"
47 WIN32_TOOLKIT_LOWERCASE = msw
48 !endif
49 !if "$(TARGET_CPU)" == "AMD64"
50 ARCH_SUFFIX = _x64
51 !endif
52 !if "$(TARGET_CPU)" == "IA64"
53 ARCH_SUFFIX = _ia64
54 !endif
55 !if "$(TARGET_CPU)" == "X64"
56 ARCH_SUFFIX = _x64
57 !endif
58 !if "$(TARGET_CPU)" == "amd64"
59 ARCH_SUFFIX = _x64
60 !endif
61 !if "$(TARGET_CPU)" == "ia64"
62 ARCH_SUFFIX = _ia64
63 !endif
64 !if "$(TARGET_CPU)" == "x64"
65 ARCH_SUFFIX = _x64
66 !endif
67 !if "$(USE_GUI)" == "0"
68 PORTNAME = base
69 !endif
70 !if "$(USE_GUI)" == "1"
71 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
72 !endif
73 !if "$(TOOLKIT)" == "MAC"
74 WXBASEPORT = _carbon
75 !endif
76 !if "$(OFFICIAL_BUILD)" == "1"
77 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
78 !endif
79 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
80 WXDEBUGFLAG = d
81 !endif
82 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
83 WXDEBUGFLAG = d
84 !endif
85 !if "$(UNICODE)" == "1"
86 WXUNICODEFLAG = u
87 !endif
88 !if "$(WXUNIV)" == "1"
89 WXUNIVNAME = univ
90 !endif
91 !if "$(SHARED)" == "1"
92 WXDLLFLAG = dll
93 !endif
94 !if "$(SHARED)" == "0"
95 LIBTYPE_SUFFIX = lib
96 !endif
97 !if "$(SHARED)" == "1"
98 LIBTYPE_SUFFIX = dll
99 !endif
100 !if "$(TARGET_CPU)" == "AMD64"
101 LINK_TARGET_CPU = /MACHINE:X64
102 !endif
103 !if "$(TARGET_CPU)" == "IA64"
104 LINK_TARGET_CPU = /MACHINE:IA64
105 !endif
106 !if "$(TARGET_CPU)" == "X64"
107 LINK_TARGET_CPU = /MACHINE:X64
108 !endif
109 !if "$(TARGET_CPU)" == "amd64"
110 LINK_TARGET_CPU = /MACHINE:X64
111 !endif
112 !if "$(TARGET_CPU)" == "ia64"
113 LINK_TARGET_CPU = /MACHINE:IA64
114 !endif
115 !if "$(TARGET_CPU)" == "x64"
116 LINK_TARGET_CPU = /MACHINE:X64
117 !endif
118 !if "$(MONOLITHIC)" == "0"
119 EXTRALIBS_FOR_BASE =
120 !endif
121 !if "$(MONOLITHIC)" == "1"
122 EXTRALIBS_FOR_BASE =
123 !endif
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 \
127 glib-2.0.lib
128 !endif
129 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
130 __DEBUGINFO_0 = /Zi
131 !endif
132 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
133 __DEBUGINFO_0 =
134 !endif
135 !if "$(DEBUG_INFO)" == "0"
136 __DEBUGINFO_0 =
137 !endif
138 !if "$(DEBUG_INFO)" == "1"
139 __DEBUGINFO_0 = /Zi
140 !endif
141 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
142 __DEBUGINFO_1 = /DEBUG
143 !endif
144 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
145 __DEBUGINFO_1 =
146 !endif
147 !if "$(DEBUG_INFO)" == "0"
148 __DEBUGINFO_1 =
149 !endif
150 !if "$(DEBUG_INFO)" == "1"
151 __DEBUGINFO_1 = /DEBUG
152 !endif
153 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
154 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
155 !endif
156 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
157 __DEBUGINFO_2 =
158 !endif
159 !if "$(DEBUG_INFO)" == "0"
160 __DEBUGINFO_2 =
161 !endif
162 !if "$(DEBUG_INFO)" == "1"
163 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
164 !endif
165 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
166 ____DEBUGRUNTIME_3_p = /D_DEBUG
167 !endif
168 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
169 ____DEBUGRUNTIME_3_p =
170 !endif
171 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
172 ____DEBUGRUNTIME_3_p =
173 !endif
174 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
175 ____DEBUGRUNTIME_3_p = /D_DEBUG
176 !endif
177 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
178 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
179 !endif
180 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
181 ____DEBUGRUNTIME_3_p_1 =
182 !endif
183 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
184 ____DEBUGRUNTIME_3_p_1 =
185 !endif
186 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
187 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
188 !endif
189 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
190 __DEBUGRUNTIME_4 = d
191 !endif
192 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
193 __DEBUGRUNTIME_4 =
194 !endif
195 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
196 __DEBUGRUNTIME_4 =
197 !endif
198 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
199 __DEBUGRUNTIME_4 = d
200 !endif
201 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
202 __DEBUGRUNTIME_5 =
203 !endif
204 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
205 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
206 !endif
207 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
208 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
209 !endif
210 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
211 __DEBUGRUNTIME_5 =
212 !endif
213 !if "$(BUILD)" == "debug"
214 __OPTIMIZEFLAG_6 = /Od
215 !endif
216 !if "$(BUILD)" == "release"
217 __OPTIMIZEFLAG_6 = /O2
218 !endif
219 !if "$(USE_THREADS)" == "0"
220 __THREADSFLAG_9 = L
221 !endif
222 !if "$(USE_THREADS)" == "1"
223 __THREADSFLAG_9 = T
224 !endif
225 !if "$(RUNTIME_LIBS)" == "dynamic"
226 __RUNTIME_LIBS_10 = D
227 !endif
228 !if "$(RUNTIME_LIBS)" == "static"
229 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
230 !endif
231 !if "$(USE_RTTI)" == "0"
232 __RTTIFLAG_11 =
233 !endif
234 !if "$(USE_RTTI)" == "1"
235 __RTTIFLAG_11 = /GR
236 !endif
237 !if "$(USE_EXCEPTIONS)" == "0"
238 __EXCEPTIONSFLAG_12 =
239 !endif
240 !if "$(USE_EXCEPTIONS)" == "1"
241 __EXCEPTIONSFLAG_12 = /EHsc
242 !endif
243 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
244 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
245 !endif
246 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
247 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
248 !endif
249 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
250 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
251 !endif
252 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
253 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
254 !endif
255 !if "$(WXUNIV)" == "1"
256 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
257 !endif
258 !if "$(WXUNIV)" == "1"
259 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
260 !endif
261 !if "$(DEBUG_FLAG)" == "0"
262 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
263 !endif
264 !if "$(DEBUG_FLAG)" == "0"
265 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
266 !endif
267 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
268 __NDEBUG_DEFINE_p = /DNDEBUG
269 !endif
270 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
271 __NDEBUG_DEFINE_p = /DNDEBUG
272 !endif
273 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
274 __NDEBUG_DEFINE_p_1 = /d NDEBUG
275 !endif
276 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
277 __NDEBUG_DEFINE_p_1 = /d NDEBUG
278 !endif
279 !if "$(USE_EXCEPTIONS)" == "0"
280 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
281 !endif
282 !if "$(USE_EXCEPTIONS)" == "0"
283 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
284 !endif
285 !if "$(USE_RTTI)" == "0"
286 __RTTI_DEFINE_p = /DwxNO_RTTI
287 !endif
288 !if "$(USE_RTTI)" == "0"
289 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
290 !endif
291 !if "$(USE_THREADS)" == "0"
292 __THREAD_DEFINE_p = /DwxNO_THREADS
293 !endif
294 !if "$(USE_THREADS)" == "0"
295 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
296 !endif
297 !if "$(UNICODE)" == "0"
298 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
299 !endif
300 !if "$(UNICODE)" == "1"
301 __UNICODE_DEFINE_p = /D_UNICODE
302 !endif
303 !if "$(UNICODE)" == "0"
304 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
305 !endif
306 !if "$(UNICODE)" == "1"
307 __UNICODE_DEFINE_p_1 = /d _UNICODE
308 !endif
309 !if "$(MSLU)" == "1"
310 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
311 !endif
312 !if "$(MSLU)" == "1"
313 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
314 !endif
315 !if "$(USE_CAIRO)" == "1"
316 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
317 !endif
318 !if "$(USE_CAIRO)" == "1"
319 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = /i $(CAIRO_ROOT)\include\cairo
320 !endif
321 !if "$(SHARED)" == "1"
322 __DLLFLAG_p = /DWXUSINGDLL
323 !endif
324 !if "$(SHARED)" == "1"
325 __DLLFLAG_p_1 = /d WXUSINGDLL
326 !endif
327 !if "$(MONOLITHIC)" == "0"
328 __WXLIB_CORE_p = \
329 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
330 !endif
331 !if "$(MONOLITHIC)" == "0"
332 __WXLIB_BASE_p = \
333 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
334 !endif
335 !if "$(MONOLITHIC)" == "1"
336 __WXLIB_MONO_p = \
337 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
338 !endif
339 !if "$(USE_GUI)" == "1"
340 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
341 !endif
342 !if "$(USE_GUI)" == "1"
343 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
344 !endif
345 !if "$(USE_GUI)" == "1"
346 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
347 !endif
348 !if "$(MSLU)" == "1"
349 __UNICOWS_LIB_p = unicows.lib
350 !endif
351 !if "$(USE_CAIRO)" == "1"
352 __CAIRO_LIB_p = cairo.lib
353 !endif
354 !if "$(USE_CAIRO)" == "1"
355 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
356 !endif
357
358
359 all: $(OBJS)
360 $(OBJS):
361 -if not exist $(OBJS) mkdir $(OBJS)
362
363 ### Targets: ###
364
365 all: $(OBJS)\docview.exe
366
367 clean:
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
374
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
378 <<
379
380 $(OBJS)\docview_docview.obj: .\docview.cpp
381 $(CXX) /c /nologo /TP /Fo$@ $(DOCVIEW_CXXFLAGS) .\docview.cpp
382
383 $(OBJS)\docview_doc.obj: .\doc.cpp
384 $(CXX) /c /nologo /TP /Fo$@ $(DOCVIEW_CXXFLAGS) .\doc.cpp
385
386 $(OBJS)\docview_view.obj: .\view.cpp
387 $(CXX) /c /nologo /TP /Fo$@ $(DOCVIEW_CXXFLAGS) .\view.cpp
388
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
391