]>
Commit | Line | Data |
---|---|---|
2d611b5c VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
95ff11c4 | 3 | # Bakefile 0.2.6 (http://www.bakefile.org) |
2d611b5c VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
7 | !include ../../build/msw/config.wat | |
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 | |
2d611b5c | 24 | ! loaddll wlink wlink |
95ff11c4 | 25 | ! endif |
2d611b5c 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 | |
43 | !ifeq DEBUG_FLAG default | |
44 | WXDEBUGFLAG = d | |
45 | !endif | |
46 | !endif | |
47 | !ifeq DEBUG_FLAG 1 | |
48 | WXDEBUGFLAG = d | |
49 | !endif | |
2d611b5c 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 | |
078c7a59 VS |
76 | PLUGINSUFFIX = |
77 | !ifeq BUILD debug | |
78 | !ifeq UNICODE 0 | |
314a6446 | 79 | PLUGINSUFFIX = d |
078c7a59 VS |
80 | !endif |
81 | !endif | |
82 | !ifeq BUILD debug | |
83 | !ifeq UNICODE 1 | |
314a6446 | 84 | PLUGINSUFFIX = ud |
078c7a59 VS |
85 | !endif |
86 | !endif | |
87 | !ifeq BUILD release | |
88 | !ifeq UNICODE 0 | |
89 | PLUGINSUFFIX = | |
90 | !endif | |
91 | !endif | |
92 | !ifeq BUILD release | |
93 | !ifeq UNICODE 1 | |
314a6446 | 94 | PLUGINSUFFIX = u |
078c7a59 VS |
95 | !endif |
96 | !endif | |
b17c1746 DE |
97 | __renddll___depname = |
98 | !ifeq SHARED 1 | |
99 | __renddll___depname = & | |
ae4ccf12 | 100 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll |
b17c1746 | 101 | !endif |
2d611b5c VS |
102 | __DEBUGINFO = |
103 | !ifeq BUILD debug | |
104 | !ifeq DEBUG_INFO default | |
ec08d395 | 105 | __DEBUGINFO = -d2 |
2d611b5c VS |
106 | !endif |
107 | !endif | |
108 | !ifeq BUILD release | |
109 | !ifeq DEBUG_INFO default | |
ec08d395 | 110 | __DEBUGINFO = -d0 |
2d611b5c VS |
111 | !endif |
112 | !endif | |
113 | !ifeq DEBUG_INFO 0 | |
ec08d395 | 114 | __DEBUGINFO = -d0 |
2d611b5c VS |
115 | !endif |
116 | !ifeq DEBUG_INFO 1 | |
ec08d395 | 117 | __DEBUGINFO = -d2 |
2d611b5c | 118 | !endif |
b71531ad | 119 | __DEBUGINFO_1 = |
2d611b5c VS |
120 | !ifeq BUILD debug |
121 | !ifeq DEBUG_INFO default | |
b71531ad | 122 | __DEBUGINFO_1 = debug all |
2d611b5c VS |
123 | !endif |
124 | !endif | |
125 | !ifeq BUILD release | |
126 | !ifeq DEBUG_INFO default | |
b71531ad | 127 | __DEBUGINFO_1 = |
2d611b5c VS |
128 | !endif |
129 | !endif | |
130 | !ifeq DEBUG_INFO 0 | |
b71531ad | 131 | __DEBUGINFO_1 = |
2d611b5c VS |
132 | !endif |
133 | !ifeq DEBUG_INFO 1 | |
b71531ad | 134 | __DEBUGINFO_1 = debug all |
2d611b5c | 135 | !endif |
b17c1746 | 136 | __OPTIMIZEFLAG = |
2d611b5c | 137 | !ifeq BUILD debug |
b17c1746 | 138 | __OPTIMIZEFLAG = -od |
2d611b5c | 139 | !endif |
b17c1746 DE |
140 | !ifeq BUILD release |
141 | __OPTIMIZEFLAG = -ot -ox | |
2d611b5c | 142 | !endif |
8c9f8f91 JS |
143 | __THREADSFLAG = |
144 | !ifeq USE_THREADS 0 | |
145 | __THREADSFLAG = | |
146 | !endif | |
147 | !ifeq USE_THREADS 1 | |
148 | __THREADSFLAG = -bm | |
149 | !endif | |
b17c1746 DE |
150 | __RUNTIME_LIBS = |
151 | !ifeq RUNTIME_LIBS dynamic | |
152 | __RUNTIME_LIBS = -br | |
2d611b5c | 153 | !endif |
b17c1746 DE |
154 | !ifeq RUNTIME_LIBS static |
155 | __RUNTIME_LIBS = | |
2d611b5c | 156 | !endif |
8c9f8f91 JS |
157 | __RTTIFLAG = |
158 | !ifeq USE_RTTI 0 | |
159 | __RTTIFLAG = | |
b71531ad | 160 | !endif |
8c9f8f91 JS |
161 | !ifeq USE_RTTI 1 |
162 | __RTTIFLAG = -xr | |
b14abf14 | 163 | !endif |
8c9f8f91 | 164 | __EXCEPTIONSFLAG = |
b14abf14 | 165 | !ifeq USE_EXCEPTIONS 0 |
8c9f8f91 | 166 | __EXCEPTIONSFLAG = |
b14abf14 JS |
167 | !endif |
168 | !ifeq USE_EXCEPTIONS 1 | |
8c9f8f91 | 169 | __EXCEPTIONSFLAG = -xs |
b71531ad | 170 | !endif |
b17c1746 DE |
171 | __WXUNIV_DEFINE_p = |
172 | !ifeq WXUNIV 1 | |
173 | __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__ | |
2d611b5c | 174 | !endif |
b17c1746 | 175 | __DEBUG_DEFINE_p = |
2d611b5c | 176 | !ifeq BUILD debug |
b17c1746 DE |
177 | !ifeq DEBUG_FLAG default |
178 | __DEBUG_DEFINE_p = -d__WXDEBUG__ | |
2d611b5c | 179 | !endif |
2d611b5c | 180 | !endif |
b17c1746 DE |
181 | !ifeq DEBUG_FLAG 1 |
182 | __DEBUG_DEFINE_p = -d__WXDEBUG__ | |
2d611b5c | 183 | !endif |
8c9f8f91 JS |
184 | __EXCEPTIONS_DEFINE_p = |
185 | !ifeq USE_EXCEPTIONS 0 | |
186 | __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS | |
187 | !endif | |
188 | __RTTI_DEFINE_p = | |
189 | !ifeq USE_RTTI 0 | |
190 | __RTTI_DEFINE_p = -dwxNO_RTTI | |
191 | !endif | |
192 | __THREAD_DEFINE_p = | |
193 | !ifeq USE_THREADS 0 | |
194 | __THREAD_DEFINE_p = -dwxNO_THREADS | |
195 | !endif | |
2d611b5c | 196 | __UNICODE_DEFINE_p = |
7379e476 VZ |
197 | !ifeq UNICODE 0 |
198 | __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0 | |
199 | !endif | |
2d611b5c | 200 | !ifeq UNICODE 1 |
ec08d395 | 201 | __UNICODE_DEFINE_p = -d_UNICODE |
2d611b5c | 202 | !endif |
3abcf424 RD |
203 | __GFXCTX_DEFINE_p = |
204 | !ifeq USE_GDIPLUS 1 | |
205 | __GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1 | |
206 | !endif | |
b17c1746 DE |
207 | __DLLFLAG_p = |
208 | !ifeq SHARED 1 | |
209 | __DLLFLAG_p = -dWXUSINGDLL | |
2d611b5c VS |
210 | !endif |
211 | __WXLIB_CORE_p = | |
212 | !ifeq MONOLITHIC 0 | |
213 | __WXLIB_CORE_p = & | |
c33fae85 | 214 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib |
2d611b5c | 215 | !endif |
b17c1746 DE |
216 | __WXLIB_BASE_p = |
217 | !ifeq MONOLITHIC 0 | |
c33fae85 RN |
218 | __WXLIB_BASE_p = & |
219 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
b17c1746 | 220 | !endif |
2d611b5c VS |
221 | __WXLIB_MONO_p = |
222 | !ifeq MONOLITHIC 1 | |
223 | __WXLIB_MONO_p = & | |
c33fae85 | 224 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
2d611b5c | 225 | !endif |
b17c1746 DE |
226 | __LIB_TIFF_p = |
227 | !ifeq USE_GUI 1 | |
9c2d002b | 228 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib |
2d611b5c | 229 | !endif |
b17c1746 DE |
230 | __LIB_JPEG_p = |
231 | !ifeq USE_GUI 1 | |
9c2d002b | 232 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib |
b17c1746 DE |
233 | !endif |
234 | __LIB_PNG_p = | |
235 | !ifeq USE_GUI 1 | |
9c2d002b | 236 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib |
2d611b5c | 237 | !endif |
3abcf424 RD |
238 | __GDIPLUS_LIB_p = |
239 | !ifeq USE_GDIPLUS 1 | |
240 | __GDIPLUS_LIB_p = gdiplus.lib | |
241 | !endif | |
2d611b5c VS |
242 | |
243 | ### Variables: ### | |
244 | ||
ae4ccf12 RD |
245 | WX_RELEASE_NODOT = 29 |
246 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0 | |
444833b3 | 247 | COMPILER_PREFIX = wat |
2d611b5c | 248 | OBJS = & |
444833b3 CE |
249 | $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
250 | LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG) | |
b17c1746 DE |
251 | SETUPHDIR = & |
252 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
253 | RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) & |
254 | $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) & | |
255 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) & | |
3abcf424 RD |
256 | $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) & |
257 | -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) & | |
258 | -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) & | |
259 | $(CXXFLAGS) | |
2d611b5c VS |
260 | RENDER_OBJECTS = & |
261 | $(OBJS)\render_render.obj | |
8c9f8f91 JS |
262 | RENDDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) & |
263 | $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) & | |
264 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) & | |
3abcf424 RD |
265 | $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) & |
266 | -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -dWXUSINGDLL & | |
267 | $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS) | |
b17c1746 DE |
268 | RENDDLL_OBJECTS = & |
269 | $(OBJS)\renddll_renddll.obj | |
2d611b5c | 270 | |
2d611b5c VS |
271 | |
272 | all : $(OBJS) | |
273 | $(OBJS) : | |
274 | -if not exist $(OBJS) mkdir $(OBJS) | |
275 | ||
276 | ### Targets: ### | |
277 | ||
278 | all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname) | |
279 | ||
2d611b5c VS |
280 | clean : .SYMBOLIC |
281 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
282 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
283 | -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc | |
284 | -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk | |
b14abf14 | 285 | -if exist $(OBJS)\*.pch del $(OBJS)\*.pch |
2d611b5c | 286 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe |
ae4ccf12 | 287 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll |
2d611b5c | 288 | |
b17c1746 DE |
289 | $(OBJS)\render.exe : $(RENDER_OBJECTS) $(OBJS)\render_sample.res |
290 | @%create $(OBJS)\render.lbc | |
291 | @%append $(OBJS)\render.lbc option quiet | |
292 | @%append $(OBJS)\render.lbc name $^@ | |
293 | @%append $(OBJS)\render.lbc option caseexact | |
8ece421c | 294 | @%append $(OBJS)\render.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS) |
b17c1746 | 295 | @for %i in ($(RENDER_OBJECTS)) do @%append $(OBJS)\render.lbc file %i |
b44f5137 | 296 | @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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) $(__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)\render.lbc library %i |
b17c1746 | 297 | @%append $(OBJS)\render.lbc option resource=$(OBJS)\render_sample.res |
77a7dfc1 | 298 | @for %i in () do @%append $(OBJS)\render.lbc option stack=%i |
b17c1746 DE |
299 | wlink @$(OBJS)\render.lbc |
300 | ||
2d611b5c | 301 | !ifeq SHARED 1 |
ae4ccf12 | 302 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll : $(RENDDLL_OBJECTS) |
2d611b5c VS |
303 | @%create $(OBJS)\renddll.lbc |
304 | @%append $(OBJS)\renddll.lbc option quiet | |
305 | @%append $(OBJS)\renddll.lbc name $^@ | |
75a0a7b7 | 306 | @%append $(OBJS)\renddll.lbc option caseexact |
8ece421c | 307 | @%append $(OBJS)\renddll.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) $(LDFLAGS) |
2d611b5c | 308 | @for %i in ($(RENDDLL_OBJECTS)) do @%append $(OBJS)\renddll.lbc file %i |
b44f5137 | 309 | @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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) $(__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)\renddll.lbc library %i |
2d611b5c VS |
310 | @%append $(OBJS)\renddll.lbc |
311 | @%append $(OBJS)\renddll.lbc system nt_dll | |
312 | wlink @$(OBJS)\renddll.lbc | |
313 | !endif | |
314 | ||
b17c1746 | 315 | $(OBJS)\render_sample.res : .AUTODEPEND .\..\..\samples\sample.rc |
444833b3 | 316 | wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $< |
b17c1746 DE |
317 | |
318 | $(OBJS)\render_render.obj : .AUTODEPEND .\render.cpp | |
4cbcfb73 | 319 | $(CXX) -bt=nt -zq -fo=$^@ $(RENDER_CXXFLAGS) $< |
b17c1746 DE |
320 | |
321 | $(OBJS)\renddll_renddll.obj : .AUTODEPEND .\renddll.cpp | |
4cbcfb73 | 322 | $(CXX) -bt=nt -zq -fo=$^@ $(RENDDLL_CXXFLAGS) $< |
b14abf14 | 323 |