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_0) /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) /DMY_DLL_BUILDING /I. \
30 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
32 $(OBJS)\my_dll_my_dll.obj
33 WX_EXE_CXXFLAGS = /M$(__RUNTIME_LIBS_25)$(__DEBUGRUNTIME) /DWIN32 \
34 $(__DEBUGINFO_0) /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
46 SDK_EXE_CXXFLAGS = /M$(__RUNTIME_LIBS_41)$(__DEBUGRUNTIME) /DWIN32 \
47 $(__DEBUGINFO_0) /Fd$(OBJS)\sdk_exe.pdb $(____DEBUGRUNTIME) \
48 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D_WINDOWS $(__RTTIFLAG) \
49 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
51 $(OBJS)\sdk_exe_sdk_exe.obj
53 ### Conditionally set variables: ###
55 !if "$(USE_GUI)" == "0"
58 !if "$(USE_GUI)" == "1"
61 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
64 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
67 !if "$(UNICODE)" == "1"
70 !if "$(WXUNIV)" == "1"
73 !if "$(TARGET_CPU)" == "AMD64"
74 DIR_SUFFIX_CPU = _amd64
76 !if "$(TARGET_CPU)" == "IA64"
77 DIR_SUFFIX_CPU = _ia64
79 !if "$(TARGET_CPU)" == "amd64"
80 DIR_SUFFIX_CPU = _amd64
82 !if "$(TARGET_CPU)" == "ia64"
83 DIR_SUFFIX_CPU = _ia64
85 !if "$(SHARED)" == "1"
88 !if "$(SHARED)" == "0"
91 !if "$(SHARED)" == "1"
94 !if "$(TARGET_CPU)" == "AMD64"
95 LINK_TARGET_CPU = /MACHINE:X64
97 !if "$(TARGET_CPU)" == "IA64"
98 LINK_TARGET_CPU = /MACHINE:IA64
100 !if "$(TARGET_CPU)" == "amd64"
101 LINK_TARGET_CPU = /MACHINE:X64
103 !if "$(TARGET_CPU)" == "ia64"
104 LINK_TARGET_CPU = /MACHINE:IA64
106 !if "$(MONOLITHIC)" == "0"
109 !if "$(MONOLITHIC)" == "1"
112 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
113 __DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
115 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
118 !if "$(DEBUG_INFO)" == "0"
121 !if "$(DEBUG_INFO)" == "1"
122 __DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
124 !if "$(RUNTIME_LIBS)" == "dynamic"
125 __RUNTIME_LIBS_11 = D
127 !if "$(RUNTIME_LIBS)" == "static"
128 __RUNTIME_LIBS_11 = $(__THREADSFLAG)
130 !if "$(SHARED)" == "0"
131 __wx_exe___depname = $(OBJS)\wx_exe.exe
133 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
134 __DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
136 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
139 !if "$(DEBUG_INFO)" == "0"
142 !if "$(DEBUG_INFO)" == "1"
143 __DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
145 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
146 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
148 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
149 ____DEBUGRUNTIME_18_p_1 =
151 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
152 ____DEBUGRUNTIME_18_p_1 =
154 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
155 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
157 !if "$(RUNTIME_LIBS)" == "dynamic"
158 __RUNTIME_LIBS_25 = D
160 !if "$(RUNTIME_LIBS)" == "static"
161 __RUNTIME_LIBS_25 = $(__THREADSFLAG)
163 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
164 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
166 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
167 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
169 !if "$(WXUNIV)" == "1"
170 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
172 !if "$(DEBUG_FLAG)" == "0"
173 __DEBUG_DEFINE_p_3 = /d wxDEBUG_LEVEL=0
175 !if "$(USE_EXCEPTIONS)" == "0"
176 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
178 !if "$(USE_RTTI)" == "0"
179 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
181 !if "$(USE_THREADS)" == "0"
182 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
184 !if "$(UNICODE)" == "0"
185 __UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=0
187 !if "$(UNICODE)" == "1"
188 __UNICODE_DEFINE_p_3 = /d _UNICODE
191 __MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
193 !if "$(USE_GDIPLUS)" == "1"
194 __GFXCTX_DEFINE_p_3 = /d wxUSE_GRAPHICS_CONTEXT=1
196 !if "$(USE_CAIRO)" == "1"
197 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = /i $(CAIRO_ROOT)\include\cairo
199 !if "$(SHARED)" == "1"
200 __DLLFLAG_p_3 = /d WXUSINGDLL
202 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
203 __DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
205 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
208 !if "$(DEBUG_INFO)" == "0"
211 !if "$(DEBUG_INFO)" == "1"
212 __DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
214 !if "$(RUNTIME_LIBS)" == "dynamic"
215 __RUNTIME_LIBS_41 = D
217 !if "$(RUNTIME_LIBS)" == "static"
218 __RUNTIME_LIBS_41 = $(__THREADSFLAG)
220 !if "$(WXUNIV)" == "1"
221 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
223 !if "$(DEBUG_FLAG)" == "0"
224 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
226 !if "$(USE_EXCEPTIONS)" == "0"
227 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
229 !if "$(USE_RTTI)" == "0"
230 __RTTI_DEFINE_p = /DwxNO_RTTI
232 !if "$(USE_THREADS)" == "0"
233 __THREAD_DEFINE_p = /DwxNO_THREADS
235 !if "$(UNICODE)" == "0"
236 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
238 !if "$(UNICODE)" == "1"
239 __UNICODE_DEFINE_p = /D_UNICODE
242 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
244 !if "$(USE_GDIPLUS)" == "1"
245 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
247 !if "$(USE_CAIRO)" == "1"
248 ____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo
250 !if "$(SHARED)" == "1"
251 __DLLFLAG_p = /DWXUSINGDLL
253 !if "$(MONOLITHIC)" == "0"
255 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
257 !if "$(MONOLITHIC)" == "0"
259 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
261 !if "$(MONOLITHIC)" == "1"
263 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
265 !if "$(USE_GUI)" == "1"
266 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
268 !if "$(USE_GUI)" == "1"
269 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
271 !if "$(USE_GUI)" == "1"
272 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
275 __UNICOWS_LIB_p = unicows.lib
277 !if "$(USE_GDIPLUS)" == "1"
278 __GDIPLUS_LIB_p = gdiplus.lib
280 !if "$(USE_CAIRO)" == "1"
281 __CAIRO_LIB_p = cairo.lib
283 !if "$(USE_CAIRO)" == "1"
284 ____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib
286 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
289 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
292 !if "$(DEBUG_INFO)" == "0"
295 !if "$(DEBUG_INFO)" == "1"
298 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
301 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
304 !if "$(DEBUG_INFO)" == "0"
307 !if "$(DEBUG_INFO)" == "1"
310 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
311 ____DEBUGRUNTIME = /D_DEBUG
313 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
316 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
319 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
320 ____DEBUGRUNTIME = /D_DEBUG
322 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
325 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
328 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
331 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
334 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
337 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
338 __DEBUGRUNTIME_1 = /opt:ref /opt:icf
340 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
341 __DEBUGRUNTIME_1 = /opt:ref /opt:icf
343 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
346 !if "$(BUILD)" == "debug"
349 !if "$(BUILD)" == "release"
352 !if "$(USE_THREADS)" == "0"
355 !if "$(USE_THREADS)" == "1"
358 !if "$(USE_RTTI)" == "0"
361 !if "$(USE_RTTI)" == "1"
364 !if "$(USE_EXCEPTIONS)" == "0"
367 !if "$(USE_EXCEPTIONS)" == "1"
368 __EXCEPTIONSFLAG = /EHsc
370 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
371 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
373 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
374 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
380 -if not exist $(OBJS) mkdir $(OBJS)
384 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
387 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
388 -if exist $(OBJS)\*.res del $(OBJS)\*.res
389 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
390 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
391 -if exist $(OBJS)\my_dll.ilk del $(OBJS)\my_dll.ilk
392 -if exist $(OBJS)\my_dll.pdb del $(OBJS)\my_dll.pdb
393 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib
394 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
395 -if exist $(OBJS)\wx_exe.ilk del $(OBJS)\wx_exe.ilk
396 -if exist $(OBJS)\wx_exe.pdb del $(OBJS)\wx_exe.pdb
397 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
398 -if exist $(OBJS)\sdk_exe.ilk del $(OBJS)\sdk_exe.ilk
399 -if exist $(OBJS)\sdk_exe.pdb del $(OBJS)\sdk_exe.pdb
401 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
402 link /DLL /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\my_dll.pdb" $(__DEBUGINFO_3) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
403 $(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
406 !if "$(SHARED)" == "0"
407 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll
408 link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\wx_exe.pdb" $(__DEBUGINFO_17) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
409 $(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
413 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
414 link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\sdk_exe.pdb" $(__DEBUGINFO_33) $(LINK_TARGET_CPU) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
415 $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.lib user32.lib
418 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
419 $(CXX) /c /nologo /TP /Fo$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp
421 $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc
422 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
424 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp
425 $(CXX) /c /nologo /TP /Fo$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp
427 $(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
428 $(CXX) /c /nologo /TP /Fo$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp