]> git.saurik.com Git - wxWidgets.git/blob - samples/dll/makefile.vc
ac4d06d553cdb399d3877cfcc9211e9620ab6a3d
[wxWidgets.git] / samples / dll / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.8 (http://www.bakefile.org)
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 WX_RELEASE_NODOT = 29
16 COMPILER_PREFIX = vc
17 OBJS = \
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
19 LIBDIRNAME = \
20 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
21 SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 MY_DLL_CXXFLAGS = /M$(__RUNTIME_LIBS_11)$(__DEBUGRUNTIME) /DWIN32 \
24 $(__DEBUGINFO_1) /Fd$(OBJS)\my_dll.pdb $(____DEBUGRUNTIME) \
25 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
28 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
29 $(____CAIRO_INCLUDEDIR_FILENAMES) /W4 $(__DLLFLAG_p) /I. $(__RTTIFLAG) \
30 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
31 MY_DLL_OBJECTS = \
32 $(OBJS)\my_dll_my_dll.obj
33 WX_EXE_CXXFLAGS = /M$(__RUNTIME_LIBS_25)$(__DEBUGRUNTIME) /DWIN32 \
34 $(__DEBUGINFO_1) /Fd$(OBJS)\wx_exe.pdb $(____DEBUGRUNTIME) \
35 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
36 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
37 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
38 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
39 $(____CAIRO_INCLUDEDIR_FILENAMES) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
40 /I.\..\..\samples /DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
41 $(CXXFLAGS)
42 WX_EXE_OBJECTS = \
43 $(OBJS)\wx_exe_wx_exe.obj
44 WX_EXE_RESOURCES = \
45 $(OBJS)\wx_exe_sample.res
46
47 ### Conditionally set variables: ###
48
49 !if "$(USE_GUI)" == "0"
50 PORTNAME = base
51 !endif
52 !if "$(USE_GUI)" == "1"
53 PORTNAME = msw
54 !endif
55 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
56 WXDEBUGFLAG = d
57 !endif
58 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
59 WXDEBUGFLAG = d
60 !endif
61 !if "$(UNICODE)" == "1"
62 WXUNICODEFLAG = u
63 !endif
64 !if "$(WXUNIV)" == "1"
65 WXUNIVNAME = univ
66 !endif
67 !if "$(TARGET_CPU)" == "AMD64"
68 DIR_SUFFIX_CPU = _amd64
69 !endif
70 !if "$(TARGET_CPU)" == "IA64"
71 DIR_SUFFIX_CPU = _ia64
72 !endif
73 !if "$(TARGET_CPU)" == "amd64"
74 DIR_SUFFIX_CPU = _amd64
75 !endif
76 !if "$(TARGET_CPU)" == "ia64"
77 DIR_SUFFIX_CPU = _ia64
78 !endif
79 !if "$(SHARED)" == "1"
80 WXDLLFLAG = dll
81 !endif
82 !if "$(SHARED)" == "0"
83 LIBTYPE_SUFFIX = lib
84 !endif
85 !if "$(SHARED)" == "1"
86 LIBTYPE_SUFFIX = dll
87 !endif
88 !if "$(TARGET_CPU)" == "AMD64"
89 LINK_TARGET_CPU = /MACHINE:AMD64
90 !endif
91 !if "$(TARGET_CPU)" == "IA64"
92 LINK_TARGET_CPU = /MACHINE:IA64
93 !endif
94 !if "$(TARGET_CPU)" == "amd64"
95 LINK_TARGET_CPU = /MACHINE:AMD64
96 !endif
97 !if "$(TARGET_CPU)" == "ia64"
98 LINK_TARGET_CPU = /MACHINE:IA64
99 !endif
100 !if "$(MONOLITHIC)" == "0"
101 EXTRALIBS_FOR_BASE =
102 !endif
103 !if "$(MONOLITHIC)" == "1"
104 EXTRALIBS_FOR_BASE =
105 !endif
106 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
107 __DEBUGINFO_3 = $(__DEBUGRUNTIME_0)
108 !endif
109 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
110 __DEBUGINFO_3 =
111 !endif
112 !if "$(DEBUG_INFO)" == "0"
113 __DEBUGINFO_3 =
114 !endif
115 !if "$(DEBUG_INFO)" == "1"
116 __DEBUGINFO_3 = $(__DEBUGRUNTIME_0)
117 !endif
118 !if "$(RUNTIME_LIBS)" == "dynamic"
119 __RUNTIME_LIBS_11 = D
120 !endif
121 !if "$(RUNTIME_LIBS)" == "static"
122 __RUNTIME_LIBS_11 = $(__THREADSFLAG)
123 !endif
124 !if "$(SHARED)" == "0"
125 __wx_exe___depname = $(OBJS)\wx_exe.exe
126 !endif
127 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
128 __DEBUGINFO_17 = $(__DEBUGRUNTIME_0)
129 !endif
130 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
131 __DEBUGINFO_17 =
132 !endif
133 !if "$(DEBUG_INFO)" == "0"
134 __DEBUGINFO_17 =
135 !endif
136 !if "$(DEBUG_INFO)" == "1"
137 __DEBUGINFO_17 = $(__DEBUGRUNTIME_0)
138 !endif
139 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
140 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
141 !endif
142 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
143 ____DEBUGRUNTIME_18_p_1 =
144 !endif
145 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
146 ____DEBUGRUNTIME_18_p_1 =
147 !endif
148 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
149 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
150 !endif
151 !if "$(RUNTIME_LIBS)" == "dynamic"
152 __RUNTIME_LIBS_25 = D
153 !endif
154 !if "$(RUNTIME_LIBS)" == "static"
155 __RUNTIME_LIBS_25 = $(__THREADSFLAG)
156 !endif
157 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
158 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
159 !endif
160 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
161 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
162 !endif
163 !if "$(WXUNIV)" == "1"
164 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
165 !endif
166 !if "$(DEBUG_FLAG)" == "0"
167 __DEBUG_DEFINE_p_3 = /d wxDEBUG_LEVEL=0
168 !endif
169 !if "$(USE_EXCEPTIONS)" == "0"
170 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
171 !endif
172 !if "$(USE_RTTI)" == "0"
173 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
174 !endif
175 !if "$(USE_THREADS)" == "0"
176 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
177 !endif
178 !if "$(UNICODE)" == "0"
179 __UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=0
180 !endif
181 !if "$(UNICODE)" == "1"
182 __UNICODE_DEFINE_p_3 = /d _UNICODE
183 !endif
184 !if "$(MSLU)" == "1"
185 __MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
186 !endif
187 !if "$(USE_GDIPLUS)" == "1"
188 __GFXCTX_DEFINE_p_3 = /d wxUSE_GRAPHICS_CONTEXT=1
189 !endif
190 !if "$(USE_CAIRO)" == "1"
191 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = /i $(CAIRO_ROOT)\include\cairo
192 !endif
193 !if "$(SHARED)" == "1"
194 __DLLFLAG_p_3 = /d WXUSINGDLL
195 !endif
196 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
197 __DEBUGINFO_1 = /Zi
198 !endif
199 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
200 __DEBUGINFO_1 =
201 !endif
202 !if "$(DEBUG_INFO)" == "0"
203 __DEBUGINFO_1 =
204 !endif
205 !if "$(DEBUG_INFO)" == "1"
206 __DEBUGINFO_1 = /Zi
207 !endif
208 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
209 __DEBUGINFO = /DEBUG
210 !endif
211 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
212 __DEBUGINFO =
213 !endif
214 !if "$(DEBUG_INFO)" == "0"
215 __DEBUGINFO =
216 !endif
217 !if "$(DEBUG_INFO)" == "1"
218 __DEBUGINFO = /DEBUG
219 !endif
220 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
221 ____DEBUGRUNTIME = /D_DEBUG
222 !endif
223 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
224 ____DEBUGRUNTIME =
225 !endif
226 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
227 ____DEBUGRUNTIME =
228 !endif
229 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
230 ____DEBUGRUNTIME = /D_DEBUG
231 !endif
232 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
233 __DEBUGRUNTIME = d
234 !endif
235 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
236 __DEBUGRUNTIME =
237 !endif
238 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
239 __DEBUGRUNTIME =
240 !endif
241 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
242 __DEBUGRUNTIME = d
243 !endif
244 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
245 __DEBUGRUNTIME_0 =
246 !endif
247 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
248 __DEBUGRUNTIME_0 = /opt:ref /opt:icf
249 !endif
250 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
251 __DEBUGRUNTIME_0 = /opt:ref /opt:icf
252 !endif
253 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
254 __DEBUGRUNTIME_0 =
255 !endif
256 !if "$(BUILD)" == "debug"
257 __OPTIMIZEFLAG = /Od
258 !endif
259 !if "$(BUILD)" == "release"
260 __OPTIMIZEFLAG = /O2
261 !endif
262 !if "$(USE_THREADS)" == "0"
263 __THREADSFLAG = L
264 !endif
265 !if "$(USE_THREADS)" == "1"
266 __THREADSFLAG = T
267 !endif
268 !if "$(USE_RTTI)" == "0"
269 __RTTIFLAG =
270 !endif
271 !if "$(USE_RTTI)" == "1"
272 __RTTIFLAG = /GR
273 !endif
274 !if "$(USE_EXCEPTIONS)" == "0"
275 __EXCEPTIONSFLAG =
276 !endif
277 !if "$(USE_EXCEPTIONS)" == "1"
278 __EXCEPTIONSFLAG = /EHsc
279 !endif
280 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
281 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
282 !endif
283 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
284 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
285 !endif
286 !if "$(WXUNIV)" == "1"
287 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
288 !endif
289 !if "$(DEBUG_FLAG)" == "0"
290 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
291 !endif
292 !if "$(USE_EXCEPTIONS)" == "0"
293 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
294 !endif
295 !if "$(USE_RTTI)" == "0"
296 __RTTI_DEFINE_p = /DwxNO_RTTI
297 !endif
298 !if "$(USE_THREADS)" == "0"
299 __THREAD_DEFINE_p = /DwxNO_THREADS
300 !endif
301 !if "$(UNICODE)" == "0"
302 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
303 !endif
304 !if "$(UNICODE)" == "1"
305 __UNICODE_DEFINE_p = /D_UNICODE
306 !endif
307 !if "$(MSLU)" == "1"
308 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
309 !endif
310 !if "$(USE_GDIPLUS)" == "1"
311 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
312 !endif
313 !if "$(USE_CAIRO)" == "1"
314 ____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo
315 !endif
316 !if "$(SHARED)" == "1"
317 __DLLFLAG_p = /DWXUSINGDLL
318 !endif
319 !if "$(MONOLITHIC)" == "0"
320 __WXLIB_CORE_p = \
321 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
322 !endif
323 !if "$(MONOLITHIC)" == "0"
324 __WXLIB_BASE_p = \
325 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
326 !endif
327 !if "$(MONOLITHIC)" == "1"
328 __WXLIB_MONO_p = \
329 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
330 !endif
331 !if "$(USE_GUI)" == "1"
332 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
333 !endif
334 !if "$(USE_GUI)" == "1"
335 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
336 !endif
337 !if "$(USE_GUI)" == "1"
338 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
339 !endif
340 !if "$(MSLU)" == "1"
341 __UNICOWS_LIB_p = unicows.lib
342 !endif
343 !if "$(USE_GDIPLUS)" == "1"
344 __GDIPLUS_LIB_p = gdiplus.lib
345 !endif
346 !if "$(USE_CAIRO)" == "1"
347 __CAIRO_LIB_p = cairo.lib
348 !endif
349 !if "$(USE_CAIRO)" == "1"
350 ____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib
351 !endif
352
353
354 all: $(OBJS)
355 $(OBJS):
356 -if not exist $(OBJS) mkdir $(OBJS)
357
358 ### Targets: ###
359
360 all: $(OBJS)\my_dll.dll $(__wx_exe___depname)
361
362 clean:
363 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
364 -if exist $(OBJS)\*.res del $(OBJS)\*.res
365 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
366 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
367 -if exist $(OBJS)\my_dll.ilk del $(OBJS)\my_dll.ilk
368 -if exist $(OBJS)\my_dll.pdb del $(OBJS)\my_dll.pdb
369 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib
370 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
371 -if exist $(OBJS)\wx_exe.ilk del $(OBJS)\wx_exe.ilk
372 -if exist $(OBJS)\wx_exe.pdb del $(OBJS)\wx_exe.pdb
373
374 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
375 link /DLL /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\my_dll.pdb" $(__DEBUGINFO_3) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
376 $(MY_DLL_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) $(__CAIRO_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 wininet.lib /IMPLIB:$(OBJS)\my_dll.lib
377 <<
378
379 !if "$(SHARED)" == "0"
380 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll
381 link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\wx_exe.pdb" $(__DEBUGINFO_17) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
382 $(WX_EXE_OBJECTS) $(WX_EXE_RESOURCES) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(OBJS)\my_dll.lib $(__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) $(__CAIRO_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 wininet.lib
383 <<
384 !endif
385
386 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
387 $(CXX) /c /nologo /TP /Fo$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp
388
389 $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc
390 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_18_p_1) $(__NO_VC_CRTDBG_p_3) /d __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) $(__GFXCTX_DEFINE_p_3) /i $(SETUPHDIR) /i .\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_3_p) /i . $(__DLLFLAG_p_3) /d _WINDOWS /i .\..\..\samples /d NOPCH .\..\..\samples\sample.rc
391
392 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp
393 $(CXX) /c /nologo /TP /Fo$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp
394