Baked bakefiles
[wxWidgets.git] / samples / render / makefile.vc
1 # =========================================================================
2 #     This makefile was generated by
3 #     Bakefile 0.1.2 (http://bakefile.sourceforge.net)
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
15 OBJS = \
16         vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 SETUPHDIR = \
18         $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
20         $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME_2_p) \
21         $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
22         $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
23         /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples $(__EXCEPTIONSFLAG) \
24         $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
25 RENDER_OBJECTS =  \
26         $(OBJS)\render_sample.res \
27         $(OBJS)\render_render.obj
28 RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_16) /DWIN32 \
29         $(__DEBUGINFO) \
30         /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_vc.pdb \
31         $(____DEBUGRUNTIME_15_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
32         $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
33         /I.\..\..\include /I$(SETUPHDIR) /W4 /DWXUSINGDLL $(__EXCEPTIONSFLAG) \
34         $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
35 RENDDLL_OBJECTS =  \
36         $(OBJS)\renddll_renddll.obj
37
38 ### Conditionally set variables: ###
39
40 !if "$(USE_GUI)" == "0"
41 PORTNAME = base
42 !endif
43 !if "$(USE_GUI)" == "1"
44 PORTNAME = msw
45 !endif
46 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
47 WXDEBUGFLAG = d
48 !endif
49 !if "$(DEBUG_FLAG)" == "1"
50 WXDEBUGFLAG = d
51 !endif
52 !if "$(UNICODE)" == "1"
53 WXUNICODEFLAG = u
54 !endif
55 !if "$(WXUNIV)" == "1"
56 WXUNIVNAME = univ
57 !endif
58 !if "$(SHARED)" == "1"
59 WXDLLFLAG = dll
60 !endif
61 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
62 ____DEBUGRUNTIME_2_p = 
63 !endif
64 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
65 ____DEBUGRUNTIME_2_p = /D_DEBUG
66 !endif
67 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
68 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
69 !endif
70 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
71 ____DEBUGRUNTIME_2_p_1 = 
72 !endif
73 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
74 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
75 !endif
76 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
77 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
78 !endif
79 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
80 ____DEBUGINFO_2_p_1 = /d _DEBUG
81 !endif
82 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
83 ____DEBUGINFO_2_p_1 = 
84 !endif
85 !if "$(DEBUG_INFO)" == "0"
86 ____DEBUGINFO_2_p_1 = 
87 !endif
88 !if "$(DEBUG_INFO)" == "1"
89 ____DEBUGINFO_2_p_1 = /d _DEBUG
90 !endif
91 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
92 __DEBUGRUNTIME_3 = 
93 !endif
94 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
95 __DEBUGRUNTIME_3 = d
96 !endif
97 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
98 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
99 !endif
100 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
101 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
102 !endif
103 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
104 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
105 !endif
106 !if "$(WXUNIV)" == "1"
107 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
108 !endif
109 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
110 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
111 !endif
112 !if "$(DEBUG_FLAG)" == "1"
113 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
114 !endif
115 !if "$(UNICODE)" == "1"
116 __UNICODE_DEFINE_p_1 = /d _UNICODE
117 !endif
118 !if "$(SHARED)" == "1"
119 __DLLFLAG_p = /DWXUSINGDLL
120 !endif
121 !if "$(SHARED)" == "1"
122 __DLLFLAG_p_1 = /d WXUSINGDLL
123 !endif
124 !if "$(SHARED)" == "1"
125 __renddll___depname = \
126         $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_vc.dll
127 !endif
128 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
129 ____DEBUGRUNTIME_15_p = 
130 !endif
131 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
132 ____DEBUGRUNTIME_15_p = /D_DEBUG
133 !endif
134 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
135 ____DEBUGRUNTIME_15_p = $(____DEBUGINFO)
136 !endif
137 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
138 __DEBUGRUNTIME_16 = 
139 !endif
140 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
141 __DEBUGRUNTIME_16 = d
142 !endif
143 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
144 __DEBUGRUNTIME_16 = $(__DEBUGINFO_2)
145 !endif
146 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
147 __DEBUGINFO = /Zi
148 !endif
149 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
150 __DEBUGINFO = 
151 !endif
152 !if "$(DEBUG_INFO)" == "0"
153 __DEBUGINFO = 
154 !endif
155 !if "$(DEBUG_INFO)" == "1"
156 __DEBUGINFO = /Zi
157 !endif
158 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
159 __DEBUGINFO_1 = /DEBUG
160 !endif
161 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
162 __DEBUGINFO_1 = 
163 !endif
164 !if "$(DEBUG_INFO)" == "0"
165 __DEBUGINFO_1 = 
166 !endif
167 !if "$(DEBUG_INFO)" == "1"
168 __DEBUGINFO_1 = /DEBUG
169 !endif
170 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
171 ____DEBUGINFO = /D_DEBUG
172 !endif
173 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
174 ____DEBUGINFO = 
175 !endif
176 !if "$(DEBUG_INFO)" == "0"
177 ____DEBUGINFO = 
178 !endif
179 !if "$(DEBUG_INFO)" == "1"
180 ____DEBUGINFO = /D_DEBUG
181 !endif
182 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
183 __DEBUGINFO_2 = d
184 !endif
185 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
186 __DEBUGINFO_2 = 
187 !endif
188 !if "$(DEBUG_INFO)" == "0"
189 __DEBUGINFO_2 = 
190 !endif
191 !if "$(DEBUG_INFO)" == "1"
192 __DEBUGINFO_2 = d
193 !endif
194 !if "$(BUILD)" == "debug"
195 __OPTIMIZEFLAG = /Od
196 !endif
197 !if "$(BUILD)" == "release"
198 __OPTIMIZEFLAG = /O2
199 !endif
200 !if "$(RUNTIME_LIBS)" == "dynamic"
201 __RUNTIME_LIBS = D
202 !endif
203 !if "$(RUNTIME_LIBS)" == "static"
204 __RUNTIME_LIBS = T
205 !endif
206 !if "$(USE_EXCEPTIONS)" == "0"
207 __EXCEPTIONSFLAG = 
208 !endif
209 !if "$(USE_EXCEPTIONS)" == "1"
210 __EXCEPTIONSFLAG = /GR
211 !endif
212 !if "$(USE_EXCEPTIONS)" == "0"
213 __EXCEPTIONSFLAG_0 = 
214 !endif
215 !if "$(USE_EXCEPTIONS)" == "1"
216 __EXCEPTIONSFLAG_0 = /GX
217 !endif
218 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
219 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
220 !endif
221 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
222 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
223 !endif
224 !if "$(WXUNIV)" == "1"
225 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
226 !endif
227 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
228 __DEBUG_DEFINE_p = /D__WXDEBUG__
229 !endif
230 !if "$(DEBUG_FLAG)" == "1"
231 __DEBUG_DEFINE_p = /D__WXDEBUG__
232 !endif
233 !if "$(UNICODE)" == "1"
234 __UNICODE_DEFINE_p = /D_UNICODE
235 !endif
236 !if "$(SHARED)" == "0"
237 LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
238 !endif
239 !if "$(SHARED)" == "1"
240 LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
241 !endif
242 !if "$(MONOLITHIC)" == "0"
243 __WXLIB_CORE_p = \
244         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
245 !endif
246 !if "$(MONOLITHIC)" == "0"
247 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
248 !endif
249 !if "$(MONOLITHIC)" == "1"
250 __WXLIB_MONO_p = \
251         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
252 !endif
253 !if "$(USE_GUI)" == "1"
254 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
255 !endif
256 !if "$(USE_GUI)" == "1"
257 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
258 !endif
259 !if "$(USE_GUI)" == "1"
260 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
261 !endif
262 !if "$(MSLU)" == "1"
263 __UNICOWS_LIB_p = unicows.lib
264 !endif
265
266
267 all: $(OBJS)
268 $(OBJS):
269         -if not exist $(OBJS) mkdir $(OBJS)
270
271 ### Targets: ###
272
273 all: $(OBJS)\render.exe $(__renddll___depname)
274
275 clean: 
276         -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
277         -if exist $(OBJS)\*.res del $(OBJS)\*.res
278         -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
279         -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
280         -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
281         -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_vc.dll
282         -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_vc.ilk
283         -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_vc.pdb
284
285 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
286         link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1)  /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
287         $(RENDER_OBJECTS)  $(__WXLIB_CORE_p)  $(__WXLIB_BASE_p)  $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib  wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib  $(__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
288 <<
289
290 !if "$(SHARED)" == "1"
291 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_vc.dll: $(RENDDLL_OBJECTS)
292         link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1)  /LIBPATH:$(LIBDIRNAME) @<<
293         $(RENDDLL_OBJECTS)  $(__WXLIB_CORE_p)  $(__WXLIB_BASE_p)  $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib  wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib  $(__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
294 <<
295 !endif
296
297 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
298         rc /fo$@  /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples $**
299
300 $(OBJS)\render_render.obj: .\render.cpp
301         $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
302
303 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
304         $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**