]>
Commit | Line | Data |
---|---|---|
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: | |
30 | WATCOM_CWD = $+ $(%cdrive):$(%cwd) $- | |
31 | ||
32 | ### Conditionally set variables: ### | |
33 | ||
34 | PORTNAME = | |
35 | !ifeq USE_GUI 0 | |
36 | PORTNAME = base | |
37 | !endif | |
38 | !ifeq USE_GUI 1 | |
39 | PORTNAME = msw | |
40 | !endif | |
41 | WXDEBUGFLAG = | |
42 | !ifeq BUILD debug | |
25a73439 VS |
43 | !ifeq DEBUG_FLAG default |
44 | WXDEBUGFLAG = d | |
45 | !endif | |
46 | !endif | |
47 | !ifeq DEBUG_FLAG 1 | |
3fe8bc14 VS |
48 | WXDEBUGFLAG = d |
49 | !endif | |
3fe8bc14 VS |
50 | WXUNICODEFLAG = |
51 | !ifeq UNICODE 1 | |
52 | WXUNICODEFLAG = u | |
53 | !endif | |
54 | WXUNIVNAME = | |
55 | !ifeq WXUNIV 1 | |
56 | WXUNIVNAME = univ | |
57 | !endif | |
b17c1746 DE |
58 | WXDLLFLAG = |
59 | !ifeq SHARED 1 | |
60 | WXDLLFLAG = dll | |
61 | !endif | |
b14abf14 JS |
62 | LIBTYPE_SUFFIX = |
63 | !ifeq SHARED 0 | |
64 | LIBTYPE_SUFFIX = lib | |
65 | !endif | |
66 | !ifeq SHARED 1 | |
67 | LIBTYPE_SUFFIX = dll | |
68 | !endif | |
dd65d8c8 RN |
69 | EXTRALIBS_FOR_BASE = |
70 | !ifeq MONOLITHIC 0 | |
71 | EXTRALIBS_FOR_BASE = | |
72 | !endif | |
73 | !ifeq MONOLITHIC 1 | |
74 | EXTRALIBS_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 | 207 | WX_RELEASE_NODOT = 29 |
444833b3 | 208 | COMPILER_PREFIX = wat |
b17c1746 | 209 | OBJS = & |
444833b3 CE |
210 | $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
211 | LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG) | |
b17c1746 DE |
212 | SETUPHDIR = & |
213 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
214 | CONSOLE_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 |
220 | CONSOLE_OBJECTS = & |
221 | $(OBJS)\console_console.obj | |
3fe8bc14 | 222 | |
3fe8bc14 VS |
223 | |
224 | all : $(OBJS) | |
225 | $(OBJS) : | |
226 | -if not exist $(OBJS) mkdir $(OBJS) | |
227 | ||
228 | ### Targets: ### | |
229 | ||
230 | all : .SYMBOLIC $(OBJS)\console.exe data | |
231 | ||
3fe8bc14 VS |
232 | clean : .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 | 252 | data : .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 |