]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/render/makefile.vc
stub out wxRegion ctor not implemented in wxMGL and wxDFB to at least fix compilation
[wxWidgets.git] / samples / render / makefile.vc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
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
15WX_RELEASE_NODOT = 28
16OBJS = \
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
18LIBDIRNAME = .\..\..\lib\vc$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME) /DWIN32 \
22 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) \
23 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
26 /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
27 /I.\..\..\samples /DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
28 $(CXXFLAGS)
29RENDER_OBJECTS = \
30 $(OBJS)\render_sample.res \
31 $(OBJS)\render_render.obj
32RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_23)$(__DEBUGRUNTIME) /DWIN32 \
33 $(__DEBUGINFO) \
34 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb \
35 $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
36 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
37 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
38 $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 \
39 /DWXUSINGDLL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
40RENDDLL_OBJECTS = \
41 $(OBJS)\renddll_renddll.obj
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
57!if "$(UNICODE)" == "1"
58WXUNICODEFLAG = u
59!endif
60!if "$(WXUNIV)" == "1"
61WXUNIVNAME = univ
62!endif
63!if "$(TARGET_CPU)" == "amd64"
64DIR_SUFFIX_CPU = _amd64
65!endif
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"
73DIR_SUFFIX_CPU = _ia64
74!endif
75!if "$(SHARED)" == "1"
76WXDLLFLAG = dll
77!endif
78!if "$(SHARED)" == "0"
79LIBTYPE_SUFFIX = lib
80!endif
81!if "$(SHARED)" == "1"
82LIBTYPE_SUFFIX = dll
83!endif
84!if "$(TARGET_CPU)" == "amd64"
85LINK_TARGET_CPU = /MACHINE:AMD64
86!endif
87!if "$(TARGET_CPU)" == "amd64"
88LINK_TARGET_CPU = /MACHINE:AMD64
89!endif
90!if "$(TARGET_CPU)" == "ia64"
91LINK_TARGET_CPU = /MACHINE:IA64
92!endif
93!if "$(TARGET_CPU)" == "ia64"
94LINK_TARGET_CPU = /MACHINE:IA64
95!endif
96!if "$(MONOLITHIC)" == "0"
97EXTRALIBS_FOR_BASE =
98!endif
99!if "$(MONOLITHIC)" == "1"
100EXTRALIBS_FOR_BASE =
101!endif
102!if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
103PLUGINSUFFIX = d
104!endif
105!if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
106PLUGINSUFFIX = ud
107!endif
108!if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
109PLUGINSUFFIX =
110!endif
111!if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
112PLUGINSUFFIX = u
113!endif
114!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
115____DEBUGRUNTIME_2_p_1 = /d _DEBUG
116!endif
117!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
118____DEBUGRUNTIME_2_p_1 =
119!endif
120!if "$(DEBUG_RUNTIME_LIBS)" == "0"
121____DEBUGRUNTIME_2_p_1 =
122!endif
123!if "$(DEBUG_RUNTIME_LIBS)" == "1"
124____DEBUGRUNTIME_2_p_1 = /d _DEBUG
125!endif
126!if "$(RUNTIME_LIBS)" == "dynamic"
127__RUNTIME_LIBS_8 = D
128!endif
129!if "$(RUNTIME_LIBS)" == "static"
130__RUNTIME_LIBS_8 = $(__THREADSFLAG)
131!endif
132!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
133__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
134!endif
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__
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
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
156!if "$(UNICODE)" == "1"
157__UNICODE_DEFINE_p_1 = /d _UNICODE
158!endif
159!if "$(MSLU)" == "1"
160__MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
161!endif
162!if "$(USE_GDIPLUS)" == "1"
163__GFXCTX_DEFINE_p_1 = /d wxUSE_GRAPHICS_CONTEXT=1
164!endif
165!if "$(SHARED)" == "1"
166__DLLFLAG_p = /DWXUSINGDLL
167!endif
168!if "$(SHARED)" == "1"
169__DLLFLAG_p_1 = /d WXUSINGDLL
170!endif
171!if "$(SHARED)" == "1"
172__renddll___depname = \
173 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll
174!endif
175!if "$(RUNTIME_LIBS)" == "dynamic"
176__RUNTIME_LIBS_23 = D
177!endif
178!if "$(RUNTIME_LIBS)" == "static"
179__RUNTIME_LIBS_23 = $(__THREADSFLAG)
180!endif
181!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
182__DEBUGINFO = /Zi
183!endif
184!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
185__DEBUGINFO =
186!endif
187!if "$(DEBUG_INFO)" == "0"
188__DEBUGINFO =
189!endif
190!if "$(DEBUG_INFO)" == "1"
191__DEBUGINFO = /Zi
192!endif
193!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
194__DEBUGINFO_1 = /DEBUG
195!endif
196!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
197__DEBUGINFO_1 =
198!endif
199!if "$(DEBUG_INFO)" == "0"
200__DEBUGINFO_1 =
201!endif
202!if "$(DEBUG_INFO)" == "1"
203__DEBUGINFO_1 = /DEBUG
204!endif
205!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
206____DEBUGRUNTIME = /D_DEBUG
207!endif
208!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
209____DEBUGRUNTIME =
210!endif
211!if "$(DEBUG_RUNTIME_LIBS)" == "0"
212____DEBUGRUNTIME =
213!endif
214!if "$(DEBUG_RUNTIME_LIBS)" == "1"
215____DEBUGRUNTIME = /D_DEBUG
216!endif
217!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
218__DEBUGRUNTIME = d
219!endif
220!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
221__DEBUGRUNTIME =
222!endif
223!if "$(DEBUG_RUNTIME_LIBS)" == "0"
224__DEBUGRUNTIME =
225!endif
226!if "$(DEBUG_RUNTIME_LIBS)" == "1"
227__DEBUGRUNTIME = d
228!endif
229!if "$(BUILD)" == "debug"
230__OPTIMIZEFLAG = /Od
231!endif
232!if "$(BUILD)" == "release"
233__OPTIMIZEFLAG = /O2
234!endif
235!if "$(USE_THREADS)" == "0"
236__THREADSFLAG = L
237!endif
238!if "$(USE_THREADS)" == "1"
239__THREADSFLAG = T
240!endif
241!if "$(USE_RTTI)" == "0"
242__RTTIFLAG =
243!endif
244!if "$(USE_RTTI)" == "1"
245__RTTIFLAG = /GR
246!endif
247!if "$(USE_EXCEPTIONS)" == "0"
248__EXCEPTIONSFLAG =
249!endif
250!if "$(USE_EXCEPTIONS)" == "1"
251__EXCEPTIONSFLAG = /EHsc
252!endif
253!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
254__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
255!endif
256!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
257__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
258!endif
259!if "$(WXUNIV)" == "1"
260__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
261!endif
262!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
263__DEBUG_DEFINE_p = /D__WXDEBUG__
264!endif
265!if "$(DEBUG_FLAG)" == "1"
266__DEBUG_DEFINE_p = /D__WXDEBUG__
267!endif
268!if "$(USE_EXCEPTIONS)" == "0"
269__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
270!endif
271!if "$(USE_RTTI)" == "0"
272__RTTI_DEFINE_p = /DwxNO_RTTI
273!endif
274!if "$(USE_THREADS)" == "0"
275__THREAD_DEFINE_p = /DwxNO_THREADS
276!endif
277!if "$(UNICODE)" == "1"
278__UNICODE_DEFINE_p = /D_UNICODE
279!endif
280!if "$(MSLU)" == "1"
281__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
282!endif
283!if "$(USE_GDIPLUS)" == "1"
284__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
285!endif
286!if "$(MONOLITHIC)" == "0"
287__WXLIB_CORE_p = \
288 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
289!endif
290!if "$(MONOLITHIC)" == "0"
291__WXLIB_BASE_p = \
292 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
293!endif
294!if "$(MONOLITHIC)" == "1"
295__WXLIB_MONO_p = \
296 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
297!endif
298!if "$(USE_GUI)" == "1"
299__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
300!endif
301!if "$(USE_GUI)" == "1"
302__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
303!endif
304!if "$(USE_GUI)" == "1"
305__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
306!endif
307!if "$(MSLU)" == "1"
308__UNICOWS_LIB_p = unicows.lib
309!endif
310!if "$(USE_GDIPLUS)" == "1"
311__GDIPLUS_LIB_p = gdiplus.lib
312!endif
313
314
315all: $(OBJS)
316$(OBJS):
317 -if not exist $(OBJS) mkdir $(OBJS)
318
319### Targets: ###
320
321all: $(OBJS)\render.exe $(__renddll___depname)
322
323clean:
324 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
325 -if exist $(OBJS)\*.res del $(OBJS)\*.res
326 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
327 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
328 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
329 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
330 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll
331 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.ilk
332 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb
333
334$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
335 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
336 $(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) $(__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
337<<
338
339!if "$(SHARED)" == "1"
340$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
341 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) @<<
342 $(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) $(__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
343<<
344!endif
345
346$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
347 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 $**
348
349$(OBJS)\render_render.obj: .\render.cpp
350 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
351
352$(OBJS)\renddll_renddll.obj: .\renddll.cpp
353 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**
354