]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.wat
Fix wxEVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK event type name.
[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
22a3b6e4
VZ
34WIN32_TOOLKIT_LOWERCASE =
35!ifeq TOOLKIT GTK
36WIN32_TOOLKIT_LOWERCASE = gtk
37!endif
38!ifeq TOOLKIT MSW
39WIN32_TOOLKIT_LOWERCASE = msw
40!endif
f82b7036
KO
41PORTNAME =\r
42!ifeq USE_GUI 0\r
43PORTNAME = base\r
44!endif\r
45!ifeq USE_GUI 1\r
22a3b6e4
VZ
46PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
47!endif
48WXBASEPORT =
49!ifeq TOOLKIT MAC
50WXBASEPORT = _carbon
51!endif
14b682f7
VZ
52COMPILER_VERSION =
53!ifeq OFFICIAL_BUILD 1
54COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
55!endif
56WXCOMPILER =
57!ifeq OFFICIAL_BUILD 0
58WXCOMPILER = _wat
59!endif
60!ifeq OFFICIAL_BUILD 1
61WXCOMPILER = _wat$(COMPILER_VERSION)
62!endif
f82b7036
KO
63WXDEBUGFLAG =\r
64!ifeq BUILD debug\r
65WXDEBUGFLAG = d\r
66!endif\r
67WXUNICODEFLAG =\r
68!ifeq UNICODE 1\r
69WXUNICODEFLAG = u\r
70!endif\r
71WXUNIVNAME =\r
72!ifeq WXUNIV 1\r
73WXUNIVNAME = univ\r
74!endif\r
75WXDLLFLAG =\r
76!ifeq SHARED 1\r
77WXDLLFLAG = dll\r
78!endif\r
79LIBTYPE_SUFFIX =\r
80!ifeq SHARED 0\r
81LIBTYPE_SUFFIX = lib\r
82!endif\r
83!ifeq SHARED 1\r
84LIBTYPE_SUFFIX = dll\r
85!endif\r
86EXTRALIBS_FOR_BASE =\r
87!ifeq MONOLITHIC 0\r
88EXTRALIBS_FOR_BASE = \r
89!endif\r
90!ifeq MONOLITHIC 1\r
51ec29ea 91EXTRALIBS_FOR_BASE = \r
f82b7036 92!endif\r
22a3b6e4
VZ
93LIB_GTK =
94!ifeq TOOLKIT GTK
95!ifeq TOOLKIT_VERSION 2
96LIB_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
252WX_RELEASE_NODOT = 29\r
14b682f7 253WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
f82b7036
KO
254COMPILER_PREFIX = wat\r
255OBJS = &\r
14b682f7
VZ
256 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
257LIBDIRNAME = &
258 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
f82b7036
KO
259SETUPHDIR = &\r
260 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
261RENDER_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
268RENDER_OBJECTS = &\r
269 $(OBJS)\render_render.obj\r
270RENDDLL_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
277RENDDLL_OBJECTS = &\r
278 $(OBJS)\renddll_renddll.obj\r
279\r
280\r
281all : $(OBJS)\r
282$(OBJS) :\r
283 -if not exist $(OBJS) mkdir $(OBJS)\r
284\r
285### Targets: ###\r
286\r
287all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)\r
288\r
289clean : .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