]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.wat
No changes, just refactor wxMSW wxComboBox code calling GetComboBoxInfo().
[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
39PORTNAME = msw\r
40!endif\r
14b682f7
VZ
41COMPILER_VERSION =
42!ifeq OFFICIAL_BUILD 1
43COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
44!endif
45WXCOMPILER =
46!ifeq OFFICIAL_BUILD 0
47WXCOMPILER = _wat
48!endif
49!ifeq OFFICIAL_BUILD 1
50WXCOMPILER = _wat$(COMPILER_VERSION)
51!endif
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
14b682f7 85 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll
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
203 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
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
210__LIB_TIFF_p =\r
211!ifeq USE_GUI 1\r
212__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
213!endif\r
214__LIB_JPEG_p =\r
215!ifeq USE_GUI 1\r
216__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
217!endif\r
218__LIB_PNG_p =\r
219!ifeq USE_GUI 1\r
220__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
221!endif\r
f82b7036
KO
222__CAIRO_LIB_p =\r
223!ifeq USE_CAIRO 1\r
224__CAIRO_LIB_p = cairo.lib\r
225!endif\r
226____CAIRO_LIBDIR_FILENAMES =\r
227!ifeq USE_CAIRO 1\r
228____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib\r
229!endif\r
230\r
231### Variables: ###\r
232\r
233WX_RELEASE_NODOT = 29\r
14b682f7 234WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
f82b7036
KO
235COMPILER_PREFIX = wat\r
236OBJS = &\r
14b682f7
VZ
237 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
238LIBDIRNAME = &
239 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
f82b7036
KO
240SETUPHDIR = &\r
241 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
242RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
243 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
00fb97de 244 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &\r
b796194b
VS
245 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &\r
246 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &\r
247 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &\r
248 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
f82b7036
KO
249RENDER_OBJECTS = &\r
250 $(OBJS)\render_render.obj\r
251RENDDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
252 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
00fb97de 253 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &\r
b796194b
VS
254 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &\r
255 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &\r
256 -wcd=657 -wcd=667 -dWXUSINGDLL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &\r
257 $(CXXFLAGS)\r
f82b7036
KO
258RENDDLL_OBJECTS = &\r
259 $(OBJS)\renddll_renddll.obj\r
260\r
261\r
262all : $(OBJS)\r
263$(OBJS) :\r
264 -if not exist $(OBJS) mkdir $(OBJS)\r
265\r
266### Targets: ###\r
267\r
268all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)\r
269\r
270clean : .SYMBOLIC \r
271 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
272 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
273 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r
274 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r
275 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
276 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe\r
14b682f7 277 -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
278\r
279$(OBJS)\render.exe : $(RENDER_OBJECTS) $(OBJS)\render_sample.res\r
280 @%create $(OBJS)\render.lbc\r
281 @%append $(OBJS)\render.lbc option quiet\r
282 @%append $(OBJS)\render.lbc name $^@\r
283 @%append $(OBJS)\render.lbc option caseexact\r
284 @%append $(OBJS)\render.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)\r
285 @for %i in ($(RENDER_OBJECTS)) do @%append $(OBJS)\render.lbc file %i\r
b796194b 286 @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) $(__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
287 @%append $(OBJS)\render.lbc option resource=$(OBJS)\render_sample.res\r
288 @for %i in () do @%append $(OBJS)\render.lbc option stack=%i\r
289 wlink @$(OBJS)\render.lbc\r
290\r
291!ifeq SHARED 1\r
14b682f7 292$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll : $(RENDDLL_OBJECTS)
f82b7036
KO
293 @%create $(OBJS)\renddll.lbc\r
294 @%append $(OBJS)\renddll.lbc option quiet\r
295 @%append $(OBJS)\renddll.lbc name $^@\r
296 @%append $(OBJS)\renddll.lbc option caseexact\r
297 @%append $(OBJS)\renddll.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)\r
298 @for %i in ($(RENDDLL_OBJECTS)) do @%append $(OBJS)\renddll.lbc file %i\r
b796194b 299 @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) $(__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
300 @%append $(OBJS)\renddll.lbc\r
301 @%append $(OBJS)\renddll.lbc system nt_dll\r
302 wlink @$(OBJS)\renddll.lbc\r
303!endif\r
304\r
305$(OBJS)\render_sample.res : .AUTODEPEND .\..\..\samples\sample.rc\r
b796194b 306 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
307\r
308$(OBJS)\render_render.obj : .AUTODEPEND .\render.cpp\r
309 $(CXX) -bt=nt -zq -fo=$^@ $(RENDER_CXXFLAGS) $<\r
310\r
311$(OBJS)\renddll_renddll.obj : .AUTODEPEND .\renddll.cpp\r
312 $(CXX) -bt=nt -zq -fo=$^@ $(RENDDLL_CXXFLAGS) $<\r
313\r