]> git.saurik.com Git - wxWidgets.git/blob - samples/stc/makefile.vc
Fix setting colours for the edit control part of wxComboBox.
[wxWidgets.git] / samples / stc / makefile.vc
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 # =========================================================================
6
7 !include <../../build/msw/config.vc>
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 29
16 COMPILER_PREFIX = vc
17 OBJS = \
18 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(ARCH_SUFFIX)
19 LIBDIRNAME = \
20 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)$(ARCH_SUFFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21 SETUPHDIR = \
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__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_p) /W4 /I. \
31 $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG_11) \
32 $(__EXCEPTIONSFLAG_12) $(CPPFLAGS) $(CXXFLAGS)
33 STCTEST_OBJECTS = \
34 $(OBJS)\stctest_stctest.obj \
35 $(OBJS)\stctest_edit.obj \
36 $(OBJS)\stctest_prefs.obj
37 STCTEST_RESOURCES = \
38 $(OBJS)\stctest_sample.res
39
40 ### Conditionally set variables: ###
41
42 !if "$(TARGET_CPU)" == "AMD64"
43 ARCH_SUFFIX = _x64
44 !endif
45 !if "$(TARGET_CPU)" == "IA64"
46 ARCH_SUFFIX = _ia64
47 !endif
48 !if "$(TARGET_CPU)" == "X64"
49 ARCH_SUFFIX = _x64
50 !endif
51 !if "$(TARGET_CPU)" == "amd64"
52 ARCH_SUFFIX = _x64
53 !endif
54 !if "$(TARGET_CPU)" == "ia64"
55 ARCH_SUFFIX = _ia64
56 !endif
57 !if "$(TARGET_CPU)" == "x64"
58 ARCH_SUFFIX = _x64
59 !endif
60 !if "$(USE_GUI)" == "0"
61 PORTNAME = base
62 !endif
63 !if "$(USE_GUI)" == "1"
64 PORTNAME = msw
65 !endif
66 !if "$(OFFICIAL_BUILD)" == "1"
67 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
68 !endif
69 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
70 WXDEBUGFLAG = d
71 !endif
72 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
73 WXDEBUGFLAG = d
74 !endif
75 !if "$(UNICODE)" == "1"
76 WXUNICODEFLAG = u
77 !endif
78 !if "$(WXUNIV)" == "1"
79 WXUNIVNAME = univ
80 !endif
81 !if "$(SHARED)" == "1"
82 WXDLLFLAG = dll
83 !endif
84 !if "$(SHARED)" == "0"
85 LIBTYPE_SUFFIX = lib
86 !endif
87 !if "$(SHARED)" == "1"
88 LIBTYPE_SUFFIX = dll
89 !endif
90 !if "$(TARGET_CPU)" == "AMD64"
91 LINK_TARGET_CPU = /MACHINE:X64
92 !endif
93 !if "$(TARGET_CPU)" == "IA64"
94 LINK_TARGET_CPU = /MACHINE:IA64
95 !endif
96 !if "$(TARGET_CPU)" == "X64"
97 LINK_TARGET_CPU = /MACHINE:X64
98 !endif
99 !if "$(TARGET_CPU)" == "amd64"
100 LINK_TARGET_CPU = /MACHINE:X64
101 !endif
102 !if "$(TARGET_CPU)" == "ia64"
103 LINK_TARGET_CPU = /MACHINE:IA64
104 !endif
105 !if "$(TARGET_CPU)" == "x64"
106 LINK_TARGET_CPU = /MACHINE:X64
107 !endif
108 !if "$(MONOLITHIC)" == "0"
109 EXTRALIBS_FOR_BASE =
110 !endif
111 !if "$(MONOLITHIC)" == "1"
112 EXTRALIBS_FOR_BASE =
113 !endif
114 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
115 __DEBUGINFO_0 = /Zi
116 !endif
117 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
118 __DEBUGINFO_0 =
119 !endif
120 !if "$(DEBUG_INFO)" == "0"
121 __DEBUGINFO_0 =
122 !endif
123 !if "$(DEBUG_INFO)" == "1"
124 __DEBUGINFO_0 = /Zi
125 !endif
126 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
127 __DEBUGINFO_1 = /DEBUG
128 !endif
129 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
130 __DEBUGINFO_1 =
131 !endif
132 !if "$(DEBUG_INFO)" == "0"
133 __DEBUGINFO_1 =
134 !endif
135 !if "$(DEBUG_INFO)" == "1"
136 __DEBUGINFO_1 = /DEBUG
137 !endif
138 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
139 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
140 !endif
141 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
142 __DEBUGINFO_2 =
143 !endif
144 !if "$(DEBUG_INFO)" == "0"
145 __DEBUGINFO_2 =
146 !endif
147 !if "$(DEBUG_INFO)" == "1"
148 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
149 !endif
150 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
151 ____DEBUGRUNTIME_3_p = /D_DEBUG
152 !endif
153 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
154 ____DEBUGRUNTIME_3_p =
155 !endif
156 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
157 ____DEBUGRUNTIME_3_p =
158 !endif
159 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
160 ____DEBUGRUNTIME_3_p = /D_DEBUG
161 !endif
162 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
163 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
164 !endif
165 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
166 ____DEBUGRUNTIME_3_p_1 =
167 !endif
168 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
169 ____DEBUGRUNTIME_3_p_1 =
170 !endif
171 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
172 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
173 !endif
174 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
175 __DEBUGRUNTIME_4 = d
176 !endif
177 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
178 __DEBUGRUNTIME_4 =
179 !endif
180 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
181 __DEBUGRUNTIME_4 =
182 !endif
183 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
184 __DEBUGRUNTIME_4 = d
185 !endif
186 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
187 __DEBUGRUNTIME_5 =
188 !endif
189 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
190 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
191 !endif
192 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
193 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
194 !endif
195 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
196 __DEBUGRUNTIME_5 =
197 !endif
198 !if "$(BUILD)" == "debug"
199 __OPTIMIZEFLAG_6 = /Od
200 !endif
201 !if "$(BUILD)" == "release"
202 __OPTIMIZEFLAG_6 = /O2
203 !endif
204 !if "$(USE_THREADS)" == "0"
205 __THREADSFLAG_9 = L
206 !endif
207 !if "$(USE_THREADS)" == "1"
208 __THREADSFLAG_9 = T
209 !endif
210 !if "$(RUNTIME_LIBS)" == "dynamic"
211 __RUNTIME_LIBS_10 = D
212 !endif
213 !if "$(RUNTIME_LIBS)" == "static"
214 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
215 !endif
216 !if "$(USE_RTTI)" == "0"
217 __RTTIFLAG_11 =
218 !endif
219 !if "$(USE_RTTI)" == "1"
220 __RTTIFLAG_11 = /GR
221 !endif
222 !if "$(USE_EXCEPTIONS)" == "0"
223 __EXCEPTIONSFLAG_12 =
224 !endif
225 !if "$(USE_EXCEPTIONS)" == "1"
226 __EXCEPTIONSFLAG_12 = /EHsc
227 !endif
228 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
229 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
230 !endif
231 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
232 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
233 !endif
234 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
235 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
236 !endif
237 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
238 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
239 !endif
240 !if "$(WXUNIV)" == "1"
241 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
242 !endif
243 !if "$(WXUNIV)" == "1"
244 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
245 !endif
246 !if "$(DEBUG_FLAG)" == "0"
247 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
248 !endif
249 !if "$(DEBUG_FLAG)" == "0"
250 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
251 !endif
252 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
253 __NDEBUG_DEFINE_p = /DNDEBUG
254 !endif
255 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
256 __NDEBUG_DEFINE_p = /DNDEBUG
257 !endif
258 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
259 __NDEBUG_DEFINE_p_1 = /d NDEBUG
260 !endif
261 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
262 __NDEBUG_DEFINE_p_1 = /d NDEBUG
263 !endif
264 !if "$(USE_EXCEPTIONS)" == "0"
265 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
266 !endif
267 !if "$(USE_EXCEPTIONS)" == "0"
268 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
269 !endif
270 !if "$(USE_RTTI)" == "0"
271 __RTTI_DEFINE_p = /DwxNO_RTTI
272 !endif
273 !if "$(USE_RTTI)" == "0"
274 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
275 !endif
276 !if "$(USE_THREADS)" == "0"
277 __THREAD_DEFINE_p = /DwxNO_THREADS
278 !endif
279 !if "$(USE_THREADS)" == "0"
280 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
281 !endif
282 !if "$(UNICODE)" == "0"
283 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
284 !endif
285 !if "$(UNICODE)" == "1"
286 __UNICODE_DEFINE_p = /D_UNICODE
287 !endif
288 !if "$(UNICODE)" == "0"
289 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
290 !endif
291 !if "$(UNICODE)" == "1"
292 __UNICODE_DEFINE_p_1 = /d _UNICODE
293 !endif
294 !if "$(MSLU)" == "1"
295 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
296 !endif
297 !if "$(MSLU)" == "1"
298 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
299 !endif
300 !if "$(USE_CAIRO)" == "1"
301 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
302 !endif
303 !if "$(USE_CAIRO)" == "1"
304 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = /i $(CAIRO_ROOT)\include\cairo
305 !endif
306 !if "$(SHARED)" == "1"
307 __DLLFLAG_p = /DWXUSINGDLL
308 !endif
309 !if "$(SHARED)" == "1"
310 __DLLFLAG_p_1 = /d WXUSINGDLL
311 !endif
312 !if "$(MONOLITHIC)" == "0"
313 __WXLIB_STC_p = \
314 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc.lib
315 !endif
316 !if "$(MONOLITHIC)" == "0"
317 __WXLIB_CORE_p = \
318 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
319 !endif
320 !if "$(MONOLITHIC)" == "0"
321 __WXLIB_BASE_p = \
322 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
323 !endif
324 !if "$(MONOLITHIC)" == "1"
325 __WXLIB_MONO_p = \
326 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
327 !endif
328 !if "$(USE_GUI)" == "1"
329 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
330 !endif
331 !if "$(USE_GUI)" == "1"
332 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
333 !endif
334 !if "$(USE_GUI)" == "1"
335 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
336 !endif
337 !if "$(MSLU)" == "1"
338 __UNICOWS_LIB_p = unicows.lib
339 !endif
340 !if "$(USE_CAIRO)" == "1"
341 __CAIRO_LIB_p = cairo.lib
342 !endif
343 !if "$(USE_CAIRO)" == "1"
344 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
345 !endif
346
347
348 all: $(OBJS)
349 $(OBJS):
350 -if not exist $(OBJS) mkdir $(OBJS)
351
352 ### Targets: ###
353
354 all: $(OBJS)\stctest.exe data
355
356 clean:
357 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
358 -if exist $(OBJS)\*.res del $(OBJS)\*.res
359 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
360 -if exist $(OBJS)\stctest.exe del $(OBJS)\stctest.exe
361 -if exist $(OBJS)\stctest.ilk del $(OBJS)\stctest.ilk
362 -if exist $(OBJS)\stctest.pdb del $(OBJS)\stctest.pdb
363
364 $(OBJS)\stctest.exe: $(STCTEST_OBJECTS) $(OBJS)\stctest_sample.res
365 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\stctest.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
366 $(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) 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
367 <<
368
369 data:
370 if not exist $(OBJS) mkdir $(OBJS)
371 for %f in (stctest.cpp) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
372
373 $(OBJS)\stctest_sample.res: .\..\..\samples\sample.rc
374 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 __WXMSW__ $(__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
375
376 $(OBJS)\stctest_stctest.obj: .\stctest.cpp
377 $(CXX) /c /nologo /TP /Fo$@ $(STCTEST_CXXFLAGS) .\stctest.cpp
378
379 $(OBJS)\stctest_edit.obj: .\edit.cpp
380 $(CXX) /c /nologo /TP /Fo$@ $(STCTEST_CXXFLAGS) .\edit.cpp
381
382 $(OBJS)\stctest_prefs.obj: .\prefs.cpp
383 $(CXX) /c /nologo /TP /Fo$@ $(STCTEST_CXXFLAGS) .\prefs.cpp
384