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