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