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