]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/gizmos/makefile.vc
added conversions to/from UTF 16/32 LE/BE (patch 809685)
[wxWidgets.git] / contrib / build / gizmos / makefile.vc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
f509d00d 3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7!include <../../../build/msw/config.vc>
250700e4
RD
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
3f55f5b8 15GIZMOSDLL_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) \
ec08d395
JS
16 /DWIN32 $(__DEBUGINFO) \
17 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_vc$(VENDORTAG).pdb \
18 $(____DEBUGRUNTIME_2_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
19 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
20 /I..\..\src\gizmos\..\..\..\include /I$(SETUPHDIR) /W4 \
3f55f5b8 21 /I..\..\src\gizmos\..\..\include /DWXUSINGDLL /DWXMAKINGDLL_GIZMOS \
1c3a6972 22 $(CXXFLAGS) /GR /GX /Yu"wx/wxprec.h" /Fp"$(OBJS)\wxprec_gizmosdll.pch"
3f55f5b8
VS
23GIZMOSDLL_OBJECTS = \
24 $(OBJS)\gizmosdll_dummy.obj \
25 $(OBJS)\gizmosdll_dynamicsash.obj \
26 $(OBJS)\gizmosdll_editlbox.obj \
27 $(OBJS)\gizmosdll_ledctrl.obj \
28 $(OBJS)\gizmosdll_multicell.obj \
29 $(OBJS)\gizmosdll_splittree.obj \
30 $(OBJS)\gizmosdll_statpict.obj
ec08d395
JS
31GIZMOSLIB_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_13) \
32 /DWIN32 $(__DEBUGINFO) \
3f55f5b8 33 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.pdb \
ec08d395
JS
34 $(____DEBUGRUNTIME_12_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
35 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
36 /I..\..\src\gizmos\..\..\..\include /I$(SETUPHDIR) /W4 \
1c3a6972 37 /I..\..\src\gizmos\..\..\include $(CXXFLAGS) /GR /GX /Yu"wx/wxprec.h" \
3f55f5b8
VS
38 /Fp"$(OBJS)\wxprec_gizmoslib.pch"
39GIZMOSLIB_OBJECTS = \
40 $(OBJS)\gizmoslib_dummy.obj \
41 $(OBJS)\gizmoslib_dynamicsash.obj \
42 $(OBJS)\gizmoslib_editlbox.obj \
43 $(OBJS)\gizmoslib_ledctrl.obj \
44 $(OBJS)\gizmoslib_multicell.obj \
45 $(OBJS)\gizmoslib_splittree.obj \
46 $(OBJS)\gizmoslib_statpict.obj
3f55f5b8
VS
47OBJS = \
48 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
49SETUPHDIR = \
50 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
250700e4
RD
51
52### Conditionally set variables: ###
53
75a0a7b7
VS
54!if "$(SHARED)" == "0"
55LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\vc_lib$(CFG)
56!endif
57!if "$(SHARED)" == "1"
58LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\vc_dll$(CFG)
59!endif
250700e4
RD
60!if "$(USE_GUI)" == "0"
61PORTNAME = base
62!endif
63!if "$(USE_GUI)" == "1"
64PORTNAME = msw
65!endif
66!if "$(OFFICIAL_BUILD)" == "0"
67VENDORTAG = _$(VENDOR)
68!endif
69!if "$(OFFICIAL_BUILD)" == "1"
70VENDORTAG =
71!endif
3f55f5b8
VS
72!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
73WXDEBUGFLAG = d
74!endif
75!if "$(DEBUG_FLAG)" == "1"
250700e4
RD
76WXDEBUGFLAG = d
77!endif
78!if "$(SHARED)" == "1"
79WXDLLFLAG = dll
80!endif
81!if "$(UNICODE)" == "1"
82WXUNICODEFLAG = u
83!endif
84!if "$(WXUNIV)" == "1"
85WXUNIVNAME = univ
86!endif
3f55f5b8 87!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
ec08d395 88__DEBUGINFO = /Zi
250700e4 89!endif
3f55f5b8
VS
90!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
91__DEBUGINFO =
250700e4 92!endif
3f55f5b8
VS
93!if "$(DEBUG_INFO)" == "0"
94__DEBUGINFO =
250700e4 95!endif
3f55f5b8 96!if "$(DEBUG_INFO)" == "1"
ec08d395 97__DEBUGINFO = /Zi
250700e4 98!endif
3f55f5b8
VS
99!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
100__DEBUGINFO_1 = /DEBUG
250700e4 101!endif
3f55f5b8
VS
102!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
103__DEBUGINFO_1 =
250700e4 104!endif
3f55f5b8
VS
105!if "$(DEBUG_INFO)" == "0"
106__DEBUGINFO_1 =
107!endif
108!if "$(DEBUG_INFO)" == "1"
109__DEBUGINFO_1 = /DEBUG
110!endif
111!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
ec08d395 112__DEBUGINFO_2 = d
3f55f5b8
VS
113!endif
114!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
115__DEBUGINFO_2 =
116!endif
117!if "$(DEBUG_INFO)" == "0"
118__DEBUGINFO_2 =
119!endif
120!if "$(DEBUG_INFO)" == "1"
ec08d395 121__DEBUGINFO_2 = d
3f55f5b8
VS
122!endif
123!if "$(DEBUG_RUNTIME_LIBS)" == "0"
ec08d395 124__DEBUGRUNTIME_13 =
3f55f5b8
VS
125!endif
126!if "$(DEBUG_RUNTIME_LIBS)" == "1"
ec08d395 127__DEBUGRUNTIME_13 = d
3f55f5b8
VS
128!endif
129!if "$(DEBUG_RUNTIME_LIBS)" == "default"
ec08d395 130__DEBUGRUNTIME_13 = $(__DEBUGINFO_2)
3f55f5b8
VS
131!endif
132!if "$(DEBUG_RUNTIME_LIBS)" == "0"
133__DEBUGRUNTIME_3 =
134!endif
135!if "$(DEBUG_RUNTIME_LIBS)" == "1"
136__DEBUGRUNTIME_3 = d
137!endif
138!if "$(DEBUG_RUNTIME_LIBS)" == "default"
ec08d395 139__DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
3f55f5b8
VS
140!endif
141!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
250700e4
RD
142__DEBUG_DEFINE_p = /D__WXDEBUG__
143!endif
3f55f5b8
VS
144!if "$(DEBUG_FLAG)" == "1"
145__DEBUG_DEFINE_p = /D__WXDEBUG__
146!endif
147!if "$(USE_GUI)" == "1"
148__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
149!endif
150!if "$(USE_GUI)" == "1"
151__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
152!endif
153!if "$(USE_GUI)" == "1"
154__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
155!endif
ec08d395
JS
156!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
157__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
158!endif
159!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
160__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
161!endif
250700e4
RD
162!if "$(BUILD)" == "debug"
163__OPTIMIZEFLAG = /Od
164!endif
165!if "$(BUILD)" == "release"
166__OPTIMIZEFLAG = /O2
167!endif
168!if "$(RUNTIME_LIBS)" == "dynamic"
169__RUNTIME_LIBS = D
170!endif
171!if "$(RUNTIME_LIBS)" == "static"
f509d00d 172__RUNTIME_LIBS = T
250700e4
RD
173!endif
174!if "$(UNICODE)" == "1"
ec08d395 175__UNICODE_DEFINE_p = /D_UNICODE
250700e4 176!endif
2265a2d5
VS
177!if "$(MSLU)" == "1"
178__UNICOWS_LIB_p = unicows.lib
179!endif
250700e4
RD
180!if "$(MONOLITHIC)" == "0"
181__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
182!endif
183!if "$(MONOLITHIC)" == "0"
3f55f5b8
VS
184__WXLIB_CORE_p = \
185 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
250700e4
RD
186!endif
187!if "$(MONOLITHIC)" == "1"
3f55f5b8
VS
188__WXLIB_MONO_p = \
189 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
250700e4
RD
190!endif
191!if "$(WXUNIV)" == "1"
192__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
193!endif
3f55f5b8
VS
194!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
195____DEBUGINFO = /D_DEBUG
bdc408c4 196!endif
3f55f5b8 197!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
e2d1c567 198____DEBUGINFO =
3f55f5b8
VS
199!endif
200!if "$(DEBUG_INFO)" == "0"
e2d1c567 201____DEBUGINFO =
3f55f5b8
VS
202!endif
203!if "$(DEBUG_INFO)" == "1"
204____DEBUGINFO = /D_DEBUG
205!endif
206!if "$(DEBUG_RUNTIME_LIBS)" == "0"
ec08d395 207____DEBUGRUNTIME_12_p =
3f55f5b8
VS
208!endif
209!if "$(DEBUG_RUNTIME_LIBS)" == "1"
ec08d395 210____DEBUGRUNTIME_12_p = /D_DEBUG
3f55f5b8
VS
211!endif
212!if "$(DEBUG_RUNTIME_LIBS)" == "default"
ec08d395 213____DEBUGRUNTIME_12_p = $(____DEBUGINFO)
3f55f5b8
VS
214!endif
215!if "$(DEBUG_RUNTIME_LIBS)" == "0"
e2d1c567 216____DEBUGRUNTIME_2_p =
3f55f5b8
VS
217!endif
218!if "$(DEBUG_RUNTIME_LIBS)" == "1"
219____DEBUGRUNTIME_2_p = /D_DEBUG
220!endif
221!if "$(DEBUG_RUNTIME_LIBS)" == "default"
222____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
bdc408c4 223!endif
250700e4 224!if "$(SHARED)" == "1"
3f55f5b8 225__gizmosdll___depname = \
ec08d395 226 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_vc$(VENDORTAG).dll
250700e4
RD
227!endif
228!if "$(SHARED)" == "0"
3f55f5b8
VS
229__gizmoslib___depname = \
230 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
250700e4
RD
231!endif
232
233
234all: $(OBJS)
235$(OBJS):
236 -if not exist $(OBJS) mkdir $(OBJS)
237
238### Targets: ###
239
240all: $(__gizmosdll___depname) $(__gizmoslib___depname)
241
242$(OBJS)\gizmosdll_dummy.obj: ../../src/gizmos\..\..\..\src\msw\dummy.cpp
243 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSDLL_CXXFLAGS) /Ycwx/wxprec.h $**
244
245$(OBJS)\gizmosdll_dynamicsash.obj: ../../src/gizmos\dynamicsash.cpp
246 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSDLL_CXXFLAGS) $**
247
248$(OBJS)\gizmosdll_editlbox.obj: ../../src/gizmos\editlbox.cpp
249 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSDLL_CXXFLAGS) $**
250
251$(OBJS)\gizmosdll_ledctrl.obj: ../../src/gizmos\ledctrl.cpp
252 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSDLL_CXXFLAGS) $**
253
254$(OBJS)\gizmosdll_multicell.obj: ../../src/gizmos\multicell.cpp
255 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSDLL_CXXFLAGS) $**
256
257$(OBJS)\gizmosdll_splittree.obj: ../../src/gizmos\splittree.cpp
258 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSDLL_CXXFLAGS) $**
259
260$(OBJS)\gizmosdll_statpict.obj: ../../src/gizmos\statpict.cpp
261 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSDLL_CXXFLAGS) $**
262
263$(OBJS)\gizmoslib_dummy.obj: ../../src/gizmos\..\..\..\src\msw\dummy.cpp
264 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSLIB_CXXFLAGS) /Ycwx/wxprec.h $**
265
266$(OBJS)\gizmoslib_dynamicsash.obj: ../../src/gizmos\dynamicsash.cpp
267 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSLIB_CXXFLAGS) $**
268
269$(OBJS)\gizmoslib_editlbox.obj: ../../src/gizmos\editlbox.cpp
270 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSLIB_CXXFLAGS) $**
271
272$(OBJS)\gizmoslib_ledctrl.obj: ../../src/gizmos\ledctrl.cpp
273 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSLIB_CXXFLAGS) $**
274
275$(OBJS)\gizmoslib_multicell.obj: ../../src/gizmos\multicell.cpp
276 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSLIB_CXXFLAGS) $**
277
278$(OBJS)\gizmoslib_splittree.obj: ../../src/gizmos\splittree.cpp
279 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSLIB_CXXFLAGS) $**
280
281$(OBJS)\gizmoslib_statpict.obj: ../../src/gizmos\statpict.cpp
282 $(CXX) /c /nologo /TP /Fo$@ $(GIZMOSLIB_CXXFLAGS) $**
283
284clean:
285 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
286 -if exist $(OBJS)\*.res del $(OBJS)\*.res
ec08d395
JS
287 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_vc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_vc$(VENDORTAG).dll
288 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_vc$(VENDORTAG).ilk del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_vc$(VENDORTAG).ilk
289 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_vc$(VENDORTAG).pdb del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_vc$(VENDORTAG).pdb
3f55f5b8
VS
290 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
291 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
250700e4
RD
292
293!if "$(SHARED)" == "1"
ec08d395 294$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_vc$(VENDORTAG).dll: $(OBJS)\gizmosdll_dummy.obj $(GIZMOSDLL_OBJECTS)
3f55f5b8 295 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
ec08d395 296 $(GIZMOSDLL_OBJECTS) $(__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 $(__WXLIB_BASE_p) $(__WXLIB_CORE_p) /IMPLIB:$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
250700e4
RD
297<<
298!endif
299
300!if "$(SHARED)" == "0"
75a0a7b7 301$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib: $(OBJS)\gizmoslib_dummy.obj $(GIZMOSLIB_OBJECTS)
250700e4
RD
302 if exist $@ del $@
303 lib /NOLOGO /OUT:$@ @<<
3f55f5b8 304 $(GIZMOSLIB_OBJECTS)
250700e4
RD
305<<
306!endif