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