1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (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)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(ARCH_SUFFIX)
20 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)$(ARCH_SUFFIX)_$(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) /D_CRT_SECURE_NO_DEPRECATE=1 \
26 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
27 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
28 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
29 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
30 /I$(SETUPHDIR) /I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) /W4 \
31 $(__DLLFLAG_p) /DMY_DLL_BUILDING /I. $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
32 $(CPPFLAGS) $(CXXFLAGS)
34 $(OBJS)\my_dll_my_dll.obj
35 WX_EXE_CXXFLAGS = /M$(__RUNTIME_LIBS_25)$(__DEBUGRUNTIME) /DWIN32 \
36 $(__DEBUGINFO_0) /Fd$(OBJS)\wx_exe.pdb $(____DEBUGRUNTIME) \
37 $(__OPTIMIZEFLAG) /D_CRT_SECURE_NO_DEPRECATE=1 \
38 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
39 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
40 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
41 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
42 /I$(SETUPHDIR) /I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) /W4 /I. \
43 $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG) \
44 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
46 $(OBJS)\wx_exe_wx_exe.obj
48 $(OBJS)\wx_exe_sample.res
49 SDK_EXE_CXXFLAGS = /M$(__RUNTIME_LIBS_41)$(__DEBUGRUNTIME) /DWIN32 \
50 $(__DEBUGINFO_0) /Fd$(OBJS)\sdk_exe.pdb $(____DEBUGRUNTIME) \
51 $(__OPTIMIZEFLAG) /D_CRT_SECURE_NO_DEPRECATE=1 \
52 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
53 $(__NO_VC_CRTDBG_p) /D_WINDOWS $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
56 $(OBJS)\sdk_exe_sdk_exe.obj
58 ### Conditionally set variables: ###
60 !if "$(TARGET_CPU)" == "AMD64"
63 !if "$(TARGET_CPU)" == "IA64"
66 !if "$(TARGET_CPU)" == "X64"
69 !if "$(TARGET_CPU)" == "amd64"
72 !if "$(TARGET_CPU)" == "ia64"
75 !if "$(TARGET_CPU)" == "x64"
78 !if "$(USE_GUI)" == "0"
81 !if "$(USE_GUI)" == "1"
82 PORTNAME = msw$(TOOLKIT_VERSION)
84 !if "$(OFFICIAL_BUILD)" == "1"
85 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
87 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
90 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
93 !if "$(UNICODE)" == "1"
96 !if "$(WXUNIV)" == "1"
99 !if "$(SHARED)" == "1"
102 !if "$(SHARED)" == "0"
105 !if "$(SHARED)" == "1"
108 !if "$(TARGET_CPU)" == "AMD64"
109 LINK_TARGET_CPU = /MACHINE:X64
111 !if "$(TARGET_CPU)" == "IA64"
112 LINK_TARGET_CPU = /MACHINE:IA64
114 !if "$(TARGET_CPU)" == "X64"
115 LINK_TARGET_CPU = /MACHINE:X64
117 !if "$(TARGET_CPU)" == "amd64"
118 LINK_TARGET_CPU = /MACHINE:X64
120 !if "$(TARGET_CPU)" == "ia64"
121 LINK_TARGET_CPU = /MACHINE:IA64
123 !if "$(TARGET_CPU)" == "x64"
124 LINK_TARGET_CPU = /MACHINE:X64
126 !if "$(MONOLITHIC)" == "0"
129 !if "$(MONOLITHIC)" == "1"
132 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
133 __DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
135 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
138 !if "$(DEBUG_INFO)" == "0"
141 !if "$(DEBUG_INFO)" == "1"
142 __DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
144 !if "$(RUNTIME_LIBS)" == "dynamic"
145 __RUNTIME_LIBS_11 = D
147 !if "$(RUNTIME_LIBS)" == "static"
148 __RUNTIME_LIBS_11 = $(__THREADSFLAG)
150 !if "$(SHARED)" == "0"
151 __wx_exe___depname = $(OBJS)\wx_exe.exe
153 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
154 __DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
156 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
159 !if "$(DEBUG_INFO)" == "0"
162 !if "$(DEBUG_INFO)" == "1"
163 __DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
165 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
166 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
168 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
169 ____DEBUGRUNTIME_18_p_1 =
171 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
172 ____DEBUGRUNTIME_18_p_1 =
174 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
175 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
177 !if "$(RUNTIME_LIBS)" == "dynamic"
178 __RUNTIME_LIBS_25 = D
180 !if "$(RUNTIME_LIBS)" == "static"
181 __RUNTIME_LIBS_25 = $(__THREADSFLAG)
183 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
184 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
186 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
187 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
189 !if "$(WXUNIV)" == "1"
190 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
192 !if "$(DEBUG_FLAG)" == "0"
193 __DEBUG_DEFINE_p_3 = /d wxDEBUG_LEVEL=0
195 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
196 __NDEBUG_DEFINE_p_3 = /d NDEBUG
198 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
199 __NDEBUG_DEFINE_p_3 = /d NDEBUG
201 !if "$(USE_EXCEPTIONS)" == "0"
202 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
204 !if "$(USE_RTTI)" == "0"
205 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
207 !if "$(USE_THREADS)" == "0"
208 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
210 !if "$(UNICODE)" == "0"
211 __UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=0
213 !if "$(UNICODE)" == "1"
214 __UNICODE_DEFINE_p_3 = /d _UNICODE
217 __MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
219 !if "$(USE_CAIRO)" == "1"
220 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = /i $(CAIRO_ROOT)\include\cairo
222 !if "$(SHARED)" == "1"
223 __DLLFLAG_p_3 = /d WXUSINGDLL
225 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
226 __DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
228 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
231 !if "$(DEBUG_INFO)" == "0"
234 !if "$(DEBUG_INFO)" == "1"
235 __DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
237 !if "$(RUNTIME_LIBS)" == "dynamic"
238 __RUNTIME_LIBS_41 = D
240 !if "$(RUNTIME_LIBS)" == "static"
241 __RUNTIME_LIBS_41 = $(__THREADSFLAG)
243 !if "$(WXUNIV)" == "1"
244 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
246 !if "$(DEBUG_FLAG)" == "0"
247 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
249 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
250 __NDEBUG_DEFINE_p = /DNDEBUG
252 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
253 __NDEBUG_DEFINE_p = /DNDEBUG
255 !if "$(USE_EXCEPTIONS)" == "0"
256 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
258 !if "$(USE_RTTI)" == "0"
259 __RTTI_DEFINE_p = /DwxNO_RTTI
261 !if "$(USE_THREADS)" == "0"
262 __THREAD_DEFINE_p = /DwxNO_THREADS
264 !if "$(UNICODE)" == "0"
265 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
267 !if "$(UNICODE)" == "1"
268 __UNICODE_DEFINE_p = /D_UNICODE
271 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
273 !if "$(USE_CAIRO)" == "1"
274 ____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo
276 !if "$(SHARED)" == "1"
277 __DLLFLAG_p = /DWXUSINGDLL
279 !if "$(MONOLITHIC)" == "0"
281 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
283 !if "$(MONOLITHIC)" == "0"
285 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
287 !if "$(MONOLITHIC)" == "1"
289 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
291 !if "$(MONOLITHIC)" == "1" && "$(USE_STC)" == "1"
292 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
294 !if "$(USE_GUI)" == "1"
295 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
297 !if "$(USE_GUI)" == "1"
298 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
300 !if "$(USE_GUI)" == "1"
301 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
304 __UNICOWS_LIB_p = unicows.lib
306 !if "$(USE_CAIRO)" == "1"
307 __CAIRO_LIB_p = cairo.lib
309 !if "$(USE_CAIRO)" == "1"
310 ____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib
312 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
315 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
318 !if "$(DEBUG_INFO)" == "0"
321 !if "$(DEBUG_INFO)" == "1"
324 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
327 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
330 !if "$(DEBUG_INFO)" == "0"
333 !if "$(DEBUG_INFO)" == "1"
336 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
337 ____DEBUGRUNTIME = /D_DEBUG
339 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
342 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
345 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
346 ____DEBUGRUNTIME = /D_DEBUG
348 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
351 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
354 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
357 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
360 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
363 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
364 __DEBUGRUNTIME_1 = /opt:ref /opt:icf
366 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
367 __DEBUGRUNTIME_1 = /opt:ref /opt:icf
369 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
372 !if "$(BUILD)" == "debug"
375 !if "$(BUILD)" == "release"
378 !if "$(USE_THREADS)" == "0"
381 !if "$(USE_THREADS)" == "1"
384 !if "$(USE_RTTI)" == "0"
387 !if "$(USE_RTTI)" == "1"
390 !if "$(USE_EXCEPTIONS)" == "0"
393 !if "$(USE_EXCEPTIONS)" == "1"
394 __EXCEPTIONSFLAG = /EHsc
396 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
397 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
399 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
400 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
406 -if not exist $(OBJS) mkdir $(OBJS)
410 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
413 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
414 -if exist $(OBJS)\*.res del $(OBJS)\*.res
415 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
416 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
417 -if exist $(OBJS)\my_dll.ilk del $(OBJS)\my_dll.ilk
418 -if exist $(OBJS)\my_dll.pdb del $(OBJS)\my_dll.pdb
419 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib
420 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
421 -if exist $(OBJS)\wx_exe.ilk del $(OBJS)\wx_exe.ilk
422 -if exist $(OBJS)\wx_exe.pdb del $(OBJS)\wx_exe.pdb
423 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
424 -if exist $(OBJS)\sdk_exe.ilk del $(OBJS)\sdk_exe.ilk
425 -if exist $(OBJS)\sdk_exe.pdb del $(OBJS)\sdk_exe.pdb
427 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
428 link /DLL /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\my_dll.pdb" $(__DEBUGINFO_3) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
429 $(MY_DLL_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_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) $(__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
432 !if "$(SHARED)" == "0"
433 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll
434 link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\wx_exe.pdb" $(__DEBUGINFO_17) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
435 $(WX_EXE_OBJECTS) $(WX_EXE_RESOURCES) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(OBJS)\my_dll.lib $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_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) $(__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
439 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
440 link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\sdk_exe.pdb" $(__DEBUGINFO_33) $(LINK_TARGET_CPU) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
441 $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.lib user32.lib
444 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
445 $(CXX) /c /nologo /TP /Fo$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp
447 $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc
448 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_18_p_1) /d _CRT_SECURE_NO_DEPRECATE=1 /d _CRT_NON_CONFORMING_SWPRINTFS=1 /d _SCL_SECURE_NO_WARNINGS=1 $(__NO_VC_CRTDBG_p_3) /d __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__NDEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_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
450 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp
451 $(CXX) /c /nologo /TP /Fo$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp
453 $(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
454 $(CXX) /c /nologo /TP /Fo$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp