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