]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/ogl/studio/makefile.vc
blind fix for Unicode key handling (patch 1615989)
[wxWidgets.git] / contrib / samples / ogl / studio / makefile.vc
CommitLineData
fd9f42b6
VS
1# =========================================================================
2# This makefile was generated by
25bb1412 3# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
fd9f42b6
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
1fc25a89 6
fd9f42b6 7!include <../../../../build/msw/config.vc>
1fc25a89 8
fd9f42b6
VS
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
1fc25a89 12
fd9f42b6
VS
13### Variables: ###
14
ae4ccf12 15WX_RELEASE_NODOT = 29
fd9f42b6 16OBJS = \
ab6ea1ac
MW
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
18LIBDIRNAME = .\..\..\..\..\lib\vc$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
34f7e40f
JS
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91 21STUDIO_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \
34f7e40f 22 $(__DEBUGINFO_0) /Fd$(OBJS)\studio.pdb $(____DEBUGRUNTIME_2_p) \
ec08d395 23 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
8c9f8f91 24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
26 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\..\..\include /W4 /I. \
27 $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\..\samples /DNOPCH \
28 /I.\..\..\..\include $(__RTTIFLAG_9) $(__EXCEPTIONSFLAG_10) $(CPPFLAGS) \
29 $(CXXFLAGS)
34f7e40f
JS
30STUDIO_OBJECTS = \
31 $(OBJS)\studio_studio.obj \
32 $(OBJS)\studio_doc.obj \
33 $(OBJS)\studio_shapes.obj \
34 $(OBJS)\studio_symbols.obj \
35 $(OBJS)\studio_view.obj \
36 $(OBJS)\studio_cspalette.obj \
37 $(OBJS)\studio_mainfrm.obj \
38 $(OBJS)\studio_project.obj \
39 $(OBJS)\studio_dialogs.obj \
40 $(OBJS)\studio_csprint.obj \
41 $(OBJS)\studio_studio.res
fd9f42b6
VS
42
43### Conditionally set variables: ###
44
45!if "$(USE_GUI)" == "0"
46PORTNAME = base
47!endif
48!if "$(USE_GUI)" == "1"
49PORTNAME = msw
50!endif
51!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
52WXDEBUGFLAG = d
53!endif
54!if "$(DEBUG_FLAG)" == "1"
55WXDEBUGFLAG = d
56!endif
fd9f42b6
VS
57!if "$(UNICODE)" == "1"
58WXUNICODEFLAG = u
59!endif
60!if "$(WXUNIV)" == "1"
61WXUNIVNAME = univ
62!endif
9d309aad 63!if "$(TARGET_CPU)" == "amd64"
ab6ea1ac
MW
64DIR_SUFFIX_CPU = _amd64
65!endif
9d309aad
MW
66!if "$(TARGET_CPU)" == "amd64"
67DIR_SUFFIX_CPU = _amd64
68!endif
69!if "$(TARGET_CPU)" == "ia64"
70DIR_SUFFIX_CPU = _ia64
71!endif
72!if "$(TARGET_CPU)" == "ia64"
ab6ea1ac
MW
73DIR_SUFFIX_CPU = _ia64
74!endif
b17c1746
DE
75!if "$(SHARED)" == "1"
76WXDLLFLAG = dll
77!endif
b14abf14
JS
78!if "$(SHARED)" == "0"
79LIBTYPE_SUFFIX = lib
80!endif
81!if "$(SHARED)" == "1"
82LIBTYPE_SUFFIX = dll
83!endif
9d309aad
MW
84!if "$(TARGET_CPU)" == "amd64"
85LINK_TARGET_CPU = /MACHINE:AMD64
86!endif
87!if "$(TARGET_CPU)" == "amd64"
ab6ea1ac
MW
88LINK_TARGET_CPU = /MACHINE:AMD64
89!endif
9d309aad
MW
90!if "$(TARGET_CPU)" == "ia64"
91LINK_TARGET_CPU = /MACHINE:IA64
92!endif
93!if "$(TARGET_CPU)" == "ia64"
ab6ea1ac
MW
94LINK_TARGET_CPU = /MACHINE:IA64
95!endif
dd65d8c8
RN
96!if "$(MONOLITHIC)" == "0"
97EXTRALIBS_FOR_BASE =
98!endif
99!if "$(MONOLITHIC)" == "1"
100EXTRALIBS_FOR_BASE =
101!endif
fd9f42b6
VS
102!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
103__DEBUGINFO_0 = /Zi
104!endif
105!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
106__DEBUGINFO_0 =
107!endif
108!if "$(DEBUG_INFO)" == "0"
109__DEBUGINFO_0 =
110!endif
111!if "$(DEBUG_INFO)" == "1"
112__DEBUGINFO_0 = /Zi
113!endif
114!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
115__DEBUGINFO_1 = /DEBUG
116!endif
117!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
118__DEBUGINFO_1 =
119!endif
120!if "$(DEBUG_INFO)" == "0"
121__DEBUGINFO_1 =
122!endif
123!if "$(DEBUG_INFO)" == "1"
124__DEBUGINFO_1 = /DEBUG
125!endif
21c6080d
JS
126!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
127____DEBUGRUNTIME_2_p = /D_DEBUG
128!endif
129!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
130____DEBUGRUNTIME_2_p =
131!endif
b17c1746
DE
132!if "$(DEBUG_RUNTIME_LIBS)" == "0"
133____DEBUGRUNTIME_2_p =
134!endif
135!if "$(DEBUG_RUNTIME_LIBS)" == "1"
136____DEBUGRUNTIME_2_p = /D_DEBUG
137!endif
21c6080d
JS
138!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
139____DEBUGRUNTIME_2_p_1 = /d _DEBUG
fd9f42b6 140!endif
21c6080d
JS
141!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
142____DEBUGRUNTIME_2_p_1 =
b17c1746
DE
143!endif
144!if "$(DEBUG_RUNTIME_LIBS)" == "0"
145____DEBUGRUNTIME_2_p_1 =
146!endif
147!if "$(DEBUG_RUNTIME_LIBS)" == "1"
148____DEBUGRUNTIME_2_p_1 = /d _DEBUG
149!endif
21c6080d
JS
150!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
151__DEBUGRUNTIME_3 = d
b17c1746 152!endif
21c6080d
JS
153!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
154__DEBUGRUNTIME_3 =
fd9f42b6
VS
155!endif
156!if "$(DEBUG_RUNTIME_LIBS)" == "0"
157__DEBUGRUNTIME_3 =
158!endif
159!if "$(DEBUG_RUNTIME_LIBS)" == "1"
160__DEBUGRUNTIME_3 = d
161!endif
b17c1746
DE
162!if "$(BUILD)" == "debug"
163__OPTIMIZEFLAG_4 = /Od
fd9f42b6 164!endif
b17c1746
DE
165!if "$(BUILD)" == "release"
166__OPTIMIZEFLAG_4 = /O2
167!endif
8c9f8f91
JS
168!if "$(USE_THREADS)" == "0"
169__THREADSFLAG_7 = L
170!endif
171!if "$(USE_THREADS)" == "1"
172__THREADSFLAG_7 = T
173!endif
b17c1746 174!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 175__RUNTIME_LIBS_8 = D
b17c1746
DE
176!endif
177!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 178__RUNTIME_LIBS_8 = $(__THREADSFLAG_7)
fd9f42b6 179!endif
8c9f8f91
JS
180!if "$(USE_RTTI)" == "0"
181__RTTIFLAG_9 =
a4ad36cd 182!endif
8c9f8f91
JS
183!if "$(USE_RTTI)" == "1"
184__RTTIFLAG_9 = /GR
a4ad36cd
VS
185!endif
186!if "$(USE_EXCEPTIONS)" == "0"
8c9f8f91 187__EXCEPTIONSFLAG_10 =
a4ad36cd
VS
188!endif
189!if "$(USE_EXCEPTIONS)" == "1"
8c9f8f91 190__EXCEPTIONSFLAG_10 = /EHsc
a4ad36cd 191!endif
ec08d395
JS
192!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
193__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
194!endif
195!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
196__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
197!endif
198!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
199__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
200!endif
201!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
202__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
203!endif
b17c1746
DE
204!if "$(WXUNIV)" == "1"
205__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
fd9f42b6 206!endif
b17c1746
DE
207!if "$(WXUNIV)" == "1"
208__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
fd9f42b6 209!endif
b17c1746
DE
210!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
211__DEBUG_DEFINE_p = /D__WXDEBUG__
fd9f42b6 212!endif
b17c1746
DE
213!if "$(DEBUG_FLAG)" == "1"
214__DEBUG_DEFINE_p = /D__WXDEBUG__
215!endif
216!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
217__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
218!endif
219!if "$(DEBUG_FLAG)" == "1"
220__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
1fc25a89 221!endif
8c9f8f91
JS
222!if "$(USE_EXCEPTIONS)" == "0"
223__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
224!endif
225!if "$(USE_EXCEPTIONS)" == "0"
226__EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
227!endif
228!if "$(USE_RTTI)" == "0"
229__RTTI_DEFINE_p = /DwxNO_RTTI
230!endif
231!if "$(USE_RTTI)" == "0"
232__RTTI_DEFINE_p_1 = /d wxNO_RTTI
233!endif
234!if "$(USE_THREADS)" == "0"
235__THREAD_DEFINE_p = /DwxNO_THREADS
236!endif
237!if "$(USE_THREADS)" == "0"
238__THREAD_DEFINE_p_1 = /d wxNO_THREADS
239!endif
fd9f42b6 240!if "$(UNICODE)" == "1"
ec08d395 241__UNICODE_DEFINE_p = /D_UNICODE
fd9f42b6
VS
242!endif
243!if "$(UNICODE)" == "1"
ec08d395 244__UNICODE_DEFINE_p_1 = /d _UNICODE
fd9f42b6 245!endif
2113bc77
MW
246!if "$(MSLU)" == "1"
247__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
248!endif
249!if "$(MSLU)" == "1"
250__MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
251!endif
3abcf424
RD
252!if "$(USE_GDIPLUS)" == "1"
253__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
254!endif
255!if "$(USE_GDIPLUS)" == "1"
256__GFXCTX_DEFINE_p_1 = /d wxUSE_GRAPHICS_CONTEXT=1
257!endif
b17c1746
DE
258!if "$(SHARED)" == "1"
259__DLLFLAG_p = /DWXUSINGDLL
260!endif
261!if "$(SHARED)" == "1"
262__DLLFLAG_p_1 = /d WXUSINGDLL
2265a2d5 263!endif
fd9f42b6 264!if "$(MONOLITHIC)" == "0"
34f7e40f 265__WXLIB_ADV_p = \
c33fae85 266 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
34f7e40f
JS
267!endif
268!if "$(MONOLITHIC)" == "0"
b17c1746 269__WXLIB_HTML_p = \
c33fae85 270 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
fd9f42b6
VS
271!endif
272!if "$(MONOLITHIC)" == "0"
ebef1625
MW
273__WXLIB_XML_p = \
274 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
275!endif
276!if "$(MONOLITHIC)" == "0"
fd9f42b6 277__WXLIB_CORE_p = \
c33fae85 278 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
fd9f42b6 279!endif
ec08d395 280!if "$(MONOLITHIC)" == "0"
c33fae85
RN
281__WXLIB_BASE_p = \
282 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
ec08d395 283!endif
fd9f42b6
VS
284!if "$(MONOLITHIC)" == "1"
285__WXLIB_MONO_p = \
c33fae85 286 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
fd9f42b6 287!endif
b17c1746 288!if "$(USE_GUI)" == "1"
9c2d002b 289__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
fd9f42b6 290!endif
b17c1746 291!if "$(USE_GUI)" == "1"
9c2d002b 292__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
fd9f42b6 293!endif
b17c1746 294!if "$(USE_GUI)" == "1"
9c2d002b 295__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
fd9f42b6 296!endif
b17c1746
DE
297!if "$(MSLU)" == "1"
298__UNICOWS_LIB_p = unicows.lib
fd9f42b6 299!endif
3abcf424
RD
300!if "$(USE_GDIPLUS)" == "1"
301__GDIPLUS_LIB_p = gdiplus.lib
302!endif
fd9f42b6
VS
303
304
305all: $(OBJS)
306$(OBJS):
307 -if not exist $(OBJS) mkdir $(OBJS)
308
309### Targets: ###
310
34f7e40f 311all: $(OBJS)\studio.exe data
fd9f42b6 312
b17c1746
DE
313clean:
314 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
315 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 316 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
b17c1746
DE
317 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
318 -if exist $(OBJS)\studio.ilk del $(OBJS)\studio.ilk
319 -if exist $(OBJS)\studio.pdb del $(OBJS)\studio.pdb
fd9f42b6 320
b17c1746 321$(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio.res
ab6ea1ac 322 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
3abcf424 323 $(STUDIO_OBJECTS) wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.lib $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_XML_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 odbc32.lib
b17c1746 324<<
fd9f42b6 325
b17c1746
DE
326data:
327 if not exist $(OBJS) mkdir $(OBJS)
328 for %f in (studio_resources.wxr) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
329
330$(OBJS)\studio_studio.obj: .\studio.cpp
34f7e40f 331 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 332
34f7e40f
JS
333$(OBJS)\studio_doc.obj: .\doc.cpp
334 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 335
b17c1746 336$(OBJS)\studio_shapes.obj: .\shapes.cpp
34f7e40f 337 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 338
b17c1746 339$(OBJS)\studio_symbols.obj: .\symbols.cpp
34f7e40f 340 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 341
b17c1746 342$(OBJS)\studio_view.obj: .\view.cpp
34f7e40f 343 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 344
b17c1746 345$(OBJS)\studio_cspalette.obj: .\cspalette.cpp
34f7e40f 346 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 347
b17c1746 348$(OBJS)\studio_mainfrm.obj: .\mainfrm.cpp
34f7e40f 349 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 350
b17c1746 351$(OBJS)\studio_project.obj: .\project.cpp
34f7e40f 352 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
1fc25a89 353
b17c1746
DE
354$(OBJS)\studio_dialogs.obj: .\dialogs.cpp
355 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
1fc25a89 356
b17c1746
DE
357$(OBJS)\studio_csprint.obj: .\csprint.cpp
358 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
1fc25a89 359
b17c1746 360$(OBJS)\studio_studio.res: .\studio.rc
3abcf424 361 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 /i .\..\..\..\include $**
b14abf14 362