3 include $(SRCDIR)/config/aros.cfg
5 ifneq ($(AROS_TARGET_VARIANT),tiny)
6 MAKE_BUILTIN_ABOUTMUI := no
7 MAKE_BUILTIN_BALANCE := no
8 MAKE_BUILTIN_BOOPSI := no
9 MAKE_BUILTIN_COLORADJUST := no
10 MAKE_BUILTIN_COLORFIELD := no
11 MAKE_BUILTIN_POPASL := no
12 MAKE_BUILTIN_POPFRAME := no
13 MAKE_BUILTIN_POPIMAGE := no
14 MAKE_BUILTIN_POPPEN := no
15 MAKE_BUILTIN_RADIO := no
16 MAKE_BUILTIN_SCROLLGROUP := no
17 MAKE_BUILTIN_SETTINGSGROUP := no
18 MAKE_BUILTIN_VIRTGROUP := no
20 MAKE_BUILTIN_ABOUTMUI := yes
21 MAKE_BUILTIN_BALANCE := yes
22 MAKE_BUILTIN_BOOPSI := yes
23 MAKE_BUILTIN_COLORADJUST := yes
24 MAKE_BUILTIN_COLORFIELD := yes
25 MAKE_BUILTIN_POPASL := yes
26 MAKE_BUILTIN_POPFRAME := yes
27 MAKE_BUILTIN_POPIMAGE := yes
28 MAKE_BUILTIN_POPPEN := yes
29 MAKE_BUILTIN_RADIO := yes
30 MAKE_BUILTIN_SCROLLGROUP := yes
31 MAKE_BUILTIN_SETTINGSGROUP := yes
32 MAKE_BUILTIN_VIRTGROUP := yes
35 MAKE_BUILTIN_FRAMEADJUST := yes
36 MAKE_BUILTIN_FRAMEDISPLAY := yes
37 MAKE_BUILTIN_GAUGE := yes
38 MAKE_BUILTIN_IMAGEADJUST := yes
39 MAKE_BUILTIN_IMAGEDISPLAY := yes
40 MAKE_BUILTIN_PENADJUST := yes
41 MAKE_BUILTIN_PENDISPLAY := yes
42 MAKE_BUILTIN_SCALE := yes
43 MAKE_BUILTIN_NUMERICBUTTON := yes
44 MAKE_BUILTIN_VOLUMELIST := no
45 MAKE_BUILTIN_DIRLIST := no
46 MAKE_BUILTIN_POPLIST := no
47 MAKE_BUILTIN_POPSCREEN := no
48 MAKE_BUILTIN_CRAWLING := no
49 MAKE_BUILTIN_LEVELMETER := no
50 MAKE_BUILTIN_KNOB := no
51 MAKE_BUILTIN_DTPIC := no
52 MAKE_BUILTIN_PALETTE := no
53 MAKE_BUILTIN_TITLE := no
54 MAKE_BUILTIN_PROCESS := no
55 MAKE_BUILTIN_PIXMAP := no
108 mui_allocaslrequest \
111 mui_createcustomclass \
112 mui_deletecustomclass \
127 mui_removeclipregion \
132 USER_CPPFLAGS := -DHAVE_COOLIMAGES
135 ifeq ($(MAKE_BUILTIN_ABOUTMUI),yes)
136 CLASSES := $(CLASSES) aboutmui
137 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_ABOUTMUI=1
139 EXTCLASSES := $(EXTCLASSES) aboutmui
140 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_ABOUTMUI=0
143 ifeq ($(MAKE_BUILTIN_BOOPSI),yes)
144 CLASSES := $(CLASSES) boopsi
145 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_BOOPSI=1
147 EXTCLASSES := $(EXTCLASSES) boopsi
148 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_BOOPSI=0
151 ifeq ($(MAKE_BUILTIN_BALANCE),yes)
152 CLASSES := $(CLASSES) balance
153 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_BALANCE=1
155 EXTCLASSES := $(EXTCLASSES) balance
156 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_BALANCE=0
159 ifeq ($(MAKE_BUILTIN_COLORADJUST),yes)
160 CLASSES := $(CLASSES) coloradjust
161 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_COLORADJUST=1
163 EXTCLASSES := $(EXTCLASSES) coloradjust
164 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_COLORADJUST=0
167 ifeq ($(MAKE_BUILTIN_COLORFIELD),yes)
168 CLASSES := $(CLASSES) colorfield
169 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_COLORFIELD=1
171 EXTCLASSES := $(EXTCLASSES) colorfield
172 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_COLORFIELD=0
175 ifeq ($(MAKE_BUILTIN_FRAMEADJUST),yes)
176 CLASSES := $(CLASSES) frameadjust
177 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_FRAMEADJUST=1
179 EXTCLASSES := $(EXTCLASSES) frameadjust
180 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_FRAMEADJUST=0
183 ifeq ($(MAKE_BUILTIN_FRAMEDISPLAY),yes)
184 CLASSES := $(CLASSES) framedisplay
185 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_FRAMEDISPLAY=1
187 EXTCLASSES := $(EXTCLASSES) framedisplay
188 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_FRAMEDISPLAY=0
191 ifeq ($(MAKE_BUILTIN_GAUGE),yes)
192 CLASSES := $(CLASSES) gauge
193 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_GAUGE=1
195 EXTCLASSES := $(EXTCLASSES) gauge
196 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_GAUGE=0
199 ifeq ($(MAKE_BUILTIN_IMAGEADJUST),yes)
200 CLASSES := $(CLASSES) imageadjust
201 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_IMAGEADJUST=1
203 EXTCLASSES := $(EXTCLASSES) imageadjust
204 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_IMAGEADJUST=0
207 ifeq ($(MAKE_BUILTIN_IMAGEDISPLAY),yes)
208 CLASSES := $(CLASSES) imagedisplay
209 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_IMAGEDISPLAY=1
211 EXTCLASSES := $(EXTCLASSES) imagedisplay
212 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_IMAGEDISPLAY=0
215 ifeq ($(MAKE_BUILTIN_PENADJUST),yes)
216 CLASSES := $(CLASSES) penadjust
217 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_PENADJUST=1
219 EXTCLASSES := $(EXTCLASSES) penadjust
220 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_PENADJUST=0
223 ifeq ($(MAKE_BUILTIN_PENDISPLAY),yes)
224 CLASSES := $(CLASSES) pendisplay
225 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_PENDISPLAY=1
227 EXTCLASSES := $(EXTCLASSES) pendisplay
228 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_PENDISPLAY=0
231 ifeq ($(MAKE_BUILTIN_POPASL),yes)
232 CLASSES := $(CLASSES) popasl
233 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPASL=1
235 EXTCLASSES := $(EXTCLASSES) popasl
236 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPASL=0
239 ifeq ($(MAKE_BUILTIN_POPFRAME),yes)
240 CLASSES := $(CLASSES) popframe
241 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPFRAME=1
243 EXTCLASSES := $(EXTCLASSES) popframe
244 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPFRAME=0
247 ifeq ($(MAKE_BUILTIN_POPIMAGE),yes)
248 CLASSES := $(CLASSES) popimage
249 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPIMAGE=1
251 EXTCLASSES := $(EXTCLASSES) popimage
252 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPIMAGE=0
255 ifeq ($(MAKE_BUILTIN_POPPEN),yes)
256 CLASSES := $(CLASSES) poppen
257 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPPEN=1
259 EXTCLASSES := $(EXTCLASSES) poppen
260 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPPEN=0
263 ifeq ($(MAKE_BUILTIN_RADIO),yes)
264 CLASSES := $(CLASSES) radio
265 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_RADIO=1
267 EXTCLASSES := $(EXTCLASSES) radio
268 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_RADIO=0
271 ifeq ($(MAKE_BUILTIN_SCALE),yes)
272 CLASSES := $(CLASSES) scale
273 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_SCALE=1
275 EXTCLASSES := $(EXTCLASSES) scale
276 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_SCALE=0
279 ifeq ($(MAKE_BUILTIN_SCROLLGROUP),yes)
280 CLASSES := $(CLASSES) scrollgroup
281 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_SCROLLGROUP=1
283 EXTCLASSES := $(EXTCLASSES) scrollgroup
284 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_SCROLLGROUP=0
287 ifeq ($(MAKE_BUILTIN_SETTINGSGROUP),yes)
288 CLASSES := $(CLASSES) settingsgroup
289 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_SETTINGSGROUP=1
291 EXTCLASSES := $(EXTCLASSES) settingsgroup
292 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_SETTINGSGROUP=0
295 ifeq ($(MAKE_BUILTIN_VIRTGROUP),yes)
296 CLASSES := $(CLASSES) virtgroup
297 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_VIRTGROUP=1
299 EXTCLASSES := $(EXTCLASSES) virtgroup
300 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_VIRTGROUP=0
303 ifeq ($(MAKE_BUILTIN_VOLUMELIST),yes)
304 CLASSES := $(CLASSES) volumelist
305 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_VOLUMELIST=1
307 EXTCLASSES := $(EXTCLASSES) volumelist
308 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_VOLUMELIST=0
311 ifeq ($(MAKE_BUILTIN_DIRLIST),yes)
312 CLASSES := $(CLASSES) dirlist
313 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_DIRLIST=1
315 EXTCLASSES := $(EXTCLASSES) dirlist
316 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_DIRLIST=0
319 ifeq ($(MAKE_BUILTIN_NUMERICBUTTON),yes)
320 CLASSES := $(CLASSES) numericbutton
321 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_NUMERICBUTTON=1
323 EXTCLASSES := $(EXTCLASSES) numericbutton
324 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_NUMERICBUTTON=0
327 ifeq ($(MAKE_BUILTIN_POPLIST),yes)
328 CLASSES := $(CLASSES) poplist
329 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPLIST=1
331 EXTCLASSES := $(EXTCLASSES) poplist
332 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPLIST=0
335 ifeq ($(MAKE_BUILTIN_POPSCREEN),yes)
336 CLASSES := $(CLASSES) popscreen
337 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPSCREEN=1
339 EXTCLASSES := $(EXTCLASSES) popscreen
340 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_POPSCREEN=0
343 ifeq ($(MAKE_BUILTIN_CRAWLING),yes)
344 CLASSES := $(CLASSES) crawling
345 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_CRAWLING=1
347 EXTCLASSES := $(EXTCLASSES) crawling
348 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_CRAWLING=0
351 ifeq ($(MAKE_BUILTIN_LEVELMETER),yes)
352 CLASSES := $(CLASSES) levelmeter
353 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_LEVELMETER=1
355 EXTCLASSES := $(EXTCLASSES) levelmeter
356 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_LEVELMETER=0
359 ifeq ($(MAKE_BUILTIN_KNOB),yes)
360 CLASSES := $(CLASSES) knob
361 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_KNOB=1
363 EXTCLASSES := $(EXTCLASSES) knob
364 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_KNOB=0
367 ifeq ($(MAKE_BUILTIN_DTPIC),yes)
368 CLASSES := $(CLASSES) dtpic
369 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_DTPIC=1
371 EXTCLASSES := $(EXTCLASSES) dtpic
372 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_DTPIC=0
375 ifeq ($(MAKE_BUILTIN_PALETTE),yes)
376 CLASSES := $(CLASSES) palette
377 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_PALETTE=1
379 EXTCLASSES := $(EXTCLASSES) palette
380 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_PALETTE=0
383 ifeq ($(MAKE_BUILTIN_TITLE),yes)
384 CLASSES := $(CLASSES) title
385 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_TITLE=1
387 EXTCLASSES := $(EXTCLASSES) title
388 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_TITLE=0
391 ifeq ($(MAKE_BUILTIN_PROCESS),yes)
392 CLASSES := $(CLASSES) process
393 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_PROCESS=1
395 EXTCLASSES := $(EXTCLASSES) process
396 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_PROCESS=0
399 ifeq ($(MAKE_BUILTIN_PIXMAP),yes)
400 CLASSES := $(CLASSES) pixmap
401 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_PIXMAP=1
403 EXTCLASSES := $(EXTCLASSES) pixmap
404 USER_CPPFLAGS := $(USER_CPPFLAGS) -DZUNE_BUILTIN_PIXMAP=0
407 CLASSFILES := $(foreach f, $(CLASSES), classes/$(f))
408 CLASSINCLUDES := $(foreach f, $(CLASSES), $(SRCDIR)/$(CURDIR)/classes/$(f).h) \
409 $(foreach f, $(EXTCLASSES), $(SRCDIR)/$(CURDIR)/classes/$(f).h)
410 FILES := $(FILES) $(CLASSFILES)
412 #MM workbench-libs-muimaster : includes linklibs workbench-libs-coolimages external-bz2
414 %build_module mmake=workbench-libs-muimaster \
415 modname=muimaster modtype=library \
416 files="muimaster_init-aros $(FUNCS) $(FILES)" \
417 uselibs="coolimages stdc"
419 BUILDINCTOOL := $(GENDIR)/$(CURDIR)/buildincludes
420 INCLUDEFILES := $(AROS_INCLUDES)/libraries/mui.h $(GENINCDIR)/libraries/mui.h
422 #MM- includes-generate-deps : includes-libraries-mui
423 #MM- core-linklibs : linklibs-muimaster
426 includes-libraries-mui : includes-mui-setup $(INCLUDEFILES)
429 includes-mui-setup : $(GENINCDIR)/libraries $(AROS_INCLUDES)/libraries
431 %copy_includes includes=customclasses.h path=zune
433 $(GENINCDIR)/libraries $(AROS_INCLUDES)/libraries :
436 $(AROS_INCLUDES)/libraries/mui.h : $(GENINCDIR)/libraries/mui.h
437 @$(ECHO) "Copying $< to $@"
440 $(GENINCDIR)/libraries/mui.h : $(BUILDINCTOOL) mui.h macros.h $(CLASSINCLUDES)
441 @$(ECHO) Rebuilding $@
442 @cd $(SRCDIR)/$(CURDIR); $(BUILDINCTOOL) > $@
444 $(BUILDINCTOOL) : buildincludes.c
445 %mkdirs_q $(dir $(BUILDINCTOOL))
446 @$(HOST_CC) $(HOST_CFLAGS) $< -o $@