]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.vc
update wxpresets for new osx_carbon and osx_cocoa names provided by the wx-config...
[wxWidgets.git] / samples / console / makefile.vc
CommitLineData
d5e7ffcf
KO
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.6 (http://www.bakefile.org)\r
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
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)\r
19LIBDIRNAME = \\r
20 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)\r
21SETUPHDIR = \\r
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
23CONSOLE_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \\r
24 $(__DEBUGINFO_0) /Fd$(OBJS)\console.pdb $(____DEBUGRUNTIME_2_p) \\r
25 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
26 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
28 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) \\r
29 /D_CONSOLE /DwxUSE_GUI=0 $(__RTTIFLAG_9) $(__EXCEPTIONSFLAG_10) $(CPPFLAGS) \\r
30 $(CXXFLAGS)\r
31CONSOLE_OBJECTS = \\r
32 $(OBJS)\console_console.obj\r
33\r
34### Conditionally set variables: ###\r
35\r
36!if "$(USE_GUI)" == "0"\r
37PORTNAME = base\r
38!endif\r
39!if "$(USE_GUI)" == "1"\r
40PORTNAME = msw\r
41!endif\r
42!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
43WXDEBUGFLAG = d\r
44!endif\r
45!if "$(DEBUG_RUNTIME_LIBS)" == "1"\r
46WXDEBUGFLAG = d\r
47!endif\r
48!if "$(UNICODE)" == "1"\r
49WXUNICODEFLAG = u\r
50!endif\r
51!if "$(WXUNIV)" == "1"\r
52WXUNIVNAME = univ\r
53!endif\r
54!if "$(TARGET_CPU)" == "AMD64"\r
55DIR_SUFFIX_CPU = _amd64\r
56!endif\r
57!if "$(TARGET_CPU)" == "IA64"\r
58DIR_SUFFIX_CPU = _ia64\r
59!endif\r
60!if "$(TARGET_CPU)" == "amd64"\r
61DIR_SUFFIX_CPU = _amd64\r
62!endif\r
63!if "$(TARGET_CPU)" == "ia64"\r
64DIR_SUFFIX_CPU = _ia64\r
65!endif\r
66!if "$(SHARED)" == "1"\r
67WXDLLFLAG = dll\r
68!endif\r
69!if "$(SHARED)" == "0"\r
70LIBTYPE_SUFFIX = lib\r
71!endif\r
72!if "$(SHARED)" == "1"\r
73LIBTYPE_SUFFIX = dll\r
74!endif\r
75!if "$(TARGET_CPU)" == "AMD64"\r
76LINK_TARGET_CPU = /MACHINE:AMD64\r
77!endif\r
78!if "$(TARGET_CPU)" == "IA64"\r
79LINK_TARGET_CPU = /MACHINE:IA64\r
80!endif\r
81!if "$(TARGET_CPU)" == "amd64"\r
82LINK_TARGET_CPU = /MACHINE:AMD64\r
83!endif\r
84!if "$(TARGET_CPU)" == "ia64"\r
85LINK_TARGET_CPU = /MACHINE:IA64\r
86!endif\r
87!if "$(MONOLITHIC)" == "0"\r
88EXTRALIBS_FOR_BASE = \r
89!endif\r
90!if "$(MONOLITHIC)" == "1"\r
91EXTRALIBS_FOR_BASE = \r
92!endif\r
93!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
94__DEBUGINFO_0 = /Zi\r
95!endif\r
96!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
97__DEBUGINFO_0 = \r
98!endif\r
99!if "$(DEBUG_INFO)" == "0"\r
100__DEBUGINFO_0 = \r
101!endif\r
102!if "$(DEBUG_INFO)" == "1"\r
103__DEBUGINFO_0 = /Zi\r
104!endif\r
105!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
106__DEBUGINFO_1 = /DEBUG\r
107!endif\r
108!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
109__DEBUGINFO_1 = \r
110!endif\r
111!if "$(DEBUG_INFO)" == "0"\r
112__DEBUGINFO_1 = \r
113!endif\r
114!if "$(DEBUG_INFO)" == "1"\r
115__DEBUGINFO_1 = /DEBUG\r
116!endif\r
117!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
118____DEBUGRUNTIME_2_p = /D_DEBUG\r
119!endif\r
120!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
121____DEBUGRUNTIME_2_p = \r
122!endif\r
123!if "$(DEBUG_RUNTIME_LIBS)" == "0"\r
124____DEBUGRUNTIME_2_p = \r
125!endif\r
126!if "$(DEBUG_RUNTIME_LIBS)" == "1"\r
127____DEBUGRUNTIME_2_p = /D_DEBUG\r
128!endif\r
129!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
130__DEBUGRUNTIME_3 = d\r
131!endif\r
132!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
133__DEBUGRUNTIME_3 = \r
134!endif\r
135!if "$(DEBUG_RUNTIME_LIBS)" == "0"\r
136__DEBUGRUNTIME_3 = \r
137!endif\r
138!if "$(DEBUG_RUNTIME_LIBS)" == "1"\r
139__DEBUGRUNTIME_3 = d\r
140!endif\r
141!if "$(BUILD)" == "debug"\r
142__OPTIMIZEFLAG_4 = /Od\r
143!endif\r
144!if "$(BUILD)" == "release"\r
145__OPTIMIZEFLAG_4 = /O2\r
146!endif\r
147!if "$(USE_THREADS)" == "0"\r
148__THREADSFLAG_7 = L\r
149!endif\r
150!if "$(USE_THREADS)" == "1"\r
151__THREADSFLAG_7 = T\r
152!endif\r
153!if "$(RUNTIME_LIBS)" == "dynamic"\r
154__RUNTIME_LIBS_8 = D\r
155!endif\r
156!if "$(RUNTIME_LIBS)" == "static"\r
157__RUNTIME_LIBS_8 = $(__THREADSFLAG_7)\r
158!endif\r
159!if "$(USE_RTTI)" == "0"\r
160__RTTIFLAG_9 = \r
161!endif\r
162!if "$(USE_RTTI)" == "1"\r
163__RTTIFLAG_9 = /GR\r
164!endif\r
165!if "$(USE_EXCEPTIONS)" == "0"\r
166__EXCEPTIONSFLAG_10 = \r
167!endif\r
168!if "$(USE_EXCEPTIONS)" == "1"\r
169__EXCEPTIONSFLAG_10 = /EHsc\r
170!endif\r
171!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"\r
172__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__\r
173!endif\r
174!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"\r
175__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__\r
176!endif\r
177!if "$(WXUNIV)" == "1"\r
178__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__\r
179!endif\r
180!if "$(DEBUG_FLAG)" == "0"\r
181__DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0\r
182!endif\r
183!if "$(USE_EXCEPTIONS)" == "0"\r
184__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS\r
185!endif\r
186!if "$(USE_RTTI)" == "0"\r
187__RTTI_DEFINE_p = /DwxNO_RTTI\r
188!endif\r
189!if "$(USE_THREADS)" == "0"\r
190__THREAD_DEFINE_p = /DwxNO_THREADS\r
191!endif\r
192!if "$(UNICODE)" == "0"\r
193__UNICODE_DEFINE_p = /DwxUSE_UNICODE=0\r
194!endif\r
195!if "$(UNICODE)" == "1"\r
196__UNICODE_DEFINE_p = /D_UNICODE\r
197!endif\r
198!if "$(MSLU)" == "1"\r
199__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1\r
200!endif\r
201!if "$(USE_GDIPLUS)" == "1"\r
202__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1\r
203!endif\r
204!if "$(SHARED)" == "1"\r
205__DLLFLAG_p = /DWXUSINGDLL\r
206!endif\r
207!if "$(MONOLITHIC)" == "0"\r
208__WXLIB_NET_p = \\r
209 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib\r
210!endif\r
211!if "$(MONOLITHIC)" == "0"\r
212__WXLIB_BASE_p = \\r
213 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
214!endif\r
215!if "$(MONOLITHIC)" == "1"\r
216__WXLIB_MONO_p = \\r
217 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
218!endif\r
219!if "$(MSLU)" == "1"\r
220__UNICOWS_LIB_p = unicows.lib\r
221!endif\r
222!if "$(USE_GDIPLUS)" == "1"\r
223__GDIPLUS_LIB_p = gdiplus.lib\r
224!endif\r
225\r
226\r
227all: $(OBJS)\r
228$(OBJS):\r
229 -if not exist $(OBJS) mkdir $(OBJS)\r
230\r
231### Targets: ###\r
232\r
233all: $(OBJS)\console.exe data\r
234\r
235clean: \r
236 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
237 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
238 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
239 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe\r
240 -if exist $(OBJS)\console.ilk del $(OBJS)\console.ilk\r
241 -if exist $(OBJS)\console.pdb del $(OBJS)\console.pdb\r
242\r
243$(OBJS)\console.exe: $(CONSOLE_OBJECTS)\r
244 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\console.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(LDFLAGS) @<<\r
245 $(CONSOLE_OBJECTS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_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
246<<\r
247\r
248data: \r
249 if not exist $(OBJS) mkdir $(OBJS)\r
250 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)\r
251\r
252$(OBJS)\console_console.obj: .\console.cpp\r
253 $(CXX) /c /nologo /TP /Fo$@ $(CONSOLE_CXXFLAGS) .\console.cpp\r
254\r