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