]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/widgets/makefile.vc
build a 2.9.x windows setup file and chm and htb sets of docs
[wxWidgets.git] / samples / widgets / makefile.vc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.5 (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
15WX_RELEASE_NODOT = 29
16COMPILER_PREFIX = vc
17OBJS = \
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
19LIBDIRNAME = \
20 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23WIDGETS_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \
24 $(__DEBUGINFO_0) /Fd$(OBJS)\widgets.pdb $(____DEBUGRUNTIME_2_p) \
25 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
28 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) \
29 /D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG_9) $(__EXCEPTIONSFLAG_10) \
30 $(CPPFLAGS) $(CXXFLAGS)
31WIDGETS_OBJECTS = \
32 $(OBJS)\widgets_bmpcombobox.obj \
33 $(OBJS)\widgets_button.obj \
34 $(OBJS)\widgets_checkbox.obj \
35 $(OBJS)\widgets_choice.obj \
36 $(OBJS)\widgets_clrpicker.obj \
37 $(OBJS)\widgets_combobox.obj \
38 $(OBJS)\widgets_datepick.obj \
39 $(OBJS)\widgets_dirctrl.obj \
40 $(OBJS)\widgets_dirpicker.obj \
41 $(OBJS)\widgets_editlbox.obj \
42 $(OBJS)\widgets_filectrl.obj \
43 $(OBJS)\widgets_filepicker.obj \
44 $(OBJS)\widgets_fontpicker.obj \
45 $(OBJS)\widgets_gauge.obj \
46 $(OBJS)\widgets_hyperlnk.obj \
47 $(OBJS)\widgets_itemcontainer.obj \
48 $(OBJS)\widgets_listbox.obj \
49 $(OBJS)\widgets_notebook.obj \
50 $(OBJS)\widgets_odcombobox.obj \
51 $(OBJS)\widgets_radiobox.obj \
52 $(OBJS)\widgets_searchctrl.obj \
53 $(OBJS)\widgets_slider.obj \
54 $(OBJS)\widgets_spinbtn.obj \
55 $(OBJS)\widgets_static.obj \
56 $(OBJS)\widgets_statbmp.obj \
57 $(OBJS)\widgets_textctrl.obj \
58 $(OBJS)\widgets_toggle.obj \
59 $(OBJS)\widgets_widgets.obj \
60 $(OBJS)\widgets_sample.res
61
62### Conditionally set variables: ###
63
64!if "$(USE_GUI)" == "0"
65PORTNAME = base
66!endif
67!if "$(USE_GUI)" == "1"
68PORTNAME = msw
69!endif
70!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
71WXDEBUGFLAG = d
72!endif
73!if "$(DEBUG_FLAG)" == "1"
74WXDEBUGFLAG = d
75!endif
76!if "$(UNICODE)" == "1"
77WXUNICODEFLAG = u
78!endif
79!if "$(WXUNIV)" == "1"
80WXUNIVNAME = univ
81!endif
82!if "$(TARGET_CPU)" == "AMD64"
83DIR_SUFFIX_CPU = _amd64
84!endif
85!if "$(TARGET_CPU)" == "IA64"
86DIR_SUFFIX_CPU = _ia64
87!endif
88!if "$(TARGET_CPU)" == "amd64"
89DIR_SUFFIX_CPU = _amd64
90!endif
91!if "$(TARGET_CPU)" == "ia64"
92DIR_SUFFIX_CPU = _ia64
93!endif
94!if "$(SHARED)" == "1"
95WXDLLFLAG = dll
96!endif
97!if "$(SHARED)" == "0"
98LIBTYPE_SUFFIX = lib
99!endif
100!if "$(SHARED)" == "1"
101LIBTYPE_SUFFIX = dll
102!endif
103!if "$(TARGET_CPU)" == "AMD64"
104LINK_TARGET_CPU = /MACHINE:AMD64
105!endif
106!if "$(TARGET_CPU)" == "IA64"
107LINK_TARGET_CPU = /MACHINE:IA64
108!endif
109!if "$(TARGET_CPU)" == "amd64"
110LINK_TARGET_CPU = /MACHINE:AMD64
111!endif
112!if "$(TARGET_CPU)" == "ia64"
113LINK_TARGET_CPU = /MACHINE:IA64
114!endif
115!if "$(MONOLITHIC)" == "0"
116EXTRALIBS_FOR_BASE =
117!endif
118!if "$(MONOLITHIC)" == "1"
119EXTRALIBS_FOR_BASE =
120!endif
121!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
122__DEBUGINFO_0 = /Zi
123!endif
124!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
125__DEBUGINFO_0 =
126!endif
127!if "$(DEBUG_INFO)" == "0"
128__DEBUGINFO_0 =
129!endif
130!if "$(DEBUG_INFO)" == "1"
131__DEBUGINFO_0 = /Zi
132!endif
133!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
134__DEBUGINFO_1 = /DEBUG
135!endif
136!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
137__DEBUGINFO_1 =
138!endif
139!if "$(DEBUG_INFO)" == "0"
140__DEBUGINFO_1 =
141!endif
142!if "$(DEBUG_INFO)" == "1"
143__DEBUGINFO_1 = /DEBUG
144!endif
145!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
146____DEBUGRUNTIME_2_p = /D_DEBUG
147!endif
148!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
149____DEBUGRUNTIME_2_p =
150!endif
151!if "$(DEBUG_RUNTIME_LIBS)" == "0"
152____DEBUGRUNTIME_2_p =
153!endif
154!if "$(DEBUG_RUNTIME_LIBS)" == "1"
155____DEBUGRUNTIME_2_p = /D_DEBUG
156!endif
157!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
158____DEBUGRUNTIME_2_p_1 = /d _DEBUG
159!endif
160!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
161____DEBUGRUNTIME_2_p_1 =
162!endif
163!if "$(DEBUG_RUNTIME_LIBS)" == "0"
164____DEBUGRUNTIME_2_p_1 =
165!endif
166!if "$(DEBUG_RUNTIME_LIBS)" == "1"
167____DEBUGRUNTIME_2_p_1 = /d _DEBUG
168!endif
169!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
170__DEBUGRUNTIME_3 = d
171!endif
172!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
173__DEBUGRUNTIME_3 =
174!endif
175!if "$(DEBUG_RUNTIME_LIBS)" == "0"
176__DEBUGRUNTIME_3 =
177!endif
178!if "$(DEBUG_RUNTIME_LIBS)" == "1"
179__DEBUGRUNTIME_3 = d
180!endif
181!if "$(BUILD)" == "debug"
182__OPTIMIZEFLAG_4 = /Od
183!endif
184!if "$(BUILD)" == "release"
185__OPTIMIZEFLAG_4 = /O2
186!endif
187!if "$(USE_THREADS)" == "0"
188__THREADSFLAG_7 = L
189!endif
190!if "$(USE_THREADS)" == "1"
191__THREADSFLAG_7 = T
192!endif
193!if "$(RUNTIME_LIBS)" == "dynamic"
194__RUNTIME_LIBS_8 = D
195!endif
196!if "$(RUNTIME_LIBS)" == "static"
197__RUNTIME_LIBS_8 = $(__THREADSFLAG_7)
198!endif
199!if "$(USE_RTTI)" == "0"
200__RTTIFLAG_9 =
201!endif
202!if "$(USE_RTTI)" == "1"
203__RTTIFLAG_9 = /GR
204!endif
205!if "$(USE_EXCEPTIONS)" == "0"
206__EXCEPTIONSFLAG_10 =
207!endif
208!if "$(USE_EXCEPTIONS)" == "1"
209__EXCEPTIONSFLAG_10 = /EHsc
210!endif
211!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
212__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
213!endif
214!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
215__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
216!endif
217!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
218__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
219!endif
220!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
221__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
222!endif
223!if "$(WXUNIV)" == "1"
224__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
225!endif
226!if "$(WXUNIV)" == "1"
227__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
228!endif
229!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
230__DEBUG_DEFINE_p = /D__WXDEBUG__
231!endif
232!if "$(DEBUG_FLAG)" == "1"
233__DEBUG_DEFINE_p = /D__WXDEBUG__
234!endif
235!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
236__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
237!endif
238!if "$(DEBUG_FLAG)" == "1"
239__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
240!endif
241!if "$(USE_EXCEPTIONS)" == "0"
242__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
243!endif
244!if "$(USE_EXCEPTIONS)" == "0"
245__EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
246!endif
247!if "$(USE_RTTI)" == "0"
248__RTTI_DEFINE_p = /DwxNO_RTTI
249!endif
250!if "$(USE_RTTI)" == "0"
251__RTTI_DEFINE_p_1 = /d wxNO_RTTI
252!endif
253!if "$(USE_THREADS)" == "0"
254__THREAD_DEFINE_p = /DwxNO_THREADS
255!endif
256!if "$(USE_THREADS)" == "0"
257__THREAD_DEFINE_p_1 = /d wxNO_THREADS
258!endif
259!if "$(UNICODE)" == "0"
260__UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
261!endif
262!if "$(UNICODE)" == "1"
263__UNICODE_DEFINE_p = /D_UNICODE
264!endif
265!if "$(UNICODE)" == "0"
266__UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
267!endif
268!if "$(UNICODE)" == "1"
269__UNICODE_DEFINE_p_1 = /d _UNICODE
270!endif
271!if "$(MSLU)" == "1"
272__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
273!endif
274!if "$(MSLU)" == "1"
275__MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
276!endif
277!if "$(USE_GDIPLUS)" == "1"
278__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
279!endif
280!if "$(USE_GDIPLUS)" == "1"
281__GFXCTX_DEFINE_p_1 = /d wxUSE_GRAPHICS_CONTEXT=1
282!endif
283!if "$(SHARED)" == "1"
284__DLLFLAG_p = /DWXUSINGDLL
285!endif
286!if "$(SHARED)" == "1"
287__DLLFLAG_p_1 = /d WXUSINGDLL
288!endif
289!if "$(MONOLITHIC)" == "0"
290__WXLIB_ADV_p = \
291 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
292!endif
293!if "$(MONOLITHIC)" == "0"
294__WXLIB_CORE_p = \
295 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
296!endif
297!if "$(MONOLITHIC)" == "0"
298__WXLIB_BASE_p = \
299 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
300!endif
301!if "$(MONOLITHIC)" == "1"
302__WXLIB_MONO_p = \
303 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
304!endif
305!if "$(USE_GUI)" == "1"
306__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
307!endif
308!if "$(USE_GUI)" == "1"
309__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
310!endif
311!if "$(USE_GUI)" == "1"
312__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
313!endif
314!if "$(MSLU)" == "1"
315__UNICOWS_LIB_p = unicows.lib
316!endif
317!if "$(USE_GDIPLUS)" == "1"
318__GDIPLUS_LIB_p = gdiplus.lib
319!endif
320
321
322all: $(OBJS)
323$(OBJS):
324 -if not exist $(OBJS) mkdir $(OBJS)
325
326### Targets: ###
327
328all: $(OBJS)\widgets.exe
329
330clean:
331 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
332 -if exist $(OBJS)\*.res del $(OBJS)\*.res
333 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
334 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
335 -if exist $(OBJS)\widgets.ilk del $(OBJS)\widgets.ilk
336 -if exist $(OBJS)\widgets.pdb del $(OBJS)\widgets.pdb
337
338$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample.res
339 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\widgets.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
340 $(WIDGETS_OBJECTS) $(__WXLIB_ADV_p) $(__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) $(__GDIPLUS_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
341<<
342
343$(OBJS)\widgets_bmpcombobox.obj: .\bmpcombobox.cpp
344 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\bmpcombobox.cpp
345
346$(OBJS)\widgets_button.obj: .\button.cpp
347 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\button.cpp
348
349$(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
350 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\checkbox.cpp
351
352$(OBJS)\widgets_choice.obj: .\choice.cpp
353 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\choice.cpp
354
355$(OBJS)\widgets_clrpicker.obj: .\clrpicker.cpp
356 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\clrpicker.cpp
357
358$(OBJS)\widgets_combobox.obj: .\combobox.cpp
359 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\combobox.cpp
360
361$(OBJS)\widgets_datepick.obj: .\datepick.cpp
362 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\datepick.cpp
363
364$(OBJS)\widgets_dirctrl.obj: .\dirctrl.cpp
365 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\dirctrl.cpp
366
367$(OBJS)\widgets_dirpicker.obj: .\dirpicker.cpp
368 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\dirpicker.cpp
369
370$(OBJS)\widgets_editlbox.obj: .\editlbox.cpp
371 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\editlbox.cpp
372
373$(OBJS)\widgets_filectrl.obj: .\filectrl.cpp
374 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\filectrl.cpp
375
376$(OBJS)\widgets_filepicker.obj: .\filepicker.cpp
377 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\filepicker.cpp
378
379$(OBJS)\widgets_fontpicker.obj: .\fontpicker.cpp
380 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\fontpicker.cpp
381
382$(OBJS)\widgets_gauge.obj: .\gauge.cpp
383 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\gauge.cpp
384
385$(OBJS)\widgets_hyperlnk.obj: .\hyperlnk.cpp
386 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\hyperlnk.cpp
387
388$(OBJS)\widgets_itemcontainer.obj: .\itemcontainer.cpp
389 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\itemcontainer.cpp
390
391$(OBJS)\widgets_listbox.obj: .\listbox.cpp
392 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\listbox.cpp
393
394$(OBJS)\widgets_notebook.obj: .\notebook.cpp
395 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\notebook.cpp
396
397$(OBJS)\widgets_odcombobox.obj: .\odcombobox.cpp
398 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\odcombobox.cpp
399
400$(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
401 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\radiobox.cpp
402
403$(OBJS)\widgets_searchctrl.obj: .\searchctrl.cpp
404 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\searchctrl.cpp
405
406$(OBJS)\widgets_slider.obj: .\slider.cpp
407 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\slider.cpp
408
409$(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
410 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\spinbtn.cpp
411
412$(OBJS)\widgets_static.obj: .\static.cpp
413 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\static.cpp
414
415$(OBJS)\widgets_statbmp.obj: .\statbmp.cpp
416 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\statbmp.cpp
417
418$(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
419 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\textctrl.cpp
420
421$(OBJS)\widgets_toggle.obj: .\toggle.cpp
422 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\toggle.cpp
423
424$(OBJS)\widgets_widgets.obj: .\widgets.cpp
425 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) .\widgets.cpp
426
427$(OBJS)\widgets_sample.res: .\..\sample.rc
428 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\include /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples /d NOPCH .\..\sample.rc
429