]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.wat
Separate out constructors / destructors, add support for enums and include files...
[wxWidgets.git] / samples / console / makefile.wat
CommitLineData
3fe8bc14
VS
1# =========================================================================
2# This makefile was generated by
95ff11c4 3# Bakefile 0.2.6 (http://www.bakefile.org)
3fe8bc14
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7!include ../../build/msw/config.wat
3fe8bc14
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13# Speed up compilation a bit:
14!ifdef __LOADDLL__
15! loaddll wcc wccd
16! loaddll wccaxp wccdaxp
17! loaddll wcc386 wccd386
18! loaddll wpp wppdi86
19! loaddll wppaxp wppdaxp
20! loaddll wpp386 wppd386
95ff11c4
CE
21! if $(__VERSION__) >= 1280
22! loaddll wlink wlinkd
23! else
3fe8bc14 24! loaddll wlink wlink
95ff11c4 25! endif
3fe8bc14
VS
26! loaddll wlib wlibd
27!endif
28
29# We need these variables in some bakefile-made rules:
30WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
31
32### Conditionally set variables: ###
33
34PORTNAME =
35!ifeq USE_GUI 0
36PORTNAME = base
37!endif
38!ifeq USE_GUI 1
39PORTNAME = msw
40!endif
41WXDEBUGFLAG =
42!ifeq BUILD debug
25a73439
VS
43!ifeq DEBUG_FLAG default
44WXDEBUGFLAG = d
45!endif
46!endif
47!ifeq DEBUG_FLAG 1
3fe8bc14
VS
48WXDEBUGFLAG = d
49!endif
3fe8bc14
VS
50WXUNICODEFLAG =
51!ifeq UNICODE 1
52WXUNICODEFLAG = u
53!endif
54WXUNIVNAME =
55!ifeq WXUNIV 1
56WXUNIVNAME = univ
57!endif
b17c1746
DE
58WXDLLFLAG =
59!ifeq SHARED 1
60WXDLLFLAG = dll
61!endif
b14abf14
JS
62LIBTYPE_SUFFIX =
63!ifeq SHARED 0
64LIBTYPE_SUFFIX = lib
65!endif
66!ifeq SHARED 1
67LIBTYPE_SUFFIX = dll
68!endif
dd65d8c8
RN
69EXTRALIBS_FOR_BASE =
70!ifeq MONOLITHIC 0
71EXTRALIBS_FOR_BASE =
72!endif
73!ifeq MONOLITHIC 1
74EXTRALIBS_FOR_BASE =
75!endif
25a73439 76__DEBUGINFO_0 =
3fe8bc14 77!ifeq BUILD debug
25a73439
VS
78!ifeq DEBUG_INFO default
79__DEBUGINFO_0 = -d2
80!endif
3fe8bc14
VS
81!endif
82!ifeq BUILD release
25a73439
VS
83!ifeq DEBUG_INFO default
84__DEBUGINFO_0 = -d0
85!endif
3fe8bc14 86!endif
25a73439
VS
87!ifeq DEBUG_INFO 0
88__DEBUGINFO_0 = -d0
89!endif
90!ifeq DEBUG_INFO 1
91__DEBUGINFO_0 = -d2
92!endif
93__DEBUGINFO_1 =
3fe8bc14 94!ifeq BUILD debug
25a73439
VS
95!ifeq DEBUG_INFO default
96__DEBUGINFO_1 = debug all
97!endif
3fe8bc14
VS
98!endif
99!ifeq BUILD release
25a73439
VS
100!ifeq DEBUG_INFO default
101__DEBUGINFO_1 =
102!endif
103!endif
104!ifeq DEBUG_INFO 0
105__DEBUGINFO_1 =
106!endif
107!ifeq DEBUG_INFO 1
108__DEBUGINFO_1 = debug all
3fe8bc14 109!endif
b17c1746 110__OPTIMIZEFLAG_2 =
3fe8bc14 111!ifeq BUILD debug
b17c1746 112__OPTIMIZEFLAG_2 = -od
25a73439 113!endif
b17c1746
DE
114!ifeq BUILD release
115__OPTIMIZEFLAG_2 = -ot -ox
25a73439 116!endif
8c9f8f91
JS
117__THREADSFLAG_5 =
118!ifeq USE_THREADS 0
119__THREADSFLAG_5 =
120!endif
121!ifeq USE_THREADS 1
122__THREADSFLAG_5 = -bm
123!endif
124__RUNTIME_LIBS_6 =
b17c1746 125!ifeq RUNTIME_LIBS dynamic
8c9f8f91 126__RUNTIME_LIBS_6 = -br
3fe8bc14 127!endif
b17c1746 128!ifeq RUNTIME_LIBS static
8c9f8f91 129__RUNTIME_LIBS_6 =
3fe8bc14 130!endif
8c9f8f91
JS
131__RTTIFLAG_7 =
132!ifeq USE_RTTI 0
133__RTTIFLAG_7 =
b14abf14 134!endif
8c9f8f91
JS
135!ifeq USE_RTTI 1
136__RTTIFLAG_7 = -xr
b14abf14 137!endif
8c9f8f91 138__EXCEPTIONSFLAG_8 =
b71531ad 139!ifeq USE_EXCEPTIONS 0
8c9f8f91 140__EXCEPTIONSFLAG_8 =
b71531ad
VZ
141!endif
142!ifeq USE_EXCEPTIONS 1
8c9f8f91 143__EXCEPTIONSFLAG_8 = -xs
b71531ad 144!endif
b17c1746
DE
145__WXUNIV_DEFINE_p =
146!ifeq WXUNIV 1
147__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
25a73439 148!endif
b17c1746 149__DEBUG_DEFINE_p =
3fe8bc14 150!ifeq BUILD debug
b17c1746
DE
151!ifeq DEBUG_FLAG default
152__DEBUG_DEFINE_p = -d__WXDEBUG__
3fe8bc14 153!endif
250700e4 154!endif
b17c1746
DE
155!ifeq DEBUG_FLAG 1
156__DEBUG_DEFINE_p = -d__WXDEBUG__
250700e4 157!endif
8c9f8f91
JS
158__EXCEPTIONS_DEFINE_p =
159!ifeq USE_EXCEPTIONS 0
160__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
161!endif
162__RTTI_DEFINE_p =
163!ifeq USE_RTTI 0
164__RTTI_DEFINE_p = -dwxNO_RTTI
165!endif
166__THREAD_DEFINE_p =
167!ifeq USE_THREADS 0
168__THREAD_DEFINE_p = -dwxNO_THREADS
169!endif
3fe8bc14 170__UNICODE_DEFINE_p =
7379e476
VZ
171!ifeq UNICODE 0
172__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
173!endif
3fe8bc14 174!ifeq UNICODE 1
ec08d395 175__UNICODE_DEFINE_p = -d_UNICODE
3fe8bc14 176!endif
3abcf424
RD
177__GFXCTX_DEFINE_p =
178!ifeq USE_GDIPLUS 1
179__GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1
180!endif
b17c1746
DE
181__DLLFLAG_p =
182!ifeq SHARED 1
183__DLLFLAG_p = -dWXUSINGDLL
184!endif
185__WXLIB_NET_p =
186!ifeq MONOLITHIC 0
c33fae85
RN
187__WXLIB_NET_p = &
188 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
b17c1746 189!endif
3fe8bc14
VS
190__WXLIB_BASE_p =
191!ifeq MONOLITHIC 0
c33fae85
RN
192__WXLIB_BASE_p = &
193 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
3fe8bc14
VS
194!endif
195__WXLIB_MONO_p =
196!ifeq MONOLITHIC 1
25a73439 197__WXLIB_MONO_p = &
c33fae85 198 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
3fe8bc14 199!endif
3abcf424
RD
200__GDIPLUS_LIB_p =
201!ifeq USE_GDIPLUS 1
202__GDIPLUS_LIB_p = gdiplus.lib
203!endif
3fe8bc14
VS
204
205### Variables: ###
206
ae4ccf12 207WX_RELEASE_NODOT = 29
444833b3 208COMPILER_PREFIX = wat
b17c1746 209OBJS = &
444833b3
CE
210 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
211LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
212SETUPHDIR = &
213 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
214CONSOLE_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &
215 $(__RUNTIME_LIBS_6) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
216 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
3abcf424
RD
217 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
218 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
219 -dwxUSE_GUI=0 $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) $(CXXFLAGS)
25a73439
VS
220CONSOLE_OBJECTS = &
221 $(OBJS)\console_console.obj
3fe8bc14 222
3fe8bc14
VS
223
224all : $(OBJS)
225$(OBJS) :
226 -if not exist $(OBJS) mkdir $(OBJS)
227
228### Targets: ###
229
230all : .SYMBOLIC $(OBJS)\console.exe data
231
3fe8bc14
VS
232clean : .SYMBOLIC
233 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
234 -if exist $(OBJS)\*.res del $(OBJS)\*.res
235 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
236 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
b14abf14 237 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
3fe8bc14 238 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
3fe8bc14 239
25a73439 240$(OBJS)\console.exe : $(CONSOLE_OBJECTS)
3fe8bc14
VS
241 @%create $(OBJS)\console.lbc
242 @%append $(OBJS)\console.lbc option quiet
243 @%append $(OBJS)\console.lbc name $^@
75a0a7b7 244 @%append $(OBJS)\console.lbc option caseexact
8ece421c 245 @%append $(OBJS)\console.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(LDFLAGS)
25a73439 246 @for %i in ($(CONSOLE_OBJECTS)) do @%append $(OBJS)\console.lbc file %i
b44f5137 247 @for %i in ( $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__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) do @%append $(OBJS)\console.lbc library %i
3fe8bc14 248 @%append $(OBJS)\console.lbc
77a7dfc1 249 @for %i in () do @%append $(OBJS)\console.lbc option stack=%i
3fe8bc14
VS
250 wlink @$(OBJS)\console.lbc
251
fd9f42b6 252data : .SYMBOLIC
3fe8bc14
VS
253 if not exist $(OBJS) mkdir $(OBJS)
254 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
b17c1746
DE
255
256$(OBJS)\console_console.obj : .AUTODEPEND .\console.cpp
4cbcfb73 257 $(CXX) -bt=nt -zq -fo=$^@ $(CONSOLE_CXXFLAGS) $<
b14abf14 258