]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.vc
(should) fix unix compilation...
[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
15OBJS = \
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
25a73439
VS
19WIDGETS_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) \
20 /DWIN32 $(__DEBUGINFO_0) /Fd$(OBJS)\widgets.pdb $(____DEBUGRUNTIME_2_p) \
ec08d395
JS
21 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
22 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
b71531ad
VZ
23 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples $(CXXFLAGS) \
24 $(__EXCEPTIONSFLAG_8) $(__EXCEPTIONSFLAG_9)
25a73439
VS
25WIDGETS_OBJECTS = \
26 $(OBJS)\widgets_button.obj \
8941fa88 27 $(OBJS)\widgets_checkbox.obj \
25a73439
VS
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
75a0a7b7
VS
42!if "$(SHARED)" == "0"
43LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
44!endif
45!if "$(SHARED)" == "1"
46LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
47!endif
6f628073
VS
48!if "$(USE_GUI)" == "0"
49PORTNAME = base
50!endif
51!if "$(USE_GUI)" == "1"
52PORTNAME = msw
53!endif
25a73439
VS
54!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
55WXDEBUGFLAG = d
56!endif
57!if "$(DEBUG_FLAG)" == "1"
6f628073
VS
58WXDEBUGFLAG = d
59!endif
60!if "$(SHARED)" == "1"
61WXDLLFLAG = dll
62!endif
63!if "$(UNICODE)" == "1"
64WXUNICODEFLAG = u
65!endif
66!if "$(WXUNIV)" == "1"
67WXUNIVNAME = univ
68!endif
25a73439
VS
69!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
70__DEBUGINFO_0 = /Zi
250700e4 71!endif
25a73439
VS
72!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
73__DEBUGINFO_0 =
250700e4 74!endif
25a73439
VS
75!if "$(DEBUG_INFO)" == "0"
76__DEBUGINFO_0 =
250700e4 77!endif
25a73439
VS
78!if "$(DEBUG_INFO)" == "1"
79__DEBUGINFO_0 = /Zi
250700e4 80!endif
25a73439
VS
81!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
82__DEBUGINFO_1 = /DEBUG
250700e4 83!endif
25a73439
VS
84!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
85__DEBUGINFO_1 =
250700e4 86!endif
25a73439
VS
87!if "$(DEBUG_INFO)" == "0"
88__DEBUGINFO_1 =
89!endif
90!if "$(DEBUG_INFO)" == "1"
91__DEBUGINFO_1 = /DEBUG
92!endif
93!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
94__DEBUGINFO_3 = d
95!endif
96!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
97__DEBUGINFO_3 =
98!endif
99!if "$(DEBUG_INFO)" == "0"
100__DEBUGINFO_3 =
101!endif
102!if "$(DEBUG_INFO)" == "1"
103__DEBUGINFO_3 = d
104!endif
105!if "$(DEBUG_RUNTIME_LIBS)" == "0"
106__DEBUGRUNTIME_3 =
107!endif
108!if "$(DEBUG_RUNTIME_LIBS)" == "1"
109__DEBUGRUNTIME_3 = d
110!endif
111!if "$(DEBUG_RUNTIME_LIBS)" == "default"
112__DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
113!endif
114!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
6f628073
VS
115__DEBUG_DEFINE_p = /D__WXDEBUG__
116!endif
25a73439
VS
117!if "$(DEBUG_FLAG)" == "1"
118__DEBUG_DEFINE_p = /D__WXDEBUG__
119!endif
120!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
121__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
122!endif
123!if "$(DEBUG_FLAG)" == "1"
124__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
6f628073
VS
125!endif
126!if "$(SHARED)" == "1"
127__DLLFLAG_p = /DWXUSINGDLL
128!endif
129!if "$(SHARED)" == "1"
25a73439
VS
130__DLLFLAG_p_1 = /d WXUSINGDLL
131!endif
b71531ad
VZ
132!if "$(USE_EXCEPTIONS)" == "0"
133__EXCEPTIONSFLAG_8 =
134!endif
135!if "$(USE_EXCEPTIONS)" == "1"
136__EXCEPTIONSFLAG_8 = /GR
137!endif
138!if "$(USE_EXCEPTIONS)" == "0"
139__EXCEPTIONSFLAG_9 =
140!endif
141!if "$(USE_EXCEPTIONS)" == "1"
142__EXCEPTIONSFLAG_9 = /GX
143!endif
25a73439
VS
144!if "$(USE_GUI)" == "1"
145__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
146!endif
147!if "$(USE_GUI)" == "1"
148__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
149!endif
150!if "$(USE_GUI)" == "1"
151__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
6f628073 152!endif
ec08d395
JS
153!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
154__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
155!endif
156!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
157__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
158!endif
159!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
160__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
161!endif
162!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
163__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
164!endif
250700e4 165!if "$(BUILD)" == "debug"
bdc408c4 166__OPTIMIZEFLAG_4 = /Od
250700e4
RD
167!endif
168!if "$(BUILD)" == "release"
bdc408c4 169__OPTIMIZEFLAG_4 = /O2
250700e4
RD
170!endif
171!if "$(RUNTIME_LIBS)" == "dynamic"
bdc408c4 172__RUNTIME_LIBS_7 = D
250700e4
RD
173!endif
174!if "$(RUNTIME_LIBS)" == "static"
bdc408c4 175__RUNTIME_LIBS_7 = T
250700e4 176!endif
6f628073 177!if "$(UNICODE)" == "1"
ec08d395 178__UNICODE_DEFINE_p = /D_UNICODE
6f628073
VS
179!endif
180!if "$(UNICODE)" == "1"
ec08d395 181__UNICODE_DEFINE_p_1 = /d _UNICODE
6f628073 182!endif
4e209a20
VS
183!if "$(MSLU)" == "1"
184__UNICOWS_LIB_p = unicows.lib
185!endif
6f628073 186!if "$(MONOLITHIC)" == "0"
0706fb23
VS
187__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
188!endif
189!if "$(MONOLITHIC)" == "0"
25a73439
VS
190__WXLIB_CORE_p = \
191 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
6f628073
VS
192!endif
193!if "$(MONOLITHIC)" == "1"
25a73439
VS
194__WXLIB_MONO_p = \
195 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
6f628073
VS
196!endif
197!if "$(WXUNIV)" == "1"
198__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
199!endif
200!if "$(WXUNIV)" == "1"
25a73439 201__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
6f628073 202!endif
25a73439
VS
203!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
204____DEBUGINFO_2_p = /D_DEBUG
bdc408c4 205!endif
25a73439 206!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
fd9f42b6 207____DEBUGINFO_2_p =
bdc408c4 208!endif
25a73439 209!if "$(DEBUG_INFO)" == "0"
fd9f42b6 210____DEBUGINFO_2_p =
bdc408c4 211!endif
25a73439
VS
212!if "$(DEBUG_INFO)" == "1"
213____DEBUGINFO_2_p = /D_DEBUG
214!endif
215!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
216____DEBUGINFO_2_p_1 = /d _DEBUG
217!endif
218!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
fd9f42b6 219____DEBUGINFO_2_p_1 =
25a73439
VS
220!endif
221!if "$(DEBUG_INFO)" == "0"
fd9f42b6 222____DEBUGINFO_2_p_1 =
25a73439
VS
223!endif
224!if "$(DEBUG_INFO)" == "1"
225____DEBUGINFO_2_p_1 = /d _DEBUG
226!endif
227!if "$(DEBUG_RUNTIME_LIBS)" == "0"
fd9f42b6 228____DEBUGRUNTIME_2_p =
25a73439
VS
229!endif
230!if "$(DEBUG_RUNTIME_LIBS)" == "1"
231____DEBUGRUNTIME_2_p = /D_DEBUG
232!endif
233!if "$(DEBUG_RUNTIME_LIBS)" == "default"
234____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
235!endif
236!if "$(DEBUG_RUNTIME_LIBS)" == "0"
fd9f42b6 237____DEBUGRUNTIME_2_p_1 =
25a73439
VS
238!endif
239!if "$(DEBUG_RUNTIME_LIBS)" == "1"
240____DEBUGRUNTIME_2_p_1 = /d _DEBUG
241!endif
242!if "$(DEBUG_RUNTIME_LIBS)" == "default"
243____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
bdc408c4 244!endif
6f628073
VS
245
246
247all: $(OBJS)
248$(OBJS):
249 -if not exist $(OBJS) mkdir $(OBJS)
250
251### Targets: ###
252
253all: $(OBJS)\widgets.exe
254
255$(OBJS)\widgets_button.obj: .\button.cpp
256 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
257
8941fa88
VZ
258$(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
259 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
260
6f628073
VS
261$(OBJS)\widgets_combobox.obj: .\combobox.cpp
262 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
263
264$(OBJS)\widgets_gauge.obj: .\gauge.cpp
265 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
266
267$(OBJS)\widgets_listbox.obj: .\listbox.cpp
268 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
269
270$(OBJS)\widgets_notebook.obj: .\notebook.cpp
271 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
272
273$(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
274 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
275
276$(OBJS)\widgets_slider.obj: .\slider.cpp
277 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
278
279$(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
280 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
281
282$(OBJS)\widgets_static.obj: .\static.cpp
283 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
284
285$(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
286 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
287
288$(OBJS)\widgets_widgets.obj: .\widgets.cpp
289 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
290
291$(OBJS)\widgets_widgets.res: .\widgets.rc
ec08d395 292 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples $**
6f628073
VS
293
294clean:
295 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
296 -if exist $(OBJS)\*.res del $(OBJS)\*.res
297 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
ec08d395
JS
298 -if exist $(OBJS)\widgets.ilk del $(OBJS)\widgets.ilk
299 -if exist $(OBJS)\widgets.pdb del $(OBJS)\widgets.pdb
6f628073 300
25a73439 301$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_widgets.res
75a0a7b7 302 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
ec08d395 303 $(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 oleacc.lib
6f628073 304<<