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