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