3 include $(SRCDIR)/config/aros.cfg
5 CLASSES := buttonclass textclass sliderclass arrowclass scrollerclass \
6 stringclass listviewclass checkboxclass cycleclass mxclass \
9 FILES := basicfuncs gadgets menus $(CLASSES)
10 FUNCS := createcontext \
30 #MM workbench-libs-gadtools-includes : \
31 #MM kernel-exec-includes \
32 #MM kernel-dos-includes \
33 #MM kernel-utility-includes \
34 #MM kernel-graphics-includes \
35 #MM kernel-intuition-includes \
36 #MM kernel-layers-includes \
38 #MM- workbench-libs-gadtools : linklibs
39 #MM- core-linklibs : linklibs-gadtools
41 USER_CFLAGS := -D__NOLIBBASE__
42 USER_LDFLAGS := -static
44 %build_module mmake=workbench-libs-gadtools \
45 modname=gadtools modtype=library \
46 files="gadtools_init $(FUNCS) $(FILES)"
48 # (bernie) this hack disables optimization on classes.c to fix a problem in the
49 # current Amiga version of gcc and egcs. Using inline asm macros to perform
50 # shared library calls sometimes leads the optimizer to a dead-end situation
51 # where one of the registers involved in the inline asm macro gets spilled on
54 # stegerg: classes.c file was split into one c file per class. sorry :(
57 #$(OBJDIR)/classes.o : classes.c
58 # %compile_q opt="$(filter-out -O%,$(CFLAGS)) -O0"