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