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) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 $(__MSLU_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) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
37 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
38 $(__MSLU_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 "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
176 __NDEBUG_DEFINE_p_3 = /d NDEBUG
178 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
179 __NDEBUG_DEFINE_p_3 = /d NDEBUG
181 !if "$(USE_EXCEPTIONS)" == "0"
182 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
184 !if "$(USE_RTTI)" == "0"
185 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
187 !if "$(USE_THREADS)" == "0"
188 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
190 !if "$(UNICODE)" == "0"
191 __UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=0
193 !if "$(UNICODE)" == "1"
194 __UNICODE_DEFINE_p_3 = /d _UNICODE
197 __MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
199 !if "$(USE_CAIRO)" == "1"
200 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = /i $(CAIRO_ROOT)\include\cairo
202 !if "$(SHARED)" == "1"
203 __DLLFLAG_p_3 = /d WXUSINGDLL
205 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
206 __DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
208 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
211 !if "$(DEBUG_INFO)" == "0"
214 !if "$(DEBUG_INFO)" == "1"
215 __DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
217 !if "$(RUNTIME_LIBS)" == "dynamic"
218 __RUNTIME_LIBS_41 = D
220 !if "$(RUNTIME_LIBS)" == "static"
221 __RUNTIME_LIBS_41 = $(__THREADSFLAG)
223 !if "$(WXUNIV)" == "1"
224 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
226 !if "$(DEBUG_FLAG)" == "0"
227 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
229 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
230 __NDEBUG_DEFINE_p = /DNDEBUG
232 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
233 __NDEBUG_DEFINE_p = /DNDEBUG
235 !if "$(USE_EXCEPTIONS)" == "0"
236 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
238 !if "$(USE_RTTI)" == "0"
239 __RTTI_DEFINE_p = /DwxNO_RTTI
241 !if "$(USE_THREADS)" == "0"
242 __THREAD_DEFINE_p = /DwxNO_THREADS
244 !if "$(UNICODE)" == "0"
245 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
247 !if "$(UNICODE)" == "1"
248 __UNICODE_DEFINE_p = /D_UNICODE
251 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
253 !if "$(USE_CAIRO)" == "1"
254 ____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo
256 !if "$(SHARED)" == "1"
257 __DLLFLAG_p = /DWXUSINGDLL
259 !if "$(MONOLITHIC)" == "0"
261 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
263 !if "$(MONOLITHIC)" == "0"
265 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
267 !if "$(MONOLITHIC)" == "1"
269 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
271 !if "$(USE_GUI)" == "1"
272 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
274 !if "$(USE_GUI)" == "1"
275 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
277 !if "$(USE_GUI)" == "1"
278 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
281 __UNICOWS_LIB_p = unicows.lib
283 !if "$(USE_CAIRO)" == "1"
284 __CAIRO_LIB_p = cairo.lib
286 !if "$(USE_CAIRO)" == "1"
287 ____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib
289 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
292 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
295 !if "$(DEBUG_INFO)" == "0"
298 !if "$(DEBUG_INFO)" == "1"
301 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
304 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
307 !if "$(DEBUG_INFO)" == "0"
310 !if "$(DEBUG_INFO)" == "1"
313 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
314 ____DEBUGRUNTIME = /D_DEBUG
316 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
319 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
322 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
323 ____DEBUGRUNTIME = /D_DEBUG
325 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
328 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
331 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
334 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
337 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
340 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
341 __DEBUGRUNTIME_1 = /opt:ref /opt:icf
343 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
344 __DEBUGRUNTIME_1 = /opt:ref /opt:icf
346 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
349 !if "$(BUILD)" == "debug"
352 !if "$(BUILD)" == "release"
355 !if "$(USE_THREADS)" == "0"
358 !if "$(USE_THREADS)" == "1"
361 !if "$(USE_RTTI)" == "0"
364 !if "$(USE_RTTI)" == "1"
367 !if "$(USE_EXCEPTIONS)" == "0"
370 !if "$(USE_EXCEPTIONS)" == "1"
371 __EXCEPTIONSFLAG = /EHsc
373 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
374 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
376 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
377 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
383 -if not exist $(OBJS) mkdir $(OBJS)
387 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
390 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
391 -if exist $(OBJS)\*.res del $(OBJS)\*.res
392 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
393 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
394 -if exist $(OBJS)\my_dll.ilk del $(OBJS)\my_dll.ilk
395 -if exist $(OBJS)\my_dll.pdb del $(OBJS)\my_dll.pdb
396 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib
397 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
398 -if exist $(OBJS)\wx_exe.ilk del $(OBJS)\wx_exe.ilk
399 -if exist $(OBJS)\wx_exe.pdb del $(OBJS)\wx_exe.pdb
400 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
401 -if exist $(OBJS)\sdk_exe.ilk del $(OBJS)\sdk_exe.ilk
402 -if exist $(OBJS)\sdk_exe.pdb del $(OBJS)\sdk_exe.pdb
404 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
405 link /DLL /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\my_dll.pdb" $(__DEBUGINFO_3) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
406 $(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) $(__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
409 !if "$(SHARED)" == "0"
410 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll
411 link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\wx_exe.pdb" $(__DEBUGINFO_17) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
412 $(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) $(__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
416 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
417 link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\sdk_exe.pdb" $(__DEBUGINFO_33) $(LINK_TARGET_CPU) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
418 $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.lib user32.lib
421 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
422 $(CXX) /c /nologo /TP /Fo$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp
424 $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc
425 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_18_p_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
427 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp
428 $(CXX) /c /nologo /TP /Fo$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp
430 $(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
431 $(CXX) /c /nologo /TP /Fo$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp