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 STCTEST_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
24 $(__DEBUGINFO_0) /Fd$(OBJS)\stctest.pdb $(____DEBUGRUNTIME_3_p) \
25 $(__OPTIMIZEFLAG_6) /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_p) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
32 /I.\..\..\samples /DNOPCH $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) \
33 $(CPPFLAGS) $(CXXFLAGS)
35 $(OBJS)\stctest_stctest.obj \
36 $(OBJS)\stctest_edit.obj \
37 $(OBJS)\stctest_prefs.obj
39 $(OBJS)\stctest_sample.res
41 ### Conditionally set variables: ###
43 !if "$(TOOLKIT)" == "GTK"
44 WIN32_TOOLKIT_LOWERCASE = gtk
46 !if "$(TOOLKIT)" == "MSW"
47 WIN32_TOOLKIT_LOWERCASE = msw
49 !if "$(TARGET_CPU)" == "AMD64"
52 !if "$(TARGET_CPU)" == "IA64"
55 !if "$(TARGET_CPU)" == "X64"
58 !if "$(TARGET_CPU)" == "amd64"
61 !if "$(TARGET_CPU)" == "ia64"
64 !if "$(TARGET_CPU)" == "x64"
67 !if "$(USE_GUI)" == "0"
70 !if "$(USE_GUI)" == "1"
71 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
73 !if "$(TOOLKIT)" == "MAC"
76 !if "$(OFFICIAL_BUILD)" == "1"
77 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
79 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
82 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
85 !if "$(UNICODE)" == "1"
88 !if "$(WXUNIV)" == "1"
91 !if "$(SHARED)" == "1"
94 !if "$(SHARED)" == "0"
97 !if "$(SHARED)" == "1"
100 !if "$(TARGET_CPU)" == "AMD64"
101 LINK_TARGET_CPU = /MACHINE:X64
103 !if "$(TARGET_CPU)" == "IA64"
104 LINK_TARGET_CPU = /MACHINE:IA64
106 !if "$(TARGET_CPU)" == "X64"
107 LINK_TARGET_CPU = /MACHINE:X64
109 !if "$(TARGET_CPU)" == "amd64"
110 LINK_TARGET_CPU = /MACHINE:X64
112 !if "$(TARGET_CPU)" == "ia64"
113 LINK_TARGET_CPU = /MACHINE:IA64
115 !if "$(TARGET_CPU)" == "x64"
116 LINK_TARGET_CPU = /MACHINE:X64
118 !if "$(MONOLITHIC)" == "0"
121 !if "$(MONOLITHIC)" == "1"
124 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
125 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
126 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
129 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
132 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
135 !if "$(DEBUG_INFO)" == "0"
138 !if "$(DEBUG_INFO)" == "1"
141 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
142 __DEBUGINFO_1 = /DEBUG
144 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
147 !if "$(DEBUG_INFO)" == "0"
150 !if "$(DEBUG_INFO)" == "1"
151 __DEBUGINFO_1 = /DEBUG
153 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
154 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
156 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
159 !if "$(DEBUG_INFO)" == "0"
162 !if "$(DEBUG_INFO)" == "1"
163 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
165 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
166 ____DEBUGRUNTIME_3_p = /D_DEBUG
168 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
169 ____DEBUGRUNTIME_3_p =
171 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
172 ____DEBUGRUNTIME_3_p =
174 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
175 ____DEBUGRUNTIME_3_p = /D_DEBUG
177 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
178 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
180 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
181 ____DEBUGRUNTIME_3_p_1 =
183 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
184 ____DEBUGRUNTIME_3_p_1 =
186 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
187 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
189 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
192 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
195 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
198 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
201 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
204 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
205 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
207 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
208 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
210 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
213 !if "$(BUILD)" == "debug"
214 __OPTIMIZEFLAG_6 = /Od
216 !if "$(BUILD)" == "release"
217 __OPTIMIZEFLAG_6 = /O2
219 !if "$(USE_THREADS)" == "0"
222 !if "$(USE_THREADS)" == "1"
225 !if "$(RUNTIME_LIBS)" == "dynamic"
226 __RUNTIME_LIBS_10 = D
228 !if "$(RUNTIME_LIBS)" == "static"
229 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
231 !if "$(USE_RTTI)" == "0"
234 !if "$(USE_RTTI)" == "1"
237 !if "$(USE_EXCEPTIONS)" == "0"
238 __EXCEPTIONSFLAG_12 =
240 !if "$(USE_EXCEPTIONS)" == "1"
241 __EXCEPTIONSFLAG_12 = /EHsc
243 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
244 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
246 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
247 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
249 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
250 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
252 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
253 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
255 !if "$(WXUNIV)" == "1"
256 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
258 !if "$(WXUNIV)" == "1"
259 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
261 !if "$(DEBUG_FLAG)" == "0"
262 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
264 !if "$(DEBUG_FLAG)" == "0"
265 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
267 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
268 __NDEBUG_DEFINE_p = /DNDEBUG
270 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
271 __NDEBUG_DEFINE_p = /DNDEBUG
273 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
274 __NDEBUG_DEFINE_p_1 = /d NDEBUG
276 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
277 __NDEBUG_DEFINE_p_1 = /d NDEBUG
279 !if "$(USE_EXCEPTIONS)" == "0"
280 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
282 !if "$(USE_EXCEPTIONS)" == "0"
283 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
285 !if "$(USE_RTTI)" == "0"
286 __RTTI_DEFINE_p = /DwxNO_RTTI
288 !if "$(USE_RTTI)" == "0"
289 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
291 !if "$(USE_THREADS)" == "0"
292 __THREAD_DEFINE_p = /DwxNO_THREADS
294 !if "$(USE_THREADS)" == "0"
295 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
297 !if "$(UNICODE)" == "0"
298 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
300 !if "$(UNICODE)" == "1"
301 __UNICODE_DEFINE_p = /D_UNICODE
303 !if "$(UNICODE)" == "0"
304 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
306 !if "$(UNICODE)" == "1"
307 __UNICODE_DEFINE_p_1 = /d _UNICODE
310 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
313 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
315 !if "$(USE_CAIRO)" == "1"
316 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
318 !if "$(USE_CAIRO)" == "1"
319 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = /i $(CAIRO_ROOT)\include\cairo
321 !if "$(SHARED)" == "1"
322 __DLLFLAG_p = /DWXUSINGDLL
324 !if "$(SHARED)" == "1"
325 __DLLFLAG_p_1 = /d WXUSINGDLL
327 !if "$(MONOLITHIC)" == "0"
329 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc.lib
331 !if "$(MONOLITHIC)" == "0"
333 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
335 !if "$(MONOLITHIC)" == "0"
337 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
339 !if "$(MONOLITHIC)" == "1"
341 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
343 !if "$(USE_GUI)" == "1"
344 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
346 !if "$(USE_GUI)" == "1"
347 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
349 !if "$(USE_GUI)" == "1"
350 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
353 __UNICOWS_LIB_p = unicows.lib
355 !if "$(USE_CAIRO)" == "1"
356 __CAIRO_LIB_p = cairo.lib
358 !if "$(USE_CAIRO)" == "1"
359 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
365 -if not exist $(OBJS) mkdir $(OBJS)
369 all: $(OBJS)\stctest.exe data
372 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
373 -if exist $(OBJS)\*.res del $(OBJS)\*.res
374 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
375 -if exist $(OBJS)\stctest.exe del $(OBJS)\stctest.exe
376 -if exist $(OBJS)\stctest.ilk del $(OBJS)\stctest.ilk
377 -if exist $(OBJS)\stctest.pdb del $(OBJS)\stctest.pdb
379 $(OBJS)\stctest.exe: $(STCTEST_OBJECTS) $(OBJS)\stctest_sample.res
380 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\stctest.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
381 $(STCTEST_OBJECTS) $(STCTEST_RESOURCES) $(__WXLIB_STC_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) wxscintilla$(WXDEBUGFLAG).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
385 if not exist $(OBJS) mkdir $(OBJS)
386 for %f in (stctest.cpp) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
388 $(OBJS)\stctest_sample.res: .\..\..\samples\sample.rc
389 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_3_p_1) /d _CRT_SECURE_NO_DEPRECATE=1 /d _CRT_NON_CONFORMING_SWPRINTFS=1 /d _SCL_SECURE_NO_WARNINGS=1 $(__NO_VC_CRTDBG_p_1) /d __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_1_p) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples /d NOPCH .\..\..\samples\sample.rc
391 $(OBJS)\stctest_stctest.obj: .\stctest.cpp
392 $(CXX) /c /nologo /TP /Fo$@ $(STCTEST_CXXFLAGS) .\stctest.cpp
394 $(OBJS)\stctest_edit.obj: .\edit.cpp
395 $(CXX) /c /nologo /TP /Fo$@ $(STCTEST_CXXFLAGS) .\edit.cpp
397 $(OBJS)\stctest_prefs.obj: .\prefs.cpp
398 $(CXX) /c /nologo /TP /Fo$@ $(STCTEST_CXXFLAGS) .\prefs.cpp