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)_$(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) /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 "$(USE_GUI)" == "0"
63 !if "$(USE_GUI)" == "1"
66 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
69 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
72 !if "$(UNICODE)" == "1"
75 !if "$(WXUNIV)" == "1"
78 !if "$(TARGET_CPU)" == "AMD64"
79 DIR_SUFFIX_CPU = _amd64
81 !if "$(TARGET_CPU)" == "IA64"
82 DIR_SUFFIX_CPU = _ia64
84 !if "$(TARGET_CPU)" == "amd64"
85 DIR_SUFFIX_CPU = _amd64
87 !if "$(TARGET_CPU)" == "ia64"
88 DIR_SUFFIX_CPU = _ia64
90 !if "$(SHARED)" == "1"
93 !if "$(SHARED)" == "0"
96 !if "$(SHARED)" == "1"
99 !if "$(TARGET_CPU)" == "AMD64"
100 LINK_TARGET_CPU = /MACHINE:X64
102 !if "$(TARGET_CPU)" == "IA64"
103 LINK_TARGET_CPU = /MACHINE:IA64
105 !if "$(TARGET_CPU)" == "amd64"
106 LINK_TARGET_CPU = /MACHINE:X64
108 !if "$(TARGET_CPU)" == "ia64"
109 LINK_TARGET_CPU = /MACHINE:IA64
111 !if "$(MONOLITHIC)" == "0"
114 !if "$(MONOLITHIC)" == "1"
117 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
118 __DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
120 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
123 !if "$(DEBUG_INFO)" == "0"
126 !if "$(DEBUG_INFO)" == "1"
127 __DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
129 !if "$(RUNTIME_LIBS)" == "dynamic"
130 __RUNTIME_LIBS_11 = D
132 !if "$(RUNTIME_LIBS)" == "static"
133 __RUNTIME_LIBS_11 = $(__THREADSFLAG)
135 !if "$(SHARED)" == "0"
136 __wx_exe___depname = $(OBJS)\wx_exe.exe
138 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
139 __DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
141 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
144 !if "$(DEBUG_INFO)" == "0"
147 !if "$(DEBUG_INFO)" == "1"
148 __DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
150 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
151 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
153 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
154 ____DEBUGRUNTIME_18_p_1 =
156 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
157 ____DEBUGRUNTIME_18_p_1 =
159 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
160 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG
162 !if "$(RUNTIME_LIBS)" == "dynamic"
163 __RUNTIME_LIBS_25 = D
165 !if "$(RUNTIME_LIBS)" == "static"
166 __RUNTIME_LIBS_25 = $(__THREADSFLAG)
168 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
169 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
171 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
172 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
174 !if "$(WXUNIV)" == "1"
175 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
177 !if "$(DEBUG_FLAG)" == "0"
178 __DEBUG_DEFINE_p_3 = /d wxDEBUG_LEVEL=0
180 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
181 __NDEBUG_DEFINE_p_3 = /d NDEBUG
183 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
184 __NDEBUG_DEFINE_p_3 = /d NDEBUG
186 !if "$(USE_EXCEPTIONS)" == "0"
187 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
189 !if "$(USE_RTTI)" == "0"
190 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
192 !if "$(USE_THREADS)" == "0"
193 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
195 !if "$(UNICODE)" == "0"
196 __UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=0
198 !if "$(UNICODE)" == "1"
199 __UNICODE_DEFINE_p_3 = /d _UNICODE
202 __MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
204 !if "$(USE_CAIRO)" == "1"
205 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = /i $(CAIRO_ROOT)\include\cairo
207 !if "$(SHARED)" == "1"
208 __DLLFLAG_p_3 = /d WXUSINGDLL
210 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
211 __DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
213 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
216 !if "$(DEBUG_INFO)" == "0"
219 !if "$(DEBUG_INFO)" == "1"
220 __DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
222 !if "$(RUNTIME_LIBS)" == "dynamic"
223 __RUNTIME_LIBS_41 = D
225 !if "$(RUNTIME_LIBS)" == "static"
226 __RUNTIME_LIBS_41 = $(__THREADSFLAG)
228 !if "$(WXUNIV)" == "1"
229 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
231 !if "$(DEBUG_FLAG)" == "0"
232 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
234 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
235 __NDEBUG_DEFINE_p = /DNDEBUG
237 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
238 __NDEBUG_DEFINE_p = /DNDEBUG
240 !if "$(USE_EXCEPTIONS)" == "0"
241 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
243 !if "$(USE_RTTI)" == "0"
244 __RTTI_DEFINE_p = /DwxNO_RTTI
246 !if "$(USE_THREADS)" == "0"
247 __THREAD_DEFINE_p = /DwxNO_THREADS
249 !if "$(UNICODE)" == "0"
250 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
252 !if "$(UNICODE)" == "1"
253 __UNICODE_DEFINE_p = /D_UNICODE
256 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
258 !if "$(USE_CAIRO)" == "1"
259 ____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo
261 !if "$(SHARED)" == "1"
262 __DLLFLAG_p = /DWXUSINGDLL
264 !if "$(MONOLITHIC)" == "0"
266 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
268 !if "$(MONOLITHIC)" == "0"
270 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
272 !if "$(MONOLITHIC)" == "1"
274 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
276 !if "$(USE_GUI)" == "1"
277 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
279 !if "$(USE_GUI)" == "1"
280 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
282 !if "$(USE_GUI)" == "1"
283 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
286 __UNICOWS_LIB_p = unicows.lib
288 !if "$(USE_CAIRO)" == "1"
289 __CAIRO_LIB_p = cairo.lib
291 !if "$(USE_CAIRO)" == "1"
292 ____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib
294 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
297 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
300 !if "$(DEBUG_INFO)" == "0"
303 !if "$(DEBUG_INFO)" == "1"
306 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
309 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
312 !if "$(DEBUG_INFO)" == "0"
315 !if "$(DEBUG_INFO)" == "1"
318 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
319 ____DEBUGRUNTIME = /D_DEBUG
321 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
324 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
327 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
328 ____DEBUGRUNTIME = /D_DEBUG
330 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
333 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
336 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
339 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
342 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
345 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
346 __DEBUGRUNTIME_1 = /opt:ref /opt:icf
348 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
349 __DEBUGRUNTIME_1 = /opt:ref /opt:icf
351 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
354 !if "$(BUILD)" == "debug"
357 !if "$(BUILD)" == "release"
360 !if "$(USE_THREADS)" == "0"
363 !if "$(USE_THREADS)" == "1"
366 !if "$(USE_RTTI)" == "0"
369 !if "$(USE_RTTI)" == "1"
372 !if "$(USE_EXCEPTIONS)" == "0"
375 !if "$(USE_EXCEPTIONS)" == "1"
376 __EXCEPTIONSFLAG = /EHsc
378 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
379 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
381 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
382 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
388 -if not exist $(OBJS) mkdir $(OBJS)
392 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
395 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
396 -if exist $(OBJS)\*.res del $(OBJS)\*.res
397 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
398 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
399 -if exist $(OBJS)\my_dll.ilk del $(OBJS)\my_dll.ilk
400 -if exist $(OBJS)\my_dll.pdb del $(OBJS)\my_dll.pdb
401 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib
402 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
403 -if exist $(OBJS)\wx_exe.ilk del $(OBJS)\wx_exe.ilk
404 -if exist $(OBJS)\wx_exe.pdb del $(OBJS)\wx_exe.pdb
405 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
406 -if exist $(OBJS)\sdk_exe.ilk del $(OBJS)\sdk_exe.ilk
407 -if exist $(OBJS)\sdk_exe.pdb del $(OBJS)\sdk_exe.pdb
409 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
410 link /DLL /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\my_dll.pdb" $(__DEBUGINFO_3) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
411 $(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
414 !if "$(SHARED)" == "0"
415 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll
416 link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\wx_exe.pdb" $(__DEBUGINFO_17) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
417 $(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
421 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
422 link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\sdk_exe.pdb" $(__DEBUGINFO_33) $(LINK_TARGET_CPU) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
423 $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.lib user32.lib
426 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
427 $(CXX) /c /nologo /TP /Fo$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp
429 $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc
430 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
432 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp
433 $(CXX) /c /nologo /TP /Fo$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp
435 $(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
436 $(CXX) /c /nologo /TP /Fo$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp