]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.vc
Misc. corrections
[wxWidgets.git] / samples / widgets / makefile.vc
CommitLineData
6f628073
VS
1# =========================================================================
2# This makefile was generated by
f509d00d 3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
6f628073
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
2246169a 6
fd9f42b6 7!include <../../build/msw/config.vc>
2246169a 8
6f628073
VS
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
25a73439
VS
15LIBDIRNAME = \
16 .\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17OBJS = \
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19WIDGETS_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) \
20 /DWIN32 $(__DEBUGINFO_0) /Fd$(OBJS)\widgets.pdb $(____DEBUGRUNTIME_2_p) \
21 $(__OPTIMIZEFLAG_4) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22 $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(LIBDIRNAME) /I.\..\..\src\tiff \
23 /I.\..\..\src\jpeg /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex \
4e209a20
VS
24 /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS /I..\..\samples \
25 $(CXXFLAGS)
25a73439
VS
26WIDGETS_OBJECTS = \
27 $(OBJS)\widgets_button.obj \
28 $(OBJS)\widgets_combobox.obj \
29 $(OBJS)\widgets_gauge.obj \
30 $(OBJS)\widgets_listbox.obj \
31 $(OBJS)\widgets_notebook.obj \
32 $(OBJS)\widgets_radiobox.obj \
33 $(OBJS)\widgets_slider.obj \
34 $(OBJS)\widgets_spinbtn.obj \
35 $(OBJS)\widgets_static.obj \
36 $(OBJS)\widgets_textctrl.obj \
37 $(OBJS)\widgets_widgets.obj \
38 $(OBJS)\widgets_widgets.res
6f628073
VS
39
40### Conditionally set variables: ###
41
42!if "$(USE_GUI)" == "0"
43PORTNAME = base
44!endif
45!if "$(USE_GUI)" == "1"
46PORTNAME = msw
47!endif
25a73439
VS
48!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
49WXDEBUGFLAG = d
50!endif
51!if "$(DEBUG_FLAG)" == "1"
6f628073
VS
52WXDEBUGFLAG = d
53!endif
54!if "$(SHARED)" == "1"
55WXDLLFLAG = dll
56!endif
57!if "$(UNICODE)" == "1"
58WXUNICODEFLAG = u
59!endif
60!if "$(WXUNIV)" == "1"
61WXUNIVNAME = univ
62!endif
25a73439
VS
63!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
64__DEBUGINFO_0 = /Zi
250700e4 65!endif
25a73439
VS
66!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
67__DEBUGINFO_0 =
250700e4 68!endif
25a73439
VS
69!if "$(DEBUG_INFO)" == "0"
70__DEBUGINFO_0 =
250700e4 71!endif
25a73439
VS
72!if "$(DEBUG_INFO)" == "1"
73__DEBUGINFO_0 = /Zi
250700e4 74!endif
25a73439
VS
75!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
76__DEBUGINFO_1 = /DEBUG
250700e4 77!endif
25a73439
VS
78!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
79__DEBUGINFO_1 =
250700e4 80!endif
25a73439
VS
81!if "$(DEBUG_INFO)" == "0"
82__DEBUGINFO_1 =
83!endif
84!if "$(DEBUG_INFO)" == "1"
85__DEBUGINFO_1 = /DEBUG
86!endif
87!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
88__DEBUGINFO_3 = d
89!endif
90!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
91__DEBUGINFO_3 =
92!endif
93!if "$(DEBUG_INFO)" == "0"
94__DEBUGINFO_3 =
95!endif
96!if "$(DEBUG_INFO)" == "1"
97__DEBUGINFO_3 = d
98!endif
99!if "$(DEBUG_RUNTIME_LIBS)" == "0"
100__DEBUGRUNTIME_3 =
101!endif
102!if "$(DEBUG_RUNTIME_LIBS)" == "1"
103__DEBUGRUNTIME_3 = d
104!endif
105!if "$(DEBUG_RUNTIME_LIBS)" == "default"
106__DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
107!endif
108!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
6f628073
VS
109__DEBUG_DEFINE_p = /D__WXDEBUG__
110!endif
25a73439
VS
111!if "$(DEBUG_FLAG)" == "1"
112__DEBUG_DEFINE_p = /D__WXDEBUG__
113!endif
114!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
115__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
116!endif
117!if "$(DEBUG_FLAG)" == "1"
118__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
6f628073
VS
119!endif
120!if "$(SHARED)" == "1"
121__DLLFLAG_p = /DWXUSINGDLL
122!endif
123!if "$(SHARED)" == "1"
25a73439
VS
124__DLLFLAG_p_1 = /d WXUSINGDLL
125!endif
126!if "$(USE_GUI)" == "1"
127__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
128!endif
129!if "$(USE_GUI)" == "1"
130__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
131!endif
132!if "$(USE_GUI)" == "1"
133__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
6f628073 134!endif
250700e4 135!if "$(BUILD)" == "debug"
bdc408c4 136__OPTIMIZEFLAG_4 = /Od
250700e4
RD
137!endif
138!if "$(BUILD)" == "release"
bdc408c4 139__OPTIMIZEFLAG_4 = /O2
250700e4
RD
140!endif
141!if "$(RUNTIME_LIBS)" == "dynamic"
bdc408c4 142__RUNTIME_LIBS_7 = D
250700e4
RD
143!endif
144!if "$(RUNTIME_LIBS)" == "static"
bdc408c4 145__RUNTIME_LIBS_7 = T
250700e4 146!endif
6f628073
VS
147!if "$(UNICODE)" == "1"
148__UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
149!endif
150!if "$(UNICODE)" == "1"
25a73439 151__UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=1
6f628073 152!endif
4e209a20
VS
153!if "$(MSLU)" == "1"
154__UNICOWS_LIB_p = unicows.lib
155!endif
6f628073 156!if "$(MONOLITHIC)" == "0"
0706fb23
VS
157__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
158!endif
159!if "$(MONOLITHIC)" == "0"
25a73439
VS
160__WXLIB_CORE_p = \
161 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
6f628073
VS
162!endif
163!if "$(MONOLITHIC)" == "1"
25a73439
VS
164__WXLIB_MONO_p = \
165 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
6f628073
VS
166!endif
167!if "$(WXUNIV)" == "1"
168__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
169!endif
170!if "$(WXUNIV)" == "1"
25a73439 171__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
6f628073 172!endif
25a73439
VS
173!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
174____DEBUGINFO_2_p = /D_DEBUG
bdc408c4 175!endif
25a73439 176!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
fd9f42b6 177____DEBUGINFO_2_p =
bdc408c4 178!endif
25a73439 179!if "$(DEBUG_INFO)" == "0"
fd9f42b6 180____DEBUGINFO_2_p =
bdc408c4 181!endif
25a73439
VS
182!if "$(DEBUG_INFO)" == "1"
183____DEBUGINFO_2_p = /D_DEBUG
184!endif
185!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
186____DEBUGINFO_2_p_1 = /d _DEBUG
187!endif
188!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
fd9f42b6 189____DEBUGINFO_2_p_1 =
25a73439
VS
190!endif
191!if "$(DEBUG_INFO)" == "0"
fd9f42b6 192____DEBUGINFO_2_p_1 =
25a73439
VS
193!endif
194!if "$(DEBUG_INFO)" == "1"
195____DEBUGINFO_2_p_1 = /d _DEBUG
196!endif
197!if "$(DEBUG_RUNTIME_LIBS)" == "0"
fd9f42b6 198____DEBUGRUNTIME_2_p =
25a73439
VS
199!endif
200!if "$(DEBUG_RUNTIME_LIBS)" == "1"
201____DEBUGRUNTIME_2_p = /D_DEBUG
202!endif
203!if "$(DEBUG_RUNTIME_LIBS)" == "default"
204____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
205!endif
206!if "$(DEBUG_RUNTIME_LIBS)" == "0"
fd9f42b6 207____DEBUGRUNTIME_2_p_1 =
25a73439
VS
208!endif
209!if "$(DEBUG_RUNTIME_LIBS)" == "1"
210____DEBUGRUNTIME_2_p_1 = /d _DEBUG
211!endif
212!if "$(DEBUG_RUNTIME_LIBS)" == "default"
213____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
bdc408c4 214!endif
6f628073
VS
215
216
217all: $(OBJS)
218$(OBJS):
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221### Targets: ###
222
223all: $(OBJS)\widgets.exe
224
225$(OBJS)\widgets_button.obj: .\button.cpp
226 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
227
228$(OBJS)\widgets_combobox.obj: .\combobox.cpp
229 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
230
231$(OBJS)\widgets_gauge.obj: .\gauge.cpp
232 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
233
234$(OBJS)\widgets_listbox.obj: .\listbox.cpp
235 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
236
237$(OBJS)\widgets_notebook.obj: .\notebook.cpp
238 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
239
240$(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
241 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
242
243$(OBJS)\widgets_slider.obj: .\slider.cpp
244 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
245
246$(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
247 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
248
249$(OBJS)\widgets_static.obj: .\static.cpp
250 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
251
252$(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
253 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
254
255$(OBJS)\widgets_widgets.obj: .\widgets.cpp
256 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
257
258$(OBJS)\widgets_widgets.res: .\widgets.rc
4e209a20 259 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\include /i $(LIBDIRNAME) /i .\..\..\src\tiff /i .\..\..\src\jpeg /i .\..\..\src\png /i .\..\..\src\zlib /i .\..\..\src\regex /i .\..\..\src\expat\lib /i . $(__DLLFLAG_p_1) /d _WINDOWS /i ..\..\samples $**
6f628073
VS
260
261clean:
262 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
263 -if exist $(OBJS)\*.res del $(OBJS)\*.res
264 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
265
25a73439
VS
266$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_widgets.res
267 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
4e209a20 268 $(WIDGETS_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib
6f628073 269<<