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