]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.wat
No real changes, just simplify wxBookCtrlBase unit test a little.
[wxWidgets.git] / samples / console / makefile.wat
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.wat\r
8\r
9# -------------------------------------------------------------------------\r
10# Do not modify the rest of this file!\r
11# -------------------------------------------------------------------------\r
12\r
13# Speed up compilation a bit:\r
14!ifdef __LOADDLL__\r
15! loaddll wcc wccd\r
16! loaddll wccaxp wccdaxp\r
17! loaddll wcc386 wccd386\r
18! loaddll wpp wppdi86\r
19! loaddll wppaxp wppdaxp\r
20! loaddll wpp386 wppd386\r
21! if $(__VERSION__) >= 1280\r
22! loaddll wlink wlinkd\r
23! else\r
24! loaddll wlink wlink\r
25! endif\r
26! loaddll wlib wlibd\r
27!endif\r
28\r
29# We need these variables in some bakefile-made rules:\r
30WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-\r
31\r
32### Conditionally set variables: ###\r
33\r
22a3b6e4
VZ
34WIN32_TOOLKIT_LOWERCASE =
35!ifeq TOOLKIT GTK
36WIN32_TOOLKIT_LOWERCASE = gtk
37!endif
38!ifeq TOOLKIT MSW
39WIN32_TOOLKIT_LOWERCASE = msw
40!endif
f82b7036
KO
41PORTNAME =\r
42!ifeq USE_GUI 0\r
43PORTNAME = base\r
44!endif\r
45!ifeq USE_GUI 1\r
22a3b6e4
VZ
46PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
47!endif
48WXBASEPORT =
49!ifeq TOOLKIT MAC
50WXBASEPORT = _carbon
51!endif
14b682f7
VZ
52COMPILER_VERSION =
53!ifeq OFFICIAL_BUILD 1
54COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
22a3b6e4 55!endif\r
f82b7036
KO
56WXDEBUGFLAG =\r
57!ifeq BUILD debug\r
58WXDEBUGFLAG = d\r
59!endif\r
60WXUNICODEFLAG =\r
61!ifeq UNICODE 1\r
62WXUNICODEFLAG = u\r
63!endif\r
64WXUNIVNAME =\r
65!ifeq WXUNIV 1\r
66WXUNIVNAME = univ\r
67!endif\r
68WXDLLFLAG =\r
69!ifeq SHARED 1\r
70WXDLLFLAG = dll\r
71!endif\r
72LIBTYPE_SUFFIX =\r
73!ifeq SHARED 0\r
74LIBTYPE_SUFFIX = lib\r
75!endif\r
76!ifeq SHARED 1\r
77LIBTYPE_SUFFIX = dll\r
78!endif\r
79EXTRALIBS_FOR_BASE =\r
80!ifeq MONOLITHIC 0\r
81EXTRALIBS_FOR_BASE = \r
82!endif\r
83!ifeq MONOLITHIC 1\r
51ec29ea 84EXTRALIBS_FOR_BASE = \r
f82b7036
KO
85!endif\r
86__DEBUGINFO_0 =\r
87!ifeq BUILD debug\r
88!ifeq DEBUG_INFO default\r
89__DEBUGINFO_0 = -d2\r
90!endif\r
91!endif\r
92!ifeq BUILD release\r
93!ifeq DEBUG_INFO default\r
94__DEBUGINFO_0 = -d0\r
95!endif\r
96!endif\r
97!ifeq DEBUG_INFO 0\r
98__DEBUGINFO_0 = -d0\r
99!endif\r
100!ifeq DEBUG_INFO 1\r
101__DEBUGINFO_0 = -d2\r
102!endif\r
103__DEBUGINFO_1 =\r
104!ifeq BUILD debug\r
105!ifeq DEBUG_INFO default\r
106__DEBUGINFO_1 = debug all\r
107!endif\r
108!endif\r
109!ifeq BUILD release\r
110!ifeq DEBUG_INFO default\r
111__DEBUGINFO_1 = \r
112!endif\r
113!endif\r
114!ifeq DEBUG_INFO 0\r
115__DEBUGINFO_1 = \r
116!endif\r
117!ifeq DEBUG_INFO 1\r
118__DEBUGINFO_1 = debug all\r
119!endif\r
120__OPTIMIZEFLAG_2 =\r
121!ifeq BUILD debug\r
122__OPTIMIZEFLAG_2 = -od\r
123!endif\r
124!ifeq BUILD release\r
125__OPTIMIZEFLAG_2 = -ot -ox\r
126!endif\r
127__THREADSFLAG_5 =\r
128!ifeq USE_THREADS 0\r
129__THREADSFLAG_5 = \r
130!endif\r
131!ifeq USE_THREADS 1\r
132__THREADSFLAG_5 = -bm\r
133!endif\r
134__RUNTIME_LIBS_6 =\r
135!ifeq RUNTIME_LIBS dynamic\r
136__RUNTIME_LIBS_6 = -br\r
137!endif\r
138!ifeq RUNTIME_LIBS static\r
139__RUNTIME_LIBS_6 = \r
140!endif\r
141__RTTIFLAG_7 =\r
142!ifeq USE_RTTI 0\r
143__RTTIFLAG_7 = \r
144!endif\r
145!ifeq USE_RTTI 1\r
146__RTTIFLAG_7 = -xr\r
147!endif\r
148__EXCEPTIONSFLAG_8 =\r
149!ifeq USE_EXCEPTIONS 0\r
150__EXCEPTIONSFLAG_8 = \r
151!endif\r
152!ifeq USE_EXCEPTIONS 1\r
153__EXCEPTIONSFLAG_8 = -xs\r
154!endif\r
155__WXUNIV_DEFINE_p =\r
156!ifeq WXUNIV 1\r
157__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r
158!endif\r
159__DEBUG_DEFINE_p =\r
160!ifeq DEBUG_FLAG 0\r
161__DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0\r
162!endif\r
00fb97de
KO
163__NDEBUG_DEFINE_p =\r
164!ifeq BUILD release\r
165__NDEBUG_DEFINE_p = -dNDEBUG\r
166!endif\r
f82b7036
KO
167__EXCEPTIONS_DEFINE_p =\r
168!ifeq USE_EXCEPTIONS 0\r
169__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS\r
170!endif\r
171__RTTI_DEFINE_p =\r
172!ifeq USE_RTTI 0\r
173__RTTI_DEFINE_p = -dwxNO_RTTI\r
174!endif\r
175__THREAD_DEFINE_p =\r
176!ifeq USE_THREADS 0\r
177__THREAD_DEFINE_p = -dwxNO_THREADS\r
178!endif\r
179__UNICODE_DEFINE_p =\r
180!ifeq UNICODE 0\r
181__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0\r
182!endif\r
183!ifeq UNICODE 1\r
184__UNICODE_DEFINE_p = -d_UNICODE\r
185!endif\r
f82b7036
KO
186____CAIRO_INCLUDEDIR_FILENAMES_p =\r
187!ifeq USE_CAIRO 1\r
188____CAIRO_INCLUDEDIR_FILENAMES_p = -i=$(CAIRO_ROOT)\include\cairo\r
189!endif\r
190__DLLFLAG_p =\r
191!ifeq SHARED 1\r
192__DLLFLAG_p = -dWXUSINGDLL\r
193!endif\r
194__WXLIB_NET_p =\r
195!ifeq MONOLITHIC 0\r
196__WXLIB_NET_p = &\r
22a3b6e4 197 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
f82b7036
KO
198!endif\r
199__WXLIB_BASE_p =\r
200!ifeq MONOLITHIC 0\r
201__WXLIB_BASE_p = &\r
22a3b6e4 202 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
f82b7036
KO
203!endif\r
204__WXLIB_MONO_p =\r
205!ifeq MONOLITHIC 1\r
206__WXLIB_MONO_p = &\r
207 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
208!endif\r
57c74474
VZ
209__LIB_PNG_IF_MONO_p =\r
210!ifeq MONOLITHIC 1\r
211__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r
212!endif\r
213__LIB_PNG_p =\r
214!ifeq USE_GUI 1\r
215__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
216!endif\r
f82b7036
KO
217__CAIRO_LIB_p =\r
218!ifeq USE_CAIRO 1\r
219__CAIRO_LIB_p = cairo.lib\r
220!endif\r
221____CAIRO_LIBDIR_FILENAMES_p =\r
222!ifeq USE_CAIRO 1\r
223____CAIRO_LIBDIR_FILENAMES_p = libpath $(CAIRO_ROOT)\lib\r
224!endif\r
225\r
226### Variables: ###\r
227\r
228WX_RELEASE_NODOT = 29\r
229COMPILER_PREFIX = wat\r
230OBJS = &\r
14b682f7
VZ
231 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
232LIBDIRNAME = &
233 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
f82b7036
KO
234SETUPHDIR = &\r
235 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
236CONSOLE_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &\r
22a3b6e4
VZ
237 $(__RUNTIME_LIBS_6) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) &
238 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) &
239 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) &
240 -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -wx &
241 -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 &
242 $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) $(CXXFLAGS)
f82b7036
KO
243CONSOLE_OBJECTS = &\r
244 $(OBJS)\console_console.obj\r
245\r
246\r
247all : $(OBJS)\r
248$(OBJS) :\r
249 -if not exist $(OBJS) mkdir $(OBJS)\r
250\r
251### Targets: ###\r
252\r
a05e050b 253all : .SYMBOLIC $(OBJS)\console.exe\r
f82b7036
KO
254\r
255clean : .SYMBOLIC \r
256 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
257 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
258 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r
259 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r
260 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
261 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe\r
262\r
263$(OBJS)\console.exe : $(CONSOLE_OBJECTS)\r
264 @%create $(OBJS)\console.lbc\r
265 @%append $(OBJS)\console.lbc option quiet\r
266 @%append $(OBJS)\console.lbc name $^@\r
267 @%append $(OBJS)\console.lbc option caseexact\r
268 @%append $(OBJS)\console.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS)\r
269 @for %i in ($(CONSOLE_OBJECTS)) do @%append $(OBJS)\console.lbc file %i\r
57c74474 270 @for %i in ( $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__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) do @%append $(OBJS)\console.lbc library %i\r
f82b7036
KO
271 @%append $(OBJS)\console.lbc\r
272 @for %i in () do @%append $(OBJS)\console.lbc option stack=%i\r
273 wlink @$(OBJS)\console.lbc\r
274\r
f82b7036
KO
275$(OBJS)\console_console.obj : .AUTODEPEND .\console.cpp\r
276 $(CXX) -bt=nt -zq -fo=$^@ $(CONSOLE_CXXFLAGS) $<\r
277\r