3 include $(TOP)/config/make.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
105 mui_allocaslrequest \
108 mui_createcustomclass \
109 mui_deletecustomclass \
124 mui_removeclipregion \
129 USER_CFLAGS := -DHAVE_COOLIMAGES
132 ifeq ($(MAKE_BUILTIN_ABOUTMUI),yes)
133 CLASSES := $(CLASSES) aboutmui
134 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_ABOUTMUI=1
136 EXTCLASSES := $(EXTCLASSES) aboutmui
137 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_ABOUTMUI=0
140 ifeq ($(MAKE_BUILTIN_BOOPSI),yes)
141 CLASSES := $(CLASSES) boopsi
142 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_BOOPSI=1
144 EXTCLASSES := $(EXTCLASSES) boopsi
145 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_BOOPSI=0
148 ifeq ($(MAKE_BUILTIN_BALANCE),yes)
149 CLASSES := $(CLASSES) balance
150 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_BALANCE=1
152 EXTCLASSES := $(EXTCLASSES) balance
153 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_BALANCE=0
156 ifeq ($(MAKE_BUILTIN_COLORADJUST),yes)
157 CLASSES := $(CLASSES) coloradjust
158 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_COLORADJUST=1
160 EXTCLASSES := $(EXTCLASSES) coloradjust
161 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_COLORADJUST=0
164 ifeq ($(MAKE_BUILTIN_COLORFIELD),yes)
165 CLASSES := $(CLASSES) colorfield
166 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_COLORFIELD=1
168 EXTCLASSES := $(EXTCLASSES) colorfield
169 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_COLORFIELD=0
172 ifeq ($(MAKE_BUILTIN_FRAMEADJUST),yes)
173 CLASSES := $(CLASSES) frameadjust
174 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_FRAMEADJUST=1
176 EXTCLASSES := $(EXTCLASSES) frameadjust
177 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_FRAMEADJUST=0
180 ifeq ($(MAKE_BUILTIN_FRAMEDISPLAY),yes)
181 CLASSES := $(CLASSES) framedisplay
182 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_FRAMEDISPLAY=1
184 EXTCLASSES := $(EXTCLASSES) framedisplay
185 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_FRAMEDISPLAY=0
188 ifeq ($(MAKE_BUILTIN_GAUGE),yes)
189 CLASSES := $(CLASSES) gauge
190 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_GAUGE=1
192 EXTCLASSES := $(EXTCLASSES) gauge
193 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_GAUGE=0
196 ifeq ($(MAKE_BUILTIN_IMAGEADJUST),yes)
197 CLASSES := $(CLASSES) imageadjust
198 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_IMAGEADJUST=1
200 EXTCLASSES := $(EXTCLASSES) imageadjust
201 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_IMAGEADJUST=0
204 ifeq ($(MAKE_BUILTIN_IMAGEDISPLAY),yes)
205 CLASSES := $(CLASSES) imagedisplay
206 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_IMAGEDISPLAY=1
208 EXTCLASSES := $(EXTCLASSES) imagedisplay
209 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_IMAGEDISPLAY=0
212 ifeq ($(MAKE_BUILTIN_PENADJUST),yes)
213 CLASSES := $(CLASSES) penadjust
214 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_PENADJUST=1
216 EXTCLASSES := $(EXTCLASSES) penadjust
217 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_PENADJUST=0
220 ifeq ($(MAKE_BUILTIN_PENDISPLAY),yes)
221 CLASSES := $(CLASSES) pendisplay
222 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_PENDISPLAY=1
224 EXTCLASSES := $(EXTCLASSES) pendisplay
225 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_PENDISPLAY=0
228 ifeq ($(MAKE_BUILTIN_POPASL),yes)
229 CLASSES := $(CLASSES) popasl
230 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPASL=1
232 EXTCLASSES := $(EXTCLASSES) popasl
233 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPASL=0
236 ifeq ($(MAKE_BUILTIN_POPFRAME),yes)
237 CLASSES := $(CLASSES) popframe
238 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPFRAME=1
240 EXTCLASSES := $(EXTCLASSES) popframe
241 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPFRAME=0
244 ifeq ($(MAKE_BUILTIN_POPIMAGE),yes)
245 CLASSES := $(CLASSES) popimage
246 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPIMAGE=1
248 EXTCLASSES := $(EXTCLASSES) popimage
249 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPIMAGE=0
252 ifeq ($(MAKE_BUILTIN_POPPEN),yes)
253 CLASSES := $(CLASSES) poppen
254 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPPEN=1
256 EXTCLASSES := $(EXTCLASSES) poppen
257 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPPEN=0
260 ifeq ($(MAKE_BUILTIN_RADIO),yes)
261 CLASSES := $(CLASSES) radio
262 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_RADIO=1
264 EXTCLASSES := $(EXTCLASSES) radio
265 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_RADIO=0
268 ifeq ($(MAKE_BUILTIN_SCALE),yes)
269 CLASSES := $(CLASSES) scale
270 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_SCALE=1
272 EXTCLASSES := $(EXTCLASSES) scale
273 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_SCALE=0
276 ifeq ($(MAKE_BUILTIN_SCROLLGROUP),yes)
277 CLASSES := $(CLASSES) scrollgroup
278 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_SCROLLGROUP=1
280 EXTCLASSES := $(EXTCLASSES) scrollgroup
281 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_SCROLLGROUP=0
284 ifeq ($(MAKE_BUILTIN_SETTINGSGROUP),yes)
285 CLASSES := $(CLASSES) settingsgroup
286 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_SETTINGSGROUP=1
288 EXTCLASSES := $(EXTCLASSES) settingsgroup
289 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_SETTINGSGROUP=0
292 ifeq ($(MAKE_BUILTIN_VIRTGROUP),yes)
293 CLASSES := $(CLASSES) virtgroup
294 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_VIRTGROUP=1
296 EXTCLASSES := $(EXTCLASSES) virtgroup
297 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_VIRTGROUP=0
300 ifeq ($(MAKE_BUILTIN_VOLUMELIST),yes)
301 CLASSES := $(CLASSES) volumelist
302 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_VOLUMELIST=1
304 EXTCLASSES := $(EXTCLASSES) volumelist
305 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_VOLUMELIST=0
308 ifeq ($(MAKE_BUILTIN_DIRLIST),yes)
309 CLASSES := $(CLASSES) dirlist
310 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_DIRLIST=1
312 EXTCLASSES := $(EXTCLASSES) dirlist
313 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_DIRLIST=0
316 ifeq ($(MAKE_BUILTIN_NUMERICBUTTON),yes)
317 CLASSES := $(CLASSES) numericbutton
318 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_NUMERICBUTTON=1
320 EXTCLASSES := $(EXTCLASSES) numericbutton
321 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_NUMERICBUTTON=0
324 ifeq ($(MAKE_BUILTIN_POPLIST),yes)
325 CLASSES := $(CLASSES) poplist
326 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPLIST=1
328 EXTCLASSES := $(EXTCLASSES) poplist
329 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPLIST=0
332 ifeq ($(MAKE_BUILTIN_POPSCREEN),yes)
333 CLASSES := $(CLASSES) popscreen
334 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPSCREEN=1
336 EXTCLASSES := $(EXTCLASSES) popscreen
337 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_POPSCREEN=0
340 ifeq ($(MAKE_BUILTIN_CRAWLING),yes)
341 CLASSES := $(CLASSES) crawling
342 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_CRAWLING=1
344 EXTCLASSES := $(EXTCLASSES) crawling
345 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_CRAWLING=0
348 ifeq ($(MAKE_BUILTIN_LEVELMETER),yes)
349 CLASSES := $(CLASSES) levelmeter
350 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_LEVELMETER=1
352 EXTCLASSES := $(EXTCLASSES) levelmeter
353 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_LEVELMETER=0
356 ifeq ($(MAKE_BUILTIN_KNOB),yes)
357 CLASSES := $(CLASSES) knob
358 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_KNOB=1
360 EXTCLASSES := $(EXTCLASSES) knob
361 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_KNOB=0
364 ifeq ($(MAKE_BUILTIN_DTPIC),yes)
365 CLASSES := $(CLASSES) dtpic
366 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_DTPIC=1
368 EXTCLASSES := $(EXTCLASSES) dtpic
369 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_DTPIC=0
372 ifeq ($(MAKE_BUILTIN_PALETTE),yes)
373 CLASSES := $(CLASSES) palette
374 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_PALETTE=1
376 EXTCLASSES := $(EXTCLASSES) palette
377 USER_CFLAGS := $(USER_CFLAGS) -DZUNE_BUILTIN_PALETTE=0
380 CLASSFILES := $(foreach f, $(CLASSES), classes/$(f))
381 CLASSINCLUDES := $(foreach f, $(CLASSES), $(SRCDIR)/$(CURDIR)/classes/$(f).h) \
382 $(foreach f, $(EXTCLASSES), $(SRCDIR)/$(CURDIR)/classes/$(f).h)
383 FILES := $(FILES) $(CLASSFILES)
385 #MM- workbench-libs-muimaster : includes linklibs workbench-libs-coolimages
387 %build_module mmake=workbench-libs-muimaster \
388 modname=muimaster modtype=library \
389 files="muimaster_init-aros $(FUNCS) $(FILES)" \
390 uselibs="coolimages mui amiga rom m"
392 BUILDINCTOOL := $(GENDIR)/$(CURDIR)/buildincludes
393 INCLUDEFILES := $(AROS_INCLUDES)/libraries/mui.h $(GENINCDIR)/libraries/mui.h
395 #MM- includes-generate-deps : includes-libraries-mui
398 includes-libraries-mui : includes-mui-setup $(INCLUDEFILES)
401 includes-mui-setup : $(GENINCDIR)/libraries $(AROS_INCLUDES)/libraries
403 %copy_includes includes=customclasses.h path=zune
405 $(GENINCDIR)/libraries $(AROS_INCLUDES)/libraries :
408 $(AROS_INCLUDES)/libraries/mui.h : $(GENINCDIR)/libraries/mui.h
409 @$(ECHO) Copying $< to $@
412 $(GENINCDIR)/libraries/mui.h : $(BUILDINCTOOL) mui.h macros.h $(CLASSINCLUDES)
413 @$(ECHO) Rebuilding $@
414 @cd $(SRCDIR)/$(CURDIR); $(BUILDINCTOOL) > $@
416 $(BUILDINCTOOL) : buildincludes.c
417 %mkdirs_q $(dir $(BUILDINCTOOL))
418 @$(HOST_CC) $(HOST_CFLAGS) $< -o $@