]>
Commit | Line | Data |
---|---|---|
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 | |
30 | WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-\r | |
31 | \r | |
32 | ### Conditionally set variables: ###\r | |
33 | \r | |
22a3b6e4 VZ |
34 | WIN32_TOOLKIT_LOWERCASE = |
35 | !ifeq TOOLKIT GTK | |
36 | WIN32_TOOLKIT_LOWERCASE = gtk | |
37 | !endif | |
38 | !ifeq TOOLKIT MSW | |
39 | WIN32_TOOLKIT_LOWERCASE = msw | |
40 | !endif | |
f82b7036 KO |
41 | PORTNAME =\r |
42 | !ifeq USE_GUI 0\r | |
43 | PORTNAME = base\r | |
44 | !endif\r | |
45 | !ifeq USE_GUI 1\r | |
22a3b6e4 VZ |
46 | PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) |
47 | !endif | |
48 | WXBASEPORT = | |
49 | !ifeq TOOLKIT MAC | |
50 | WXBASEPORT = _carbon | |
51 | !endif | |
14b682f7 VZ |
52 | COMPILER_VERSION = |
53 | !ifeq OFFICIAL_BUILD 1 | |
54 | COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD | |
55 | !endif | |
56 | WXCOMPILER = | |
57 | !ifeq OFFICIAL_BUILD 0 | |
58 | WXCOMPILER = _wat | |
59 | !endif | |
60 | !ifeq OFFICIAL_BUILD 1 | |
61 | WXCOMPILER = _wat$(COMPILER_VERSION) | |
62 | !endif | |
f82b7036 KO |
63 | WXDEBUGFLAG =\r |
64 | !ifeq BUILD debug\r | |
65 | WXDEBUGFLAG = d\r | |
66 | !endif\r | |
67 | WXUNICODEFLAG =\r | |
68 | !ifeq UNICODE 1\r | |
69 | WXUNICODEFLAG = u\r | |
70 | !endif\r | |
71 | WXUNIVNAME =\r | |
72 | !ifeq WXUNIV 1\r | |
73 | WXUNIVNAME = univ\r | |
74 | !endif\r | |
75 | WXDLLFLAG =\r | |
76 | !ifeq SHARED 1\r | |
77 | WXDLLFLAG = dll\r | |
78 | !endif\r | |
79 | LIBTYPE_SUFFIX =\r | |
80 | !ifeq SHARED 0\r | |
81 | LIBTYPE_SUFFIX = lib\r | |
82 | !endif\r | |
83 | !ifeq SHARED 1\r | |
84 | LIBTYPE_SUFFIX = dll\r | |
85 | !endif\r | |
86 | EXTRALIBS_FOR_BASE =\r | |
87 | !ifeq MONOLITHIC 0\r | |
88 | EXTRALIBS_FOR_BASE = \r | |
89 | !endif\r | |
90 | !ifeq MONOLITHIC 1\r | |
51ec29ea | 91 | EXTRALIBS_FOR_BASE = \r |
f82b7036 | 92 | !endif\r |
22a3b6e4 VZ |
93 | LIB_GTK = |
94 | !ifeq TOOLKIT GTK | |
95 | !ifeq TOOLKIT_VERSION 2 | |
96 | LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib & | |
97 | gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib & | |
98 | glib-2.0.lib | |
99 | !endif | |
100 | !endif | |
f82b7036 KO |
101 | __renddll___depname =\r |
102 | !ifeq SHARED 1\r | |
103 | __renddll___depname = &\r | |
14b682f7 | 104 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll |
f82b7036 KO |
105 | !endif\r |
106 | __DEBUGINFO =\r | |
107 | !ifeq BUILD debug\r | |
108 | !ifeq DEBUG_INFO default\r | |
109 | __DEBUGINFO = -d2\r | |
110 | !endif\r | |
111 | !endif\r | |
112 | !ifeq BUILD release\r | |
113 | !ifeq DEBUG_INFO default\r | |
114 | __DEBUGINFO = -d0\r | |
115 | !endif\r | |
116 | !endif\r | |
117 | !ifeq DEBUG_INFO 0\r | |
118 | __DEBUGINFO = -d0\r | |
119 | !endif\r | |
120 | !ifeq DEBUG_INFO 1\r | |
121 | __DEBUGINFO = -d2\r | |
122 | !endif\r | |
123 | __DEBUGINFO_1 =\r | |
124 | !ifeq BUILD debug\r | |
125 | !ifeq DEBUG_INFO default\r | |
126 | __DEBUGINFO_1 = debug all\r | |
127 | !endif\r | |
128 | !endif\r | |
129 | !ifeq BUILD release\r | |
130 | !ifeq DEBUG_INFO default\r | |
131 | __DEBUGINFO_1 = \r | |
132 | !endif\r | |
133 | !endif\r | |
134 | !ifeq DEBUG_INFO 0\r | |
135 | __DEBUGINFO_1 = \r | |
136 | !endif\r | |
137 | !ifeq DEBUG_INFO 1\r | |
138 | __DEBUGINFO_1 = debug all\r | |
139 | !endif\r | |
140 | __OPTIMIZEFLAG =\r | |
141 | !ifeq BUILD debug\r | |
142 | __OPTIMIZEFLAG = -od\r | |
143 | !endif\r | |
144 | !ifeq BUILD release\r | |
145 | __OPTIMIZEFLAG = -ot -ox\r | |
146 | !endif\r | |
147 | __THREADSFLAG =\r | |
148 | !ifeq USE_THREADS 0\r | |
149 | __THREADSFLAG = \r | |
150 | !endif\r | |
151 | !ifeq USE_THREADS 1\r | |
152 | __THREADSFLAG = -bm\r | |
153 | !endif\r | |
154 | __RUNTIME_LIBS =\r | |
155 | !ifeq RUNTIME_LIBS dynamic\r | |
156 | __RUNTIME_LIBS = -br\r | |
157 | !endif\r | |
158 | !ifeq RUNTIME_LIBS static\r | |
159 | __RUNTIME_LIBS = \r | |
160 | !endif\r | |
161 | __RTTIFLAG =\r | |
162 | !ifeq USE_RTTI 0\r | |
163 | __RTTIFLAG = \r | |
164 | !endif\r | |
165 | !ifeq USE_RTTI 1\r | |
166 | __RTTIFLAG = -xr\r | |
167 | !endif\r | |
168 | __EXCEPTIONSFLAG =\r | |
169 | !ifeq USE_EXCEPTIONS 0\r | |
170 | __EXCEPTIONSFLAG = \r | |
171 | !endif\r | |
172 | !ifeq USE_EXCEPTIONS 1\r | |
173 | __EXCEPTIONSFLAG = -xs\r | |
174 | !endif\r | |
175 | __WXUNIV_DEFINE_p =\r | |
176 | !ifeq WXUNIV 1\r | |
177 | __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r | |
178 | !endif\r | |
179 | __DEBUG_DEFINE_p =\r | |
180 | !ifeq DEBUG_FLAG 0\r | |
181 | __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0\r | |
182 | !endif\r | |
00fb97de KO |
183 | __NDEBUG_DEFINE_p =\r |
184 | !ifeq BUILD release\r | |
185 | __NDEBUG_DEFINE_p = -dNDEBUG\r | |
186 | !endif\r | |
f82b7036 KO |
187 | __EXCEPTIONS_DEFINE_p =\r |
188 | !ifeq USE_EXCEPTIONS 0\r | |
189 | __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS\r | |
190 | !endif\r | |
191 | __RTTI_DEFINE_p =\r | |
192 | !ifeq USE_RTTI 0\r | |
193 | __RTTI_DEFINE_p = -dwxNO_RTTI\r | |
194 | !endif\r | |
195 | __THREAD_DEFINE_p =\r | |
196 | !ifeq USE_THREADS 0\r | |
197 | __THREAD_DEFINE_p = -dwxNO_THREADS\r | |
198 | !endif\r | |
199 | __UNICODE_DEFINE_p =\r | |
200 | !ifeq UNICODE 0\r | |
201 | __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0\r | |
202 | !endif\r | |
203 | !ifeq UNICODE 1\r | |
204 | __UNICODE_DEFINE_p = -d_UNICODE\r | |
205 | !endif\r | |
f82b7036 KO |
206 | ____CAIRO_INCLUDEDIR_FILENAMES =\r |
207 | !ifeq USE_CAIRO 1\r | |
208 | ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo\r | |
209 | !endif\r | |
210 | __DLLFLAG_p =\r | |
211 | !ifeq SHARED 1\r | |
212 | __DLLFLAG_p = -dWXUSINGDLL\r | |
213 | !endif\r | |
214 | __WXLIB_CORE_p =\r | |
215 | !ifeq MONOLITHIC 0\r | |
216 | __WXLIB_CORE_p = &\r | |
217 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r | |
218 | !endif\r | |
219 | __WXLIB_BASE_p =\r | |
220 | !ifeq MONOLITHIC 0\r | |
221 | __WXLIB_BASE_p = &\r | |
22a3b6e4 | 222 | wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
f82b7036 KO |
223 | !endif\r |
224 | __WXLIB_MONO_p =\r | |
225 | !ifeq MONOLITHIC 1\r | |
226 | __WXLIB_MONO_p = &\r | |
227 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r | |
228 | !endif\r | |
229 | __LIB_TIFF_p =\r | |
230 | !ifeq USE_GUI 1\r | |
231 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r | |
232 | !endif\r | |
233 | __LIB_JPEG_p =\r | |
234 | !ifeq USE_GUI 1\r | |
235 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r | |
236 | !endif\r | |
237 | __LIB_PNG_p =\r | |
238 | !ifeq USE_GUI 1\r | |
239 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r | |
240 | !endif\r | |
f82b7036 KO |
241 | __CAIRO_LIB_p =\r |
242 | !ifeq USE_CAIRO 1\r | |
243 | __CAIRO_LIB_p = cairo.lib\r | |
244 | !endif\r | |
245 | ____CAIRO_LIBDIR_FILENAMES =\r | |
246 | !ifeq USE_CAIRO 1\r | |
247 | ____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib\r | |
248 | !endif\r | |
249 | \r | |
250 | ### Variables: ###\r | |
251 | \r | |
252 | WX_RELEASE_NODOT = 29\r | |
14b682f7 | 253 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5 |
f82b7036 KO |
254 | COMPILER_PREFIX = wat\r |
255 | OBJS = &\r | |
14b682f7 VZ |
256 | $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
257 | LIBDIRNAME = & | |
258 | .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG) | |
f82b7036 KO |
259 | SETUPHDIR = &\r |
260 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
261 | RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r | |
22a3b6e4 VZ |
262 | $(__RUNTIME_LIBS) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) & |
263 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) & | |
264 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) & | |
265 | -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx & | |
266 | -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples & | |
267 | -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS) | |
f82b7036 KO |
268 | RENDER_OBJECTS = &\r |
269 | $(OBJS)\render_render.obj\r | |
270 | RENDDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r | |
22a3b6e4 VZ |
271 | $(__RUNTIME_LIBS) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) & |
272 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) & | |
273 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) & | |
274 | -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx & | |
275 | -wcd=549 -wcd=656 -wcd=657 -wcd=667 -dWXUSINGDLL $(__RTTIFLAG) & | |
276 | $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS) | |
f82b7036 KO |
277 | RENDDLL_OBJECTS = &\r |
278 | $(OBJS)\renddll_renddll.obj\r | |
279 | \r | |
280 | \r | |
281 | all : $(OBJS)\r | |
282 | $(OBJS) :\r | |
283 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
284 | \r | |
285 | ### Targets: ###\r | |
286 | \r | |
287 | all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)\r | |
288 | \r | |
289 | clean : .SYMBOLIC \r | |
290 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r | |
291 | -if exist $(OBJS)\*.res del $(OBJS)\*.res\r | |
292 | -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r | |
293 | -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r | |
294 | -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r | |
295 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe\r | |
14b682f7 | 296 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll |
f82b7036 KO |
297 | \r |
298 | $(OBJS)\render.exe : $(RENDER_OBJECTS) $(OBJS)\render_sample.res\r | |
299 | @%create $(OBJS)\render.lbc\r | |
300 | @%append $(OBJS)\render.lbc option quiet\r | |
301 | @%append $(OBJS)\render.lbc name $^@\r | |
302 | @%append $(OBJS)\render.lbc option caseexact\r | |
303 | @%append $(OBJS)\render.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)\r | |
304 | @for %i in ($(RENDER_OBJECTS)) do @%append $(OBJS)\render.lbc file %i\r | |
22a3b6e4 | 305 | @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) 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)\render.lbc library %i |
f82b7036 KO |
306 | @%append $(OBJS)\render.lbc option resource=$(OBJS)\render_sample.res\r |
307 | @for %i in () do @%append $(OBJS)\render.lbc option stack=%i\r | |
308 | wlink @$(OBJS)\render.lbc\r | |
309 | \r | |
310 | !ifeq SHARED 1\r | |
14b682f7 | 311 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll : $(RENDDLL_OBJECTS) |
f82b7036 KO |
312 | @%create $(OBJS)\renddll.lbc\r |
313 | @%append $(OBJS)\renddll.lbc option quiet\r | |
314 | @%append $(OBJS)\renddll.lbc name $^@\r | |
315 | @%append $(OBJS)\renddll.lbc option caseexact\r | |
316 | @%append $(OBJS)\renddll.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)\r | |
317 | @for %i in ($(RENDDLL_OBJECTS)) do @%append $(OBJS)\renddll.lbc file %i\r | |
22a3b6e4 | 318 | @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) 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)\renddll.lbc library %i |
f82b7036 KO |
319 | @%append $(OBJS)\renddll.lbc\r |
320 | @%append $(OBJS)\renddll.lbc system nt_dll\r | |
321 | wlink @$(OBJS)\renddll.lbc\r | |
322 | !endif\r | |
323 | \r | |
324 | $(OBJS)\render_sample.res : .AUTODEPEND .\..\..\samples\sample.rc\r | |
22a3b6e4 | 325 | wrc -q -ad -bt=nt -r -fo=$^@ -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $< |
f82b7036 KO |
326 | \r |
327 | $(OBJS)\render_render.obj : .AUTODEPEND .\render.cpp\r | |
328 | $(CXX) -bt=nt -zq -fo=$^@ $(RENDER_CXXFLAGS) $<\r | |
329 | \r | |
330 | $(OBJS)\renddll_renddll.obj : .AUTODEPEND .\renddll.cpp\r | |
331 | $(CXX) -bt=nt -zq -fo=$^@ $(RENDDLL_CXXFLAGS) $<\r | |
332 | \r |