]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.vc
return error code upon KeyboardInterrupt
[wxWidgets.git] / samples / render / makefile.vc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (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
c33fae85 15WX_RELEASE_NODOT = 25
ab921f5f 16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
2d611b5c
VS
17OBJS = \
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 21RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
b17c1746 22 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME_2_p) \
ec08d395
JS
23 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
c33fae85
RN
25 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH \
26 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
2d611b5c
VS
27RENDER_OBJECTS = \
28 $(OBJS)\render_sample.res \
29 $(OBJS)\render_render.obj
c4839ccf 30RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_17) /DWIN32 \
b17c1746 31 $(__DEBUGINFO) \
c33fae85 32 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb \
c4839ccf 33 $(____DEBUGRUNTIME_16_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
b17c1746
DE
34 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
35 /I.\..\..\include /I$(SETUPHDIR) /W4 /DWXUSINGDLL $(__EXCEPTIONSFLAG) \
36 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
37RENDDLL_OBJECTS = \
38 $(OBJS)\renddll_renddll.obj
2d611b5c
VS
39
40### Conditionally set variables: ###
41
42!if "$(USE_GUI)" == "0"
43PORTNAME = base
44!endif
45!if "$(USE_GUI)" == "1"
46PORTNAME = msw
47!endif
48!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
49WXDEBUGFLAG = d
50!endif
51!if "$(DEBUG_FLAG)" == "1"
52WXDEBUGFLAG = d
53!endif
2d611b5c
VS
54!if "$(UNICODE)" == "1"
55WXUNICODEFLAG = u
56!endif
57!if "$(WXUNIV)" == "1"
58WXUNIVNAME = univ
59!endif
b17c1746
DE
60!if "$(SHARED)" == "1"
61WXDLLFLAG = dll
2d611b5c 62!endif
dd65d8c8
RN
63!if "$(MONOLITHIC)" == "0"
64EXTRALIBS_FOR_BASE =
65!endif
66!if "$(MONOLITHIC)" == "1"
67EXTRALIBS_FOR_BASE =
68!endif
078c7a59 69!if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
314a6446 70PLUGINSUFFIX = d
078c7a59
VS
71!endif
72!if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
314a6446 73PLUGINSUFFIX = ud
078c7a59
VS
74!endif
75!if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
76PLUGINSUFFIX =
77!endif
78!if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
314a6446 79PLUGINSUFFIX = u
078c7a59 80!endif
b17c1746
DE
81!if "$(DEBUG_RUNTIME_LIBS)" == "0"
82____DEBUGRUNTIME_2_p =
2d611b5c 83!endif
b17c1746
DE
84!if "$(DEBUG_RUNTIME_LIBS)" == "1"
85____DEBUGRUNTIME_2_p = /D_DEBUG
2d611b5c 86!endif
b17c1746
DE
87!if "$(DEBUG_RUNTIME_LIBS)" == "default"
88____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
2d611b5c 89!endif
b17c1746
DE
90!if "$(DEBUG_RUNTIME_LIBS)" == "0"
91____DEBUGRUNTIME_2_p_1 =
2d611b5c 92!endif
b17c1746
DE
93!if "$(DEBUG_RUNTIME_LIBS)" == "1"
94____DEBUGRUNTIME_2_p_1 = /d _DEBUG
2d611b5c 95!endif
b17c1746
DE
96!if "$(DEBUG_RUNTIME_LIBS)" == "default"
97____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
2d611b5c
VS
98!endif
99!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
b17c1746 100____DEBUGINFO_2_p_1 = /d _DEBUG
2d611b5c
VS
101!endif
102!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
b17c1746 103____DEBUGINFO_2_p_1 =
2d611b5c
VS
104!endif
105!if "$(DEBUG_INFO)" == "0"
b17c1746 106____DEBUGINFO_2_p_1 =
2d611b5c
VS
107!endif
108!if "$(DEBUG_INFO)" == "1"
b17c1746 109____DEBUGINFO_2_p_1 = /d _DEBUG
2d611b5c
VS
110!endif
111!if "$(DEBUG_RUNTIME_LIBS)" == "0"
112__DEBUGRUNTIME_3 =
113!endif
114!if "$(DEBUG_RUNTIME_LIBS)" == "1"
115__DEBUGRUNTIME_3 = d
116!endif
117!if "$(DEBUG_RUNTIME_LIBS)" == "default"
b17c1746 118__DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
2d611b5c 119!endif
b17c1746
DE
120!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
121__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
2d611b5c 122!endif
b17c1746
DE
123!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
124__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
125!endif
126!if "$(WXUNIV)" == "1"
127__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
2d611b5c
VS
128!endif
129!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
130__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
131!endif
132!if "$(DEBUG_FLAG)" == "1"
133__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
134!endif
b17c1746
DE
135!if "$(UNICODE)" == "1"
136__UNICODE_DEFINE_p_1 = /d _UNICODE
137!endif
2d611b5c
VS
138!if "$(SHARED)" == "1"
139__DLLFLAG_p = /DWXUSINGDLL
140!endif
141!if "$(SHARED)" == "1"
142__DLLFLAG_p_1 = /d WXUSINGDLL
143!endif
b17c1746
DE
144!if "$(SHARED)" == "1"
145__renddll___depname = \
c33fae85 146 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
ec08d395 147!endif
b17c1746 148!if "$(DEBUG_RUNTIME_LIBS)" == "0"
c4839ccf 149____DEBUGRUNTIME_16_p =
ec08d395 150!endif
b17c1746 151!if "$(DEBUG_RUNTIME_LIBS)" == "1"
c4839ccf 152____DEBUGRUNTIME_16_p = /D_DEBUG
ec08d395 153!endif
b17c1746 154!if "$(DEBUG_RUNTIME_LIBS)" == "default"
c4839ccf 155____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
2d611b5c 156!endif
b17c1746 157!if "$(DEBUG_RUNTIME_LIBS)" == "0"
c4839ccf 158__DEBUGRUNTIME_17 =
2d611b5c 159!endif
b17c1746 160!if "$(DEBUG_RUNTIME_LIBS)" == "1"
c4839ccf 161__DEBUGRUNTIME_17 = d
2d611b5c 162!endif
b17c1746 163!if "$(DEBUG_RUNTIME_LIBS)" == "default"
c4839ccf 164__DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
2d611b5c 165!endif
b17c1746
DE
166!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
167__DEBUGINFO = /Zi
2d611b5c 168!endif
b17c1746
DE
169!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
170__DEBUGINFO =
2d611b5c 171!endif
b17c1746
DE
172!if "$(DEBUG_INFO)" == "0"
173__DEBUGINFO =
2c02ec05 174!endif
b17c1746
DE
175!if "$(DEBUG_INFO)" == "1"
176__DEBUGINFO = /Zi
2d611b5c 177!endif
b17c1746
DE
178!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
179__DEBUGINFO_1 = /DEBUG
2d611b5c 180!endif
b17c1746
DE
181!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
182__DEBUGINFO_1 =
2d611b5c 183!endif
b17c1746
DE
184!if "$(DEBUG_INFO)" == "0"
185__DEBUGINFO_1 =
2d611b5c 186!endif
b17c1746
DE
187!if "$(DEBUG_INFO)" == "1"
188__DEBUGINFO_1 = /DEBUG
2d611b5c
VS
189!endif
190!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
191____DEBUGINFO = /D_DEBUG
192!endif
193!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
194____DEBUGINFO =
195!endif
196!if "$(DEBUG_INFO)" == "0"
197____DEBUGINFO =
198!endif
199!if "$(DEBUG_INFO)" == "1"
200____DEBUGINFO = /D_DEBUG
201!endif
202!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
b17c1746 203__DEBUGINFO_2 = d
2d611b5c
VS
204!endif
205!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
b17c1746 206__DEBUGINFO_2 =
2d611b5c
VS
207!endif
208!if "$(DEBUG_INFO)" == "0"
b17c1746 209__DEBUGINFO_2 =
2d611b5c
VS
210!endif
211!if "$(DEBUG_INFO)" == "1"
b17c1746 212__DEBUGINFO_2 = d
2d611b5c 213!endif
b17c1746
DE
214!if "$(BUILD)" == "debug"
215__OPTIMIZEFLAG = /Od
2d611b5c 216!endif
b17c1746
DE
217!if "$(BUILD)" == "release"
218__OPTIMIZEFLAG = /O2
2d611b5c 219!endif
b17c1746
DE
220!if "$(RUNTIME_LIBS)" == "dynamic"
221__RUNTIME_LIBS = D
2d611b5c 222!endif
b17c1746
DE
223!if "$(RUNTIME_LIBS)" == "static"
224__RUNTIME_LIBS = T
2d611b5c 225!endif
b17c1746
DE
226!if "$(USE_EXCEPTIONS)" == "0"
227__EXCEPTIONSFLAG =
2d611b5c 228!endif
b17c1746
DE
229!if "$(USE_EXCEPTIONS)" == "1"
230__EXCEPTIONSFLAG = /GR
2d611b5c 231!endif
b17c1746
DE
232!if "$(USE_EXCEPTIONS)" == "0"
233__EXCEPTIONSFLAG_0 =
2d611b5c 234!endif
b17c1746
DE
235!if "$(USE_EXCEPTIONS)" == "1"
236__EXCEPTIONSFLAG_0 = /GX
2d611b5c 237!endif
b17c1746
DE
238!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
239__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
240!endif
241!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
242__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
243!endif
244!if "$(WXUNIV)" == "1"
245__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
246!endif
247!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
248__DEBUG_DEFINE_p = /D__WXDEBUG__
249!endif
250!if "$(DEBUG_FLAG)" == "1"
251__DEBUG_DEFINE_p = /D__WXDEBUG__
252!endif
253!if "$(UNICODE)" == "1"
254__UNICODE_DEFINE_p = /D_UNICODE
255!endif
256!if "$(SHARED)" == "0"
257LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
2d611b5c
VS
258!endif
259!if "$(SHARED)" == "1"
b17c1746
DE
260LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
261!endif
262!if "$(MONOLITHIC)" == "0"
263__WXLIB_CORE_p = \
c33fae85 264 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
b17c1746
DE
265!endif
266!if "$(MONOLITHIC)" == "0"
c33fae85
RN
267__WXLIB_BASE_p = \
268 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
269!endif
270!if "$(MONOLITHIC)" == "1"
271__WXLIB_MONO_p = \
c33fae85 272 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
273!endif
274!if "$(USE_GUI)" == "1"
9c2d002b 275__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
b17c1746
DE
276!endif
277!if "$(USE_GUI)" == "1"
9c2d002b 278__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
279!endif
280!if "$(USE_GUI)" == "1"
9c2d002b 281__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
282!endif
283!if "$(MSLU)" == "1"
284__UNICOWS_LIB_p = unicows.lib
2d611b5c
VS
285!endif
286
287
288all: $(OBJS)
289$(OBJS):
290 -if not exist $(OBJS) mkdir $(OBJS)
291
292### Targets: ###
293
294all: $(OBJS)\render.exe $(__renddll___depname)
295
2d611b5c
VS
296clean:
297 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
298 -if exist $(OBJS)\*.res del $(OBJS)\*.res
299 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
ec08d395
JS
300 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
301 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
c33fae85
RN
302 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll
303 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.ilk
304 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.pdb
2d611b5c 305
b17c1746
DE
306$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
307 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
dd65d8c8 308 $(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 oleacc.lib odbc32.lib
b17c1746
DE
309<<
310
2d611b5c 311!if "$(SHARED)" == "1"
c33fae85 312$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
2d611b5c 313 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
dd65d8c8 314 $(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 oleacc.lib odbc32.lib
2d611b5c
VS
315<<
316!endif
317
b17c1746
DE
318$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
319 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_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 $**
320
321$(OBJS)\render_render.obj: .\render.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
323
324$(OBJS)\renddll_renddll.obj: .\renddll.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**