]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.vc
Fix previous change in case somebody is still using
[wxWidgets.git] / samples / render / makefile.vc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (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)
8c9f8f91 21RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \
b17c1746 22 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME_2_p) \
ec08d395 23 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
8c9f8f91
JS
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_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
8c9f8f91 31RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_23)$(__DEBUGRUNTIME_18) /DWIN32 \
b17c1746 32 $(__DEBUGINFO) \
4818141b 33 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb \
8c9f8f91
JS
34 $(____DEBUGRUNTIME_17_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
35 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
36 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
37 /I.\..\..\include /I$(SETUPHDIR) /W4 /DWXUSINGDLL $(__RTTIFLAG) \
38 $(__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
b17c1746
DE
89!if "$(DEBUG_RUNTIME_LIBS)" == "0"
90____DEBUGRUNTIME_2_p =
2d611b5c 91!endif
b17c1746
DE
92!if "$(DEBUG_RUNTIME_LIBS)" == "1"
93____DEBUGRUNTIME_2_p = /D_DEBUG
2d611b5c 94!endif
b17c1746
DE
95!if "$(DEBUG_RUNTIME_LIBS)" == "default"
96____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
2d611b5c 97!endif
b17c1746
DE
98!if "$(DEBUG_RUNTIME_LIBS)" == "0"
99____DEBUGRUNTIME_2_p_1 =
2d611b5c 100!endif
b17c1746
DE
101!if "$(DEBUG_RUNTIME_LIBS)" == "1"
102____DEBUGRUNTIME_2_p_1 = /d _DEBUG
2d611b5c 103!endif
b17c1746
DE
104!if "$(DEBUG_RUNTIME_LIBS)" == "default"
105____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
2d611b5c
VS
106!endif
107!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
b17c1746 108____DEBUGINFO_2_p_1 = /d _DEBUG
2d611b5c
VS
109!endif
110!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
b17c1746 111____DEBUGINFO_2_p_1 =
2d611b5c
VS
112!endif
113!if "$(DEBUG_INFO)" == "0"
b17c1746 114____DEBUGINFO_2_p_1 =
2d611b5c
VS
115!endif
116!if "$(DEBUG_INFO)" == "1"
b17c1746 117____DEBUGINFO_2_p_1 = /d _DEBUG
2d611b5c
VS
118!endif
119!if "$(DEBUG_RUNTIME_LIBS)" == "0"
120__DEBUGRUNTIME_3 =
121!endif
122!if "$(DEBUG_RUNTIME_LIBS)" == "1"
123__DEBUGRUNTIME_3 = d
124!endif
125!if "$(DEBUG_RUNTIME_LIBS)" == "default"
b17c1746 126__DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
2d611b5c 127!endif
8c9f8f91
JS
128!if "$(RUNTIME_LIBS)" == "dynamic"
129__RUNTIME_LIBS_8 = D
130!endif
131!if "$(RUNTIME_LIBS)" == "static"
132__RUNTIME_LIBS_8 = $(__THREADSFLAG)
133!endif
b17c1746
DE
134!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
135__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
2d611b5c 136!endif
b17c1746
DE
137!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
138__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
139!endif
140!if "$(WXUNIV)" == "1"
141__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
2d611b5c
VS
142!endif
143!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
144__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
145!endif
146!if "$(DEBUG_FLAG)" == "1"
147__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
148!endif
8c9f8f91
JS
149!if "$(USE_EXCEPTIONS)" == "0"
150__EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
151!endif
152!if "$(USE_RTTI)" == "0"
153__RTTI_DEFINE_p_1 = /d wxNO_RTTI
154!endif
155!if "$(USE_THREADS)" == "0"
156__THREAD_DEFINE_p_1 = /d wxNO_THREADS
157!endif
b17c1746
DE
158!if "$(UNICODE)" == "1"
159__UNICODE_DEFINE_p_1 = /d _UNICODE
160!endif
2d611b5c
VS
161!if "$(SHARED)" == "1"
162__DLLFLAG_p = /DWXUSINGDLL
163!endif
164!if "$(SHARED)" == "1"
165__DLLFLAG_p_1 = /d WXUSINGDLL
166!endif
b17c1746
DE
167!if "$(SHARED)" == "1"
168__renddll___depname = \
4818141b 169 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll
ec08d395 170!endif
b17c1746 171!if "$(DEBUG_RUNTIME_LIBS)" == "0"
8c9f8f91 172____DEBUGRUNTIME_17_p =
ec08d395 173!endif
b17c1746 174!if "$(DEBUG_RUNTIME_LIBS)" == "1"
8c9f8f91 175____DEBUGRUNTIME_17_p = /D_DEBUG
ec08d395 176!endif
b17c1746 177!if "$(DEBUG_RUNTIME_LIBS)" == "default"
8c9f8f91 178____DEBUGRUNTIME_17_p = $(____DEBUGINFO)
2d611b5c 179!endif
b17c1746 180!if "$(DEBUG_RUNTIME_LIBS)" == "0"
8c9f8f91 181__DEBUGRUNTIME_18 =
2d611b5c 182!endif
b17c1746 183!if "$(DEBUG_RUNTIME_LIBS)" == "1"
8c9f8f91 184__DEBUGRUNTIME_18 = d
2d611b5c 185!endif
b17c1746 186!if "$(DEBUG_RUNTIME_LIBS)" == "default"
8c9f8f91
JS
187__DEBUGRUNTIME_18 = $(__DEBUGINFO_2)
188!endif
189!if "$(RUNTIME_LIBS)" == "dynamic"
190__RUNTIME_LIBS_23 = D
191!endif
192!if "$(RUNTIME_LIBS)" == "static"
193__RUNTIME_LIBS_23 = $(__THREADSFLAG)
2d611b5c 194!endif
b17c1746
DE
195!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
196__DEBUGINFO = /Zi
2d611b5c 197!endif
b17c1746
DE
198!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
199__DEBUGINFO =
2d611b5c 200!endif
b17c1746
DE
201!if "$(DEBUG_INFO)" == "0"
202__DEBUGINFO =
2c02ec05 203!endif
b17c1746
DE
204!if "$(DEBUG_INFO)" == "1"
205__DEBUGINFO = /Zi
2d611b5c 206!endif
b17c1746
DE
207!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
208__DEBUGINFO_1 = /DEBUG
2d611b5c 209!endif
b17c1746
DE
210!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
211__DEBUGINFO_1 =
2d611b5c 212!endif
b17c1746
DE
213!if "$(DEBUG_INFO)" == "0"
214__DEBUGINFO_1 =
2d611b5c 215!endif
b17c1746
DE
216!if "$(DEBUG_INFO)" == "1"
217__DEBUGINFO_1 = /DEBUG
2d611b5c
VS
218!endif
219!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
220____DEBUGINFO = /D_DEBUG
221!endif
222!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
223____DEBUGINFO =
224!endif
225!if "$(DEBUG_INFO)" == "0"
226____DEBUGINFO =
227!endif
228!if "$(DEBUG_INFO)" == "1"
229____DEBUGINFO = /D_DEBUG
230!endif
231!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
b17c1746 232__DEBUGINFO_2 = d
2d611b5c
VS
233!endif
234!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
b17c1746 235__DEBUGINFO_2 =
2d611b5c
VS
236!endif
237!if "$(DEBUG_INFO)" == "0"
b17c1746 238__DEBUGINFO_2 =
2d611b5c
VS
239!endif
240!if "$(DEBUG_INFO)" == "1"
b17c1746 241__DEBUGINFO_2 = d
2d611b5c 242!endif
b17c1746
DE
243!if "$(BUILD)" == "debug"
244__OPTIMIZEFLAG = /Od
2d611b5c 245!endif
b17c1746
DE
246!if "$(BUILD)" == "release"
247__OPTIMIZEFLAG = /O2
2d611b5c 248!endif
8c9f8f91
JS
249!if "$(USE_THREADS)" == "0"
250__THREADSFLAG = L
2d611b5c 251!endif
8c9f8f91
JS
252!if "$(USE_THREADS)" == "1"
253__THREADSFLAG = T
2d611b5c 254!endif
8c9f8f91
JS
255!if "$(USE_RTTI)" == "0"
256__RTTIFLAG =
2d611b5c 257!endif
8c9f8f91
JS
258!if "$(USE_RTTI)" == "1"
259__RTTIFLAG = /GR
2d611b5c 260!endif
b17c1746 261!if "$(USE_EXCEPTIONS)" == "0"
8c9f8f91 262__EXCEPTIONSFLAG =
2d611b5c 263!endif
b17c1746 264!if "$(USE_EXCEPTIONS)" == "1"
8c9f8f91 265__EXCEPTIONSFLAG = /EHsc
2d611b5c 266!endif
b17c1746
DE
267!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
268__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
269!endif
270!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
271__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
272!endif
273!if "$(WXUNIV)" == "1"
274__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
275!endif
276!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
277__DEBUG_DEFINE_p = /D__WXDEBUG__
278!endif
279!if "$(DEBUG_FLAG)" == "1"
280__DEBUG_DEFINE_p = /D__WXDEBUG__
281!endif
8c9f8f91
JS
282!if "$(USE_EXCEPTIONS)" == "0"
283__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
284!endif
285!if "$(USE_RTTI)" == "0"
286__RTTI_DEFINE_p = /DwxNO_RTTI
287!endif
288!if "$(USE_THREADS)" == "0"
289__THREAD_DEFINE_p = /DwxNO_THREADS
290!endif
b17c1746
DE
291!if "$(UNICODE)" == "1"
292__UNICODE_DEFINE_p = /D_UNICODE
293!endif
b17c1746
DE
294!if "$(MONOLITHIC)" == "0"
295__WXLIB_CORE_p = \
c33fae85 296 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
b17c1746
DE
297!endif
298!if "$(MONOLITHIC)" == "0"
c33fae85
RN
299__WXLIB_BASE_p = \
300 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
301!endif
302!if "$(MONOLITHIC)" == "1"
303__WXLIB_MONO_p = \
c33fae85 304 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
305!endif
306!if "$(USE_GUI)" == "1"
9c2d002b 307__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
b17c1746
DE
308!endif
309!if "$(USE_GUI)" == "1"
9c2d002b 310__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
311!endif
312!if "$(USE_GUI)" == "1"
9c2d002b 313__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
314!endif
315!if "$(MSLU)" == "1"
316__UNICOWS_LIB_p = unicows.lib
2d611b5c
VS
317!endif
318
319
320all: $(OBJS)
321$(OBJS):
322 -if not exist $(OBJS) mkdir $(OBJS)
323
324### Targets: ###
325
326all: $(OBJS)\render.exe $(__renddll___depname)
327
2d611b5c
VS
328clean:
329 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
330 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 331 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
2d611b5c 332 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
ec08d395
JS
333 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
334 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
4818141b
JS
335 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll
336 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.ilk
337 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.pdb
2d611b5c 338
b17c1746
DE
339$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
340 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
dd65d8c8 341 $(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
342<<
343
2d611b5c 344!if "$(SHARED)" == "1"
4818141b 345$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
2d611b5c 346 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
dd65d8c8 347 $(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
348<<
349!endif
350
b17c1746 351$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
8c9f8f91 352 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) /i .\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples $**
b17c1746
DE
353
354$(OBJS)\render_render.obj: .\render.cpp
355 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
356
357$(OBJS)\renddll_renddll.obj: .\renddll.cpp
358 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**
b14abf14 359