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 # =========================================================================
7 !include <../../build/msw/config.vc>
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
20 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
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)
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) \
43 $(OBJS)\wx_exe_wx_exe.obj
45 $(OBJS)\wx_exe_sample.res
47 ### Conditionally set variables: ###
49 !if "$(USE_GUI)" == "0"
52 !if "$(USE_GUI)" == "1"
55 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
58 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
61 !if "$(UNICODE)" == "1"
64 !if "$(WXUNIV)" == "1"
67 !if "$(TARGET_CPU)" == "AMD64"
68 DIR_SUFFIX_CPU = _amd64
70 !if "$(TARGET_CPU)" == "IA64"
71 DIR_SUFFIX_CPU = _ia64
73 !if "$(TARGET_CPU)" == "amd64"
74 DIR_SUFFIX_CPU = _amd64
76 !if "$(TARGET_CPU)" == "ia64"
77 DIR_SUFFIX_CPU = _ia64
79 !if "$(SHARED)" == "1"
82 !if "$(SHARED)" == "0"
85 !if "$(SHARED)" == "1"
88 !if "$(TARGET_CPU)" == "AMD64"
89 LINK_TARGET_CPU = /MACHINE:AMD64
91 !if "$(TARGET_CPU)" == "IA64"
92 LINK_TARGET_CPU = /MACHINE:IA64
94 !if "$(TARGET_CPU)" == "amd64"
95 LINK_TARGET_CPU = /MACHINE:AMD64
97 !if "$(TARGET_CPU)" == "ia64"
98 LINK_TARGET_CPU = /MACHINE:IA64
100 !if "$(MONOLITHIC)" == "0"
103 !if "$(MONOLITHIC)" == "1"
106 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
107 __DEBUGINFO_3 = $(__DEBUGRUNTIME_0)
109 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
112 !if "$(DEBUG_INFO)" == "0"
115 !if "$(DEBUG_INFO)" == "1"
116 __DEBUGINFO_3 = $(__DEBUGRUNTIME_0)
118 !if "$(RUNTIME_LIBS)" == "dynamic"
119 __RUNTIME_LIBS_11 = D
121 !if "$(RUNTIME_LIBS)" == "static"
122 __RUNTIME_LIBS_11 = $(__THREADSFLAG)
124 !if "$(SHARED)" == "0"
125 __wx_exe___depname = $(OBJS)\wx_exe.exe
127 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
128 __DEBUGINFO_17 = $(__DEBUGRUNTIME_0)
130 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
133 !if "$(DEBUG_INFO)" == "0"
136 !if "$(DEBUG_INFO)" == "1"
137 __DEBUGINFO_17 = $(__DEBUGRUNTIME_0)
139 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
140 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
142 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
143 ____DEBUGRUNTIME_18_p_1 =
145 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
146 ____DEBUGRUNTIME_18_p_1 =
148 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
149 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
151 !if "$(RUNTIME_LIBS)" == "dynamic"
152 __RUNTIME_LIBS_25 = D
154 !if "$(RUNTIME_LIBS)" == "static"
155 __RUNTIME_LIBS_25 = $(__THREADSFLAG)
157 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
158 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
160 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
161 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
163 !if "$(WXUNIV)" == "1"
164 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
166 !if "$(DEBUG_FLAG)" == "0"
167 __DEBUG_DEFINE_p_3 = /d wxDEBUG_LEVEL=0
169 !if "$(USE_EXCEPTIONS)" == "0"
170 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
172 !if "$(USE_RTTI)" == "0"
173 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
175 !if "$(USE_THREADS)" == "0"
176 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
178 !if "$(UNICODE)" == "0"
179 __UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=0
181 !if "$(UNICODE)" == "1"
182 __UNICODE_DEFINE_p_3 = /d _UNICODE
185 __MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
187 !if "$(USE_GDIPLUS)" == "1"
188 __GFXCTX_DEFINE_p_3 = /d wxUSE_GRAPHICS_CONTEXT=1
190 !if "$(USE_CAIRO)" == "1"
191 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = /i $(CAIRO_ROOT)\include\cairo
193 !if "$(SHARED)" == "1"
194 __DLLFLAG_p_3 = /d WXUSINGDLL
196 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
199 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
202 !if "$(DEBUG_INFO)" == "0"
205 !if "$(DEBUG_INFO)" == "1"
208 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
211 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
214 !if "$(DEBUG_INFO)" == "0"
217 !if "$(DEBUG_INFO)" == "1"
220 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
221 ____DEBUGRUNTIME = /D_DEBUG
223 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
226 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
229 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
230 ____DEBUGRUNTIME = /D_DEBUG
232 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
235 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
238 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
241 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
244 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
247 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
248 __DEBUGRUNTIME_0 = /opt:ref /opt:icf
250 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
251 __DEBUGRUNTIME_0 = /opt:ref /opt:icf
253 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
256 !if "$(BUILD)" == "debug"
259 !if "$(BUILD)" == "release"
262 !if "$(USE_THREADS)" == "0"
265 !if "$(USE_THREADS)" == "1"
268 !if "$(USE_RTTI)" == "0"
271 !if "$(USE_RTTI)" == "1"
274 !if "$(USE_EXCEPTIONS)" == "0"
277 !if "$(USE_EXCEPTIONS)" == "1"
278 __EXCEPTIONSFLAG = /EHsc
280 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
281 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
283 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
284 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
286 !if "$(WXUNIV)" == "1"
287 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
289 !if "$(DEBUG_FLAG)" == "0"
290 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
292 !if "$(USE_EXCEPTIONS)" == "0"
293 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
295 !if "$(USE_RTTI)" == "0"
296 __RTTI_DEFINE_p = /DwxNO_RTTI
298 !if "$(USE_THREADS)" == "0"
299 __THREAD_DEFINE_p = /DwxNO_THREADS
301 !if "$(UNICODE)" == "0"
302 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
304 !if "$(UNICODE)" == "1"
305 __UNICODE_DEFINE_p = /D_UNICODE
308 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
310 !if "$(USE_GDIPLUS)" == "1"
311 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
313 !if "$(USE_CAIRO)" == "1"
314 ____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo
316 !if "$(SHARED)" == "1"
317 __DLLFLAG_p = /DWXUSINGDLL
319 !if "$(MONOLITHIC)" == "0"
321 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
323 !if "$(MONOLITHIC)" == "0"
325 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
327 !if "$(MONOLITHIC)" == "1"
329 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
331 !if "$(USE_GUI)" == "1"
332 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
334 !if "$(USE_GUI)" == "1"
335 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
337 !if "$(USE_GUI)" == "1"
338 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
341 __UNICOWS_LIB_p = unicows.lib
343 !if "$(USE_GDIPLUS)" == "1"
344 __GDIPLUS_LIB_p = gdiplus.lib
346 !if "$(USE_CAIRO)" == "1"
347 __CAIRO_LIB_p = cairo.lib
349 !if "$(USE_CAIRO)" == "1"
350 ____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib
356 -if not exist $(OBJS) mkdir $(OBJS)
360 all: $(OBJS)\my_dll.dll $(__wx_exe___depname)
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
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
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
386 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
387 $(CXX) /c /nologo /TP /Fo$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp
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
392 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp
393 $(CXX) /c /nologo /TP /Fo$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp