revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / gadtools / mmakefile.src
blob2317e68c9af6b03efa2074dd26635a08d114069d
1 #   $Id$
3 include $(SRCDIR)/config/aros.cfg
5 CLASSES :=  buttonclass textclass sliderclass arrowclass scrollerclass \
6             stringclass listviewclass checkboxclass cycleclass mxclass \
7             paletteclass
8                    
9 FILES   :=  basicfuncs gadgets menus $(CLASSES)
10 FUNCS   :=  createcontext \
11             creategadgeta \
12             createmenusa \
13             drawbevelboxa \
14             freegadgets \
15             freemenus \
16             freevisualinfo \
17             getvisualinfoa \
18             gt_beginrefresh \
19             gt_endrefresh \
20             gt_filterimsg \
21             gt_getgadgetattrsa \
22             gt_getimsg \
23             gt_postfilterimsg \
24             gt_refreshwindow \
25             gt_replyimsg \
26             gt_setgadgetattrsa \
27             layoutmenuitemsa \
28             layoutmenusa
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 \
37 #MM     includes-copy
38 #MM- workbench-libs-gadtools : linklibs
39 #MM- core-linklibs : linklibs-gadtools
41 USER_CPPFLAGS := -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
52 # the frame.
54 # stegerg: classes.c file was split into one c file per class. sorry :(
56 #ifeq ($(ARCH),amiga)
57 #$(OBJDIR)/classes.o : classes.c
58 #       %compile_q opt="$(filter-out -O%,$(CFLAGS)) -O0"
59 #endif
61 %common