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__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
28 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
29 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
30 $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
31 $(____CAIRO_INCLUDEDIR_FILENAMES) /W4 $(__DLLFLAG_p) /DMY_DLL_BUILDING /I. \
32 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(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__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
40 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
41 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
42 $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
43 $(____CAIRO_INCLUDEDIR_FILENAMES) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
44 /I.\..\..\samples /DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
47 $(OBJS)\wx_exe_wx_exe.obj
49 $(OBJS)\wx_exe_sample.res
50 SDK_EXE_CXXFLAGS = /M$(__RUNTIME_LIBS_41)$(__DEBUGRUNTIME) /DWIN32 \
51 $(__DEBUGINFO_0) /Fd$(OBJS)\sdk_exe.pdb $(____DEBUGRUNTIME) \
52 $(__OPTIMIZEFLAG) /D_CRT_SECURE_NO_DEPRECATE=1 \
53 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
54 $(__NO_VC_CRTDBG_p) /D_WINDOWS $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
57 $(OBJS)\sdk_exe_sdk_exe.obj
59 ### Conditionally set variables: ###
61 !if "$(TOOLKIT)" == "GTK"
62 WIN32_TOOLKIT_LOWERCASE = gtk
64 !if "$(TOOLKIT)" == "MSW"
65 WIN32_TOOLKIT_LOWERCASE = msw
67 !if "$(TARGET_CPU)" == "AMD64"
70 !if "$(TARGET_CPU)" == "IA64"
73 !if "$(TARGET_CPU)" == "X64"
76 !if "$(TARGET_CPU)" == "amd64"
79 !if "$(TARGET_CPU)" == "ia64"
82 !if "$(TARGET_CPU)" == "x64"
85 !if "$(USE_GUI)" == "0"
88 !if "$(USE_GUI)" == "1"
89 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
91 !if "$(TOOLKIT)" == "MAC"
94 !if "$(OFFICIAL_BUILD)" == "1"
95 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
97 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
100 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
103 !if "$(UNICODE)" == "1"
106 !if "$(WXUNIV)" == "1"
109 !if "$(SHARED)" == "1"
112 !if "$(SHARED)" == "0"
115 !if "$(SHARED)" == "1"
118 !if "$(TARGET_CPU)" == "AMD64"
119 LINK_TARGET_CPU = /MACHINE:X64
121 !if "$(TARGET_CPU)" == "IA64"
122 LINK_TARGET_CPU = /MACHINE:IA64
124 !if "$(TARGET_CPU)" == "X64"
125 LINK_TARGET_CPU = /MACHINE:X64
127 !if "$(TARGET_CPU)" == "amd64"
128 LINK_TARGET_CPU = /MACHINE:X64
130 !if "$(TARGET_CPU)" == "ia64"
131 LINK_TARGET_CPU = /MACHINE:IA64
133 !if "$(TARGET_CPU)" == "x64"
134 LINK_TARGET_CPU = /MACHINE:X64
136 !if "$(MONOLITHIC)" == "0"
139 !if "$(MONOLITHIC)" == "1"
142 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
143 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
144 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
147 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
148 __DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
150 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
153 !if "$(DEBUG_INFO)" == "0"
156 !if "$(DEBUG_INFO)" == "1"
157 __DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
159 !if "$(RUNTIME_LIBS)" == "dynamic"
160 __RUNTIME_LIBS_11 = D
162 !if "$(RUNTIME_LIBS)" == "static"
163 __RUNTIME_LIBS_11 = $(__THREADSFLAG)
165 !if "$(SHARED)" == "0"
166 __wx_exe___depname = $(OBJS)\wx_exe.exe
168 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
169 __DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
171 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
174 !if "$(DEBUG_INFO)" == "0"
177 !if "$(DEBUG_INFO)" == "1"
178 __DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
180 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
181 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
183 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
184 ____DEBUGRUNTIME_18_p_1 =
186 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
187 ____DEBUGRUNTIME_18_p_1 =
189 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
190 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
192 !if "$(RUNTIME_LIBS)" == "dynamic"
193 __RUNTIME_LIBS_25 = D
195 !if "$(RUNTIME_LIBS)" == "static"
196 __RUNTIME_LIBS_25 = $(__THREADSFLAG)
198 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
199 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
201 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
202 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
204 !if "$(WXUNIV)" == "1"
205 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
207 !if "$(DEBUG_FLAG)" == "0"
208 __DEBUG_DEFINE_p_3 = /d wxDEBUG_LEVEL=0
210 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
211 __NDEBUG_DEFINE_p_3 = /d NDEBUG
213 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
214 __NDEBUG_DEFINE_p_3 = /d NDEBUG
216 !if "$(USE_EXCEPTIONS)" == "0"
217 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
219 !if "$(USE_RTTI)" == "0"
220 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
222 !if "$(USE_THREADS)" == "0"
223 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
225 !if "$(UNICODE)" == "0"
226 __UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=0
228 !if "$(UNICODE)" == "1"
229 __UNICODE_DEFINE_p_3 = /d _UNICODE
232 __MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
234 !if "$(USE_CAIRO)" == "1"
235 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = /i $(CAIRO_ROOT)\include\cairo
237 !if "$(SHARED)" == "1"
238 __DLLFLAG_p_3 = /d WXUSINGDLL
240 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
241 __DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
243 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
246 !if "$(DEBUG_INFO)" == "0"
249 !if "$(DEBUG_INFO)" == "1"
250 __DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
252 !if "$(RUNTIME_LIBS)" == "dynamic"
253 __RUNTIME_LIBS_41 = D
255 !if "$(RUNTIME_LIBS)" == "static"
256 __RUNTIME_LIBS_41 = $(__THREADSFLAG)
258 !if "$(WXUNIV)" == "1"
259 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
261 !if "$(DEBUG_FLAG)" == "0"
262 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
264 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
265 __NDEBUG_DEFINE_p = /DNDEBUG
267 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
268 __NDEBUG_DEFINE_p = /DNDEBUG
270 !if "$(USE_EXCEPTIONS)" == "0"
271 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
273 !if "$(USE_RTTI)" == "0"
274 __RTTI_DEFINE_p = /DwxNO_RTTI
276 !if "$(USE_THREADS)" == "0"
277 __THREAD_DEFINE_p = /DwxNO_THREADS
279 !if "$(UNICODE)" == "0"
280 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
282 !if "$(UNICODE)" == "1"
283 __UNICODE_DEFINE_p = /D_UNICODE
286 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
288 !if "$(USE_CAIRO)" == "1"
289 ____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo
291 !if "$(SHARED)" == "1"
292 __DLLFLAG_p = /DWXUSINGDLL
294 !if "$(MONOLITHIC)" == "0"
296 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
298 !if "$(MONOLITHIC)" == "0"
300 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
302 !if "$(MONOLITHIC)" == "1"
304 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
306 !if "$(USE_GUI)" == "1"
307 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
309 !if "$(USE_GUI)" == "1"
310 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
312 !if "$(USE_GUI)" == "1"
313 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
316 __UNICOWS_LIB_p = unicows.lib
318 !if "$(USE_CAIRO)" == "1"
319 __CAIRO_LIB_p = cairo.lib
321 !if "$(USE_CAIRO)" == "1"
322 ____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib
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_INFO)" == "default"
339 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
342 !if "$(DEBUG_INFO)" == "0"
345 !if "$(DEBUG_INFO)" == "1"
348 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
349 ____DEBUGRUNTIME = /D_DEBUG
351 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
354 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
357 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
358 ____DEBUGRUNTIME = /D_DEBUG
360 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
363 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
366 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
369 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
372 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
375 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
376 __DEBUGRUNTIME_1 = /opt:ref /opt:icf
378 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
379 __DEBUGRUNTIME_1 = /opt:ref /opt:icf
381 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
384 !if "$(BUILD)" == "debug"
387 !if "$(BUILD)" == "release"
390 !if "$(USE_THREADS)" == "0"
393 !if "$(USE_THREADS)" == "1"
396 !if "$(USE_RTTI)" == "0"
399 !if "$(USE_RTTI)" == "1"
402 !if "$(USE_EXCEPTIONS)" == "0"
405 !if "$(USE_EXCEPTIONS)" == "1"
406 __EXCEPTIONSFLAG = /EHsc
408 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
409 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
411 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
412 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
418 -if not exist $(OBJS) mkdir $(OBJS)
422 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
425 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
426 -if exist $(OBJS)\*.res del $(OBJS)\*.res
427 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
428 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
429 -if exist $(OBJS)\my_dll.ilk del $(OBJS)\my_dll.ilk
430 -if exist $(OBJS)\my_dll.pdb del $(OBJS)\my_dll.pdb
431 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib
432 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
433 -if exist $(OBJS)\wx_exe.ilk del $(OBJS)\wx_exe.ilk
434 -if exist $(OBJS)\wx_exe.pdb del $(OBJS)\wx_exe.pdb
435 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
436 -if exist $(OBJS)\sdk_exe.ilk del $(OBJS)\sdk_exe.ilk
437 -if exist $(OBJS)\sdk_exe.pdb del $(OBJS)\sdk_exe.pdb
439 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
440 link /DLL /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\my_dll.pdb" $(__DEBUGINFO_3) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
441 $(MY_DLL_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) 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
444 !if "$(SHARED)" == "0"
445 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll
446 link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\wx_exe.pdb" $(__DEBUGINFO_17) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
447 $(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) $(LIB_GTK) 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
451 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
452 link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\sdk_exe.pdb" $(__DEBUGINFO_33) $(LINK_TARGET_CPU) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
453 $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.lib user32.lib
456 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
457 $(CXX) /c /nologo /TP /Fo$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp
459 $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc
460 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 __WX$(TOOLKIT)__ $(__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
462 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp
463 $(CXX) /c /nologo /TP /Fo$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp
465 $(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
466 $(CXX) /c /nologo /TP /Fo$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp