]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.vc
define ChangeSelection() (fixes wxMotif build)
[wxWidgets.git] / samples / render / makefile.vc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
77a7dfc1 3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
2d611b5c
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!include <../../build/msw/config.vc>
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
4cbcfb73
VZ
15WX_RELEASE_NODOT = 27
16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
2d611b5c 17OBJS = \
ab6ea1ac
MW
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
19LIBDIRNAME = .\..\..\lib\vc$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21c6080d
JS
22RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME) /DWIN32 \
23 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) \
24 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
9d309aad 26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
2113bc77
MW
27 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG) \
28 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
2d611b5c
VS
29RENDER_OBJECTS = \
30 $(OBJS)\render_sample.res \
31 $(OBJS)\render_render.obj
21c6080d 32RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_23)$(__DEBUGRUNTIME) /DWIN32 \
b17c1746 33 $(__DEBUGINFO) \
4cbcfb73 34 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb \
21c6080d 35 $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
8c9f8f91
JS
36 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
37 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
9d309aad 38 $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 /DWXUSINGDLL \
2113bc77 39 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
b17c1746
DE
40RENDDLL_OBJECTS = \
41 $(OBJS)\renddll_renddll.obj
2d611b5c
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
2d611b5c
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
2d611b5c 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
078c7a59 102!if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
314a6446 103PLUGINSUFFIX = d
078c7a59
VS
104!endif
105!if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
314a6446 106PLUGINSUFFIX = ud
078c7a59
VS
107!endif
108!if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
109PLUGINSUFFIX =
110!endif
111!if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
314a6446 112PLUGINSUFFIX = u
078c7a59 113!endif
21c6080d
JS
114!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
115____DEBUGRUNTIME_2_p_1 = /d _DEBUG
2d611b5c 116!endif
21c6080d
JS
117!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
118____DEBUGRUNTIME_2_p_1 =
2d611b5c 119!endif
b17c1746
DE
120!if "$(DEBUG_RUNTIME_LIBS)" == "0"
121____DEBUGRUNTIME_2_p_1 =
2d611b5c 122!endif
b17c1746
DE
123!if "$(DEBUG_RUNTIME_LIBS)" == "1"
124____DEBUGRUNTIME_2_p_1 = /d _DEBUG
2d611b5c 125!endif
8c9f8f91
JS
126!if "$(RUNTIME_LIBS)" == "dynamic"
127__RUNTIME_LIBS_8 = D
128!endif
129!if "$(RUNTIME_LIBS)" == "static"
130__RUNTIME_LIBS_8 = $(__THREADSFLAG)
131!endif
b17c1746
DE
132!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
133__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
2d611b5c 134!endif
b17c1746
DE
135!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
136__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
137!endif
138!if "$(WXUNIV)" == "1"
139__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
2d611b5c
VS
140!endif
141!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
142__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
143!endif
144!if "$(DEBUG_FLAG)" == "1"
145__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
146!endif
8c9f8f91
JS
147!if "$(USE_EXCEPTIONS)" == "0"
148__EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
149!endif
150!if "$(USE_RTTI)" == "0"
151__RTTI_DEFINE_p_1 = /d wxNO_RTTI
152!endif
153!if "$(USE_THREADS)" == "0"
154__THREAD_DEFINE_p_1 = /d wxNO_THREADS
155!endif
b17c1746
DE
156!if "$(UNICODE)" == "1"
157__UNICODE_DEFINE_p_1 = /d _UNICODE
158!endif
2113bc77
MW
159!if "$(MSLU)" == "1"
160__MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
161!endif
2d611b5c
VS
162!if "$(SHARED)" == "1"
163__DLLFLAG_p = /DWXUSINGDLL
164!endif
165!if "$(SHARED)" == "1"
166__DLLFLAG_p_1 = /d WXUSINGDLL
167!endif
b17c1746
DE
168!if "$(SHARED)" == "1"
169__renddll___depname = \
4cbcfb73 170 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
ec08d395 171!endif
8c9f8f91
JS
172!if "$(RUNTIME_LIBS)" == "dynamic"
173__RUNTIME_LIBS_23 = D
174!endif
175!if "$(RUNTIME_LIBS)" == "static"
176__RUNTIME_LIBS_23 = $(__THREADSFLAG)
2d611b5c 177!endif
b17c1746
DE
178!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
179__DEBUGINFO = /Zi
2d611b5c 180!endif
b17c1746
DE
181!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
182__DEBUGINFO =
2d611b5c 183!endif
b17c1746
DE
184!if "$(DEBUG_INFO)" == "0"
185__DEBUGINFO =
2c02ec05 186!endif
b17c1746
DE
187!if "$(DEBUG_INFO)" == "1"
188__DEBUGINFO = /Zi
2d611b5c 189!endif
b17c1746
DE
190!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
191__DEBUGINFO_1 = /DEBUG
2d611b5c 192!endif
b17c1746
DE
193!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
194__DEBUGINFO_1 =
2d611b5c 195!endif
b17c1746
DE
196!if "$(DEBUG_INFO)" == "0"
197__DEBUGINFO_1 =
2d611b5c 198!endif
b17c1746
DE
199!if "$(DEBUG_INFO)" == "1"
200__DEBUGINFO_1 = /DEBUG
2d611b5c 201!endif
21c6080d
JS
202!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
203____DEBUGRUNTIME = /D_DEBUG
2d611b5c 204!endif
21c6080d
JS
205!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
206____DEBUGRUNTIME =
2d611b5c 207!endif
21c6080d
JS
208!if "$(DEBUG_RUNTIME_LIBS)" == "0"
209____DEBUGRUNTIME =
2d611b5c 210!endif
21c6080d
JS
211!if "$(DEBUG_RUNTIME_LIBS)" == "1"
212____DEBUGRUNTIME = /D_DEBUG
2d611b5c 213!endif
21c6080d
JS
214!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
215__DEBUGRUNTIME = d
2d611b5c 216!endif
21c6080d
JS
217!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
218__DEBUGRUNTIME =
2d611b5c 219!endif
21c6080d
JS
220!if "$(DEBUG_RUNTIME_LIBS)" == "0"
221__DEBUGRUNTIME =
2d611b5c 222!endif
21c6080d
JS
223!if "$(DEBUG_RUNTIME_LIBS)" == "1"
224__DEBUGRUNTIME = d
2d611b5c 225!endif
b17c1746
DE
226!if "$(BUILD)" == "debug"
227__OPTIMIZEFLAG = /Od
2d611b5c 228!endif
b17c1746
DE
229!if "$(BUILD)" == "release"
230__OPTIMIZEFLAG = /O2
2d611b5c 231!endif
8c9f8f91
JS
232!if "$(USE_THREADS)" == "0"
233__THREADSFLAG = L
2d611b5c 234!endif
8c9f8f91
JS
235!if "$(USE_THREADS)" == "1"
236__THREADSFLAG = T
2d611b5c 237!endif
8c9f8f91
JS
238!if "$(USE_RTTI)" == "0"
239__RTTIFLAG =
2d611b5c 240!endif
8c9f8f91
JS
241!if "$(USE_RTTI)" == "1"
242__RTTIFLAG = /GR
2d611b5c 243!endif
b17c1746 244!if "$(USE_EXCEPTIONS)" == "0"
8c9f8f91 245__EXCEPTIONSFLAG =
2d611b5c 246!endif
b17c1746 247!if "$(USE_EXCEPTIONS)" == "1"
8c9f8f91 248__EXCEPTIONSFLAG = /EHsc
2d611b5c 249!endif
b17c1746
DE
250!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
251__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
252!endif
253!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
254__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
255!endif
256!if "$(WXUNIV)" == "1"
257__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
258!endif
259!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
260__DEBUG_DEFINE_p = /D__WXDEBUG__
261!endif
262!if "$(DEBUG_FLAG)" == "1"
263__DEBUG_DEFINE_p = /D__WXDEBUG__
264!endif
8c9f8f91
JS
265!if "$(USE_EXCEPTIONS)" == "0"
266__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
267!endif
268!if "$(USE_RTTI)" == "0"
269__RTTI_DEFINE_p = /DwxNO_RTTI
270!endif
271!if "$(USE_THREADS)" == "0"
272__THREAD_DEFINE_p = /DwxNO_THREADS
273!endif
b17c1746
DE
274!if "$(UNICODE)" == "1"
275__UNICODE_DEFINE_p = /D_UNICODE
276!endif
2113bc77
MW
277!if "$(MSLU)" == "1"
278__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
279!endif
b17c1746
DE
280!if "$(MONOLITHIC)" == "0"
281__WXLIB_CORE_p = \
c33fae85 282 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
b17c1746
DE
283!endif
284!if "$(MONOLITHIC)" == "0"
c33fae85
RN
285__WXLIB_BASE_p = \
286 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
287!endif
288!if "$(MONOLITHIC)" == "1"
289__WXLIB_MONO_p = \
c33fae85 290 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
291!endif
292!if "$(USE_GUI)" == "1"
9c2d002b 293__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
b17c1746
DE
294!endif
295!if "$(USE_GUI)" == "1"
9c2d002b 296__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
297!endif
298!if "$(USE_GUI)" == "1"
9c2d002b 299__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
300!endif
301!if "$(MSLU)" == "1"
302__UNICOWS_LIB_p = unicows.lib
2d611b5c
VS
303!endif
304
305
306all: $(OBJS)
307$(OBJS):
308 -if not exist $(OBJS) mkdir $(OBJS)
309
310### Targets: ###
311
312all: $(OBJS)\render.exe $(__renddll___depname)
313
2d611b5c
VS
314clean:
315 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
316 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 317 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
2d611b5c 318 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
ec08d395
JS
319 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
320 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
4cbcfb73
VZ
321 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
322 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk
323 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb
2d611b5c 324
b17c1746 325$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
ab6ea1ac 326 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
3b2cb431 327 $(RENDER_OBJECTS) $(__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) 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
DE
328<<
329
2d611b5c 330!if "$(SHARED)" == "1"
4cbcfb73 331$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
ab6ea1ac 332 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) @<<
3b2cb431 333 $(RENDDLL_OBJECTS) $(__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) 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
2d611b5c
VS
334<<
335!endif
336
b17c1746 337$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
9d309aad 338 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) /i $(SETUPHDIR) /i .\..\..\include /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples $**
b17c1746
DE
339
340$(OBJS)\render_render.obj: .\render.cpp
341 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
342
343$(OBJS)\renddll_renddll.obj: .\renddll.cpp
344 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**
b14abf14 345