]> git.saurik.com Git - wxWidgets.git/blame - utils/configtool/src/makefile.vc
Cleaned up some comments, reorganized some code
[wxWidgets.git] / utils / configtool / src / makefile.vc
CommitLineData
4b20974a
VS
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
d7463f75 6
4b20974a
VS
7!include <../../../build/msw/config.vc>
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15OBJS = \
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19WXCONFIGTOOL_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) \
20 /DWIN32 $(__DEBUGINFO_0) /Fd$(OBJS)\wxconfigtool.pdb \
21 $(____DEBUGRUNTIME_2_p) $(__OPTIMIZEFLAG_4) /D__WXMSW__ \
22 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
23 /I.\..\..\..\include /I$(SETUPHDIR) /I. $(__DLLFLAG_p) /D_WINDOWS \
1c3a6972 24 /I.\..\..\..\samples $(CXXFLAGS) /GR /GX
4b20974a
VS
25WXCONFIGTOOL_OBJECTS = \
26 $(OBJS)\wxconfigtool_sample.res \
27 $(OBJS)\wxconfigtool_wxconfigtool.obj \
28 $(OBJS)\wxconfigtool_appsettings.obj \
29 $(OBJS)\wxconfigtool_configitem.obj \
30 $(OBJS)\wxconfigtool_configitemselector.obj \
31 $(OBJS)\wxconfigtool_configtooldoc.obj \
32 $(OBJS)\wxconfigtool_configtoolview.obj \
33 $(OBJS)\wxconfigtool_configtree.obj \
34 $(OBJS)\wxconfigtool_custompropertydialog.obj \
35 $(OBJS)\wxconfigtool_htmlparser.obj \
36 $(OBJS)\wxconfigtool_mainframe.obj \
37 $(OBJS)\wxconfigtool_propeditor.obj \
38 $(OBJS)\wxconfigtool_property.obj \
39 $(OBJS)\wxconfigtool_settingsdialog.obj \
40 $(OBJS)\wxconfigtool_utils.obj
41
42### Conditionally set variables: ###
43
44!if "$(SHARED)" == "0"
45LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
46!endif
47!if "$(SHARED)" == "1"
48LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
49!endif
50!if "$(USE_GUI)" == "0"
51PORTNAME = base
52!endif
53!if "$(USE_GUI)" == "1"
54PORTNAME = msw
55!endif
56!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
57WXDEBUGFLAG = d
58!endif
59!if "$(DEBUG_FLAG)" == "1"
60WXDEBUGFLAG = d
61!endif
62!if "$(SHARED)" == "1"
63WXDLLFLAG = dll
64!endif
65!if "$(UNICODE)" == "1"
66WXUNICODEFLAG = u
67!endif
68!if "$(WXUNIV)" == "1"
69WXUNIVNAME = univ
70!endif
71!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
72__DEBUGINFO_0 = /Zi
73!endif
74!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
75__DEBUGINFO_0 =
76!endif
77!if "$(DEBUG_INFO)" == "0"
78__DEBUGINFO_0 =
79!endif
80!if "$(DEBUG_INFO)" == "1"
81__DEBUGINFO_0 = /Zi
82!endif
83!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
84__DEBUGINFO_1 = /DEBUG
85!endif
86!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
87__DEBUGINFO_1 =
88!endif
89!if "$(DEBUG_INFO)" == "0"
90__DEBUGINFO_1 =
91!endif
92!if "$(DEBUG_INFO)" == "1"
93__DEBUGINFO_1 = /DEBUG
94!endif
95!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
96__DEBUGINFO_3 = d
97!endif
98!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
99__DEBUGINFO_3 =
100!endif
101!if "$(DEBUG_INFO)" == "0"
102__DEBUGINFO_3 =
103!endif
104!if "$(DEBUG_INFO)" == "1"
105__DEBUGINFO_3 = d
106!endif
107!if "$(DEBUG_RUNTIME_LIBS)" == "0"
108__DEBUGRUNTIME_3 =
109!endif
110!if "$(DEBUG_RUNTIME_LIBS)" == "1"
111__DEBUGRUNTIME_3 = d
112!endif
113!if "$(DEBUG_RUNTIME_LIBS)" == "default"
114__DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
115!endif
116!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
117__DEBUG_DEFINE_p = /D__WXDEBUG__
118!endif
119!if "$(DEBUG_FLAG)" == "1"
120__DEBUG_DEFINE_p = /D__WXDEBUG__
121!endif
122!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
123__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
124!endif
125!if "$(DEBUG_FLAG)" == "1"
126__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
127!endif
128!if "$(SHARED)" == "1"
129__DLLFLAG_p = /DWXUSINGDLL
130!endif
131!if "$(SHARED)" == "1"
132__DLLFLAG_p_1 = /d WXUSINGDLL
133!endif
134!if "$(USE_GUI)" == "1"
135__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
136!endif
137!if "$(USE_GUI)" == "1"
138__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
139!endif
140!if "$(USE_GUI)" == "1"
141__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
142!endif
143!if "$(BUILD)" == "debug"
144__OPTIMIZEFLAG_4 = /Od
145!endif
146!if "$(BUILD)" == "release"
147__OPTIMIZEFLAG_4 = /O2
148!endif
149!if "$(RUNTIME_LIBS)" == "dynamic"
150__RUNTIME_LIBS_7 = D
151!endif
152!if "$(RUNTIME_LIBS)" == "static"
153__RUNTIME_LIBS_7 = T
154!endif
155!if "$(UNICODE)" == "1"
a48abb85 156__UNICODE_DEFINE_p = /D_UNICODE
4b20974a
VS
157!endif
158!if "$(UNICODE)" == "1"
a48abb85 159__UNICODE_DEFINE_p_1 = /d _UNICODE
4b20974a
VS
160!endif
161!if "$(MSLU)" == "1"
162__UNICOWS_LIB_p = unicows.lib
163!endif
164!if "$(MONOLITHIC)" == "0"
165__WXLIB_ADV_p = \
166 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv.lib
167!endif
168!if "$(MONOLITHIC)" == "0"
169__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
170!endif
171!if "$(MONOLITHIC)" == "0"
172__WXLIB_CORE_p = \
173 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
174!endif
175!if "$(MONOLITHIC)" == "0"
176__WXLIB_HTML_p = \
177 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
178!endif
179!if "$(MONOLITHIC)" == "1"
180__WXLIB_MONO_p = \
181 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
182!endif
183!if "$(MONOLITHIC)" == "0"
184__WXLIB_XML_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml.lib
185!endif
186!if "$(WXUNIV)" == "1"
187__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
188!endif
189!if "$(WXUNIV)" == "1"
190__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
191!endif
192!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
193____DEBUGINFO_2_p = /D_DEBUG
194!endif
195!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
196____DEBUGINFO_2_p =
197!endif
198!if "$(DEBUG_INFO)" == "0"
199____DEBUGINFO_2_p =
200!endif
201!if "$(DEBUG_INFO)" == "1"
202____DEBUGINFO_2_p = /D_DEBUG
203!endif
204!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
205____DEBUGINFO_2_p_1 = /d _DEBUG
206!endif
207!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
208____DEBUGINFO_2_p_1 =
209!endif
210!if "$(DEBUG_INFO)" == "0"
211____DEBUGINFO_2_p_1 =
212!endif
213!if "$(DEBUG_INFO)" == "1"
214____DEBUGINFO_2_p_1 = /d _DEBUG
215!endif
216!if "$(DEBUG_RUNTIME_LIBS)" == "0"
217____DEBUGRUNTIME_2_p =
218!endif
219!if "$(DEBUG_RUNTIME_LIBS)" == "1"
220____DEBUGRUNTIME_2_p = /D_DEBUG
221!endif
222!if "$(DEBUG_RUNTIME_LIBS)" == "default"
223____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
224!endif
225!if "$(DEBUG_RUNTIME_LIBS)" == "0"
226____DEBUGRUNTIME_2_p_1 =
227!endif
228!if "$(DEBUG_RUNTIME_LIBS)" == "1"
229____DEBUGRUNTIME_2_p_1 = /d _DEBUG
230!endif
231!if "$(DEBUG_RUNTIME_LIBS)" == "default"
232____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
233!endif
234
235
236all: $(OBJS)
237$(OBJS):
238 -if not exist $(OBJS) mkdir $(OBJS)
239
240### Targets: ###
241
242all: $(OBJS)\wxconfigtool.exe data
243
244$(OBJS)\wxconfigtool_appsettings.obj: .\appsettings.cpp
245 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
246
247$(OBJS)\wxconfigtool_configitem.obj: .\configitem.cpp
248 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
249
250$(OBJS)\wxconfigtool_configitemselector.obj: .\configitemselector.cpp
251 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
252
253$(OBJS)\wxconfigtool_configtooldoc.obj: .\configtooldoc.cpp
254 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
255
256$(OBJS)\wxconfigtool_configtoolview.obj: .\configtoolview.cpp
257 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
258
259$(OBJS)\wxconfigtool_configtree.obj: .\configtree.cpp
260 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
261
262$(OBJS)\wxconfigtool_custompropertydialog.obj: .\custompropertydialog.cpp
263 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
264
265$(OBJS)\wxconfigtool_htmlparser.obj: .\htmlparser.cpp
266 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
267
268$(OBJS)\wxconfigtool_mainframe.obj: .\mainframe.cpp
269 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
270
271$(OBJS)\wxconfigtool_propeditor.obj: .\propeditor.cpp
272 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
273
274$(OBJS)\wxconfigtool_property.obj: .\property.cpp
275 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
276
277$(OBJS)\wxconfigtool_sample.res: .\..\..\..\samples\sample.rc
278 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 $(SETUPHDIR) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\..\samples $**
279
280$(OBJS)\wxconfigtool_settingsdialog.obj: .\settingsdialog.cpp
281 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
282
283$(OBJS)\wxconfigtool_utils.obj: .\utils.cpp
284 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
285
286$(OBJS)\wxconfigtool_wxconfigtool.obj: .\wxconfigtool.cpp
287 $(CXX) /c /nologo /TP /Fo$@ $(WXCONFIGTOOL_CXXFLAGS) $**
288
289clean:
290 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
291 -if exist $(OBJS)\*.res del $(OBJS)\*.res
292 -if exist $(OBJS)\wxconfigtool.exe del $(OBJS)\wxconfigtool.exe
a48abb85
VS
293 -if exist $(OBJS)\wxconfigtool.ilk del $(OBJS)\wxconfigtool.ilk
294 -if exist $(OBJS)\wxconfigtool.pdb del $(OBJS)\wxconfigtool.pdb
4b20974a
VS
295
296data:
297 if not exist $(OBJS) mkdir $(OBJS)
a48abb85 298 for %f in (wxwin250.wxs) do if not exist $(OBJS)\%f copy .\..\configs\%f $(OBJS)
4b20974a
VS
299
300$(OBJS)\wxconfigtool.exe: $(WXCONFIGTOOL_OBJECTS) $(OBJS)\wxconfigtool_sample.res
301 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
302 $(WXCONFIGTOOL_OBJECTS) $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_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
303<<