mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
The aggressive loop optimization option can be disabled/enabled as needed through a variable.
This commit is contained in:
@@ -97,7 +97,11 @@ include libm.gmk
|
|||||||
include libnet.gmk
|
include libnet.gmk
|
||||||
include libdebug.gmk
|
include libdebug.gmk
|
||||||
include libamiga.gmk
|
include libamiga.gmk
|
||||||
include libprofile.gmk
|
|
||||||
|
# Olaf (2019-08-22): Please note that "profile_profil.o" can no longer
|
||||||
|
# be built, presumably for lack of header files needed
|
||||||
|
# to build it properly.
|
||||||
|
#include libprofile.gmk
|
||||||
|
|
||||||
all-targets: \
|
all-targets: \
|
||||||
lib/crt0.o \
|
lib/crt0.o \
|
||||||
@@ -164,7 +168,9 @@ cvs-tag:
|
|||||||
|
|
||||||
# General build rules for all object files and the individual libraries
|
# General build rules for all object files and the individual libraries
|
||||||
|
|
||||||
lib/crtbegin.o : CFLAGS += -fno-aggressive-loop-optimizations
|
#NO_AGGRESSIVE_LOOP_OPTIMIZATIONS := -fno-aggressive-loop-optimizations
|
||||||
|
|
||||||
|
lib/crtbegin.o : CFLAGS += $(NO_AGGRESSIVE_LOOP_OPTIMIZATIONS)
|
||||||
lib/crtbegin.o : crtbegin.c
|
lib/crtbegin.o : crtbegin.c
|
||||||
@$(COMPILE)
|
@$(COMPILE)
|
||||||
|
|
||||||
@@ -179,7 +185,7 @@ lib/small-data/%.o : AFLAGS += $(SMALLDATA)
|
|||||||
lib/small-data/%.o : %.S
|
lib/small-data/%.o : %.S
|
||||||
@$(ASSEMBLE)
|
@$(ASSEMBLE)
|
||||||
|
|
||||||
lib/small-data/crtbegin.o : CFLAGS += $(SMALLDATA) -fno-aggressive-loop-optimizations
|
lib/small-data/crtbegin.o : CFLAGS += $(SMALLDATA) $(NO_AGGRESSIVE_LOOP_OPTIMIZATIONS)
|
||||||
lib/small-data/crtbegin.o : crtbegin.c
|
lib/small-data/crtbegin.o : crtbegin.c
|
||||||
@$(COMPILE)
|
@$(COMPILE)
|
||||||
|
|
||||||
@@ -191,7 +197,7 @@ lib/soft-float/%.o : AFLAGS += $(SOFTFLOAT)
|
|||||||
lib/soft-float/%.o : %.S
|
lib/soft-float/%.o : %.S
|
||||||
@$(ASSEMBLE)
|
@$(ASSEMBLE)
|
||||||
|
|
||||||
lib/soft-float/crtbegin.o : CFLAGS += $(SOFTFLOAT) -fno-aggressive-loop-optimizations
|
lib/soft-float/crtbegin.o : CFLAGS += $(SOFTFLOAT) $(NO_AGGRESSIVE_LOOP_OPTIMIZATIONS)
|
||||||
lib/soft-float/crtbegin.o : crtbegin.c
|
lib/soft-float/crtbegin.o : crtbegin.c
|
||||||
@$(COMPILE)
|
@$(COMPILE)
|
||||||
|
|
||||||
@@ -203,7 +209,7 @@ lib/baserel/%.o : AFLAGS += $(BASEREL)
|
|||||||
lib/baserel/%.o : %.S
|
lib/baserel/%.o : %.S
|
||||||
@$(ASSEMBLE)
|
@$(ASSEMBLE)
|
||||||
|
|
||||||
lib/baserel/crtbegin.o : CFLAGS += $(BASEREL) -fno-aggressive-loop-optimizations
|
lib/baserel/crtbegin.o : CFLAGS += $(BASEREL) $(NO_AGGRESSIVE_LOOP_OPTIMIZATIONS)
|
||||||
lib/baserel/crtbegin.o : crtbegin.c
|
lib/baserel/crtbegin.o : crtbegin.c
|
||||||
@$(COMPILE)
|
@$(COMPILE)
|
||||||
|
|
||||||
@@ -215,7 +221,7 @@ lib.threadsafe/%.o : AFLAGS += $(LARGEDATA) $(THREADSAFE)
|
|||||||
lib.threadsafe/%.o : %.S
|
lib.threadsafe/%.o : %.S
|
||||||
@$(ASSEMBLE)
|
@$(ASSEMBLE)
|
||||||
|
|
||||||
lib.threadsafe/crtbegin.o : CFLAGS += $(THREADSAFE) $(LARGEDATA) -fno-aggressive-loop-optimizations
|
lib.threadsafe/crtbegin.o : CFLAGS += $(THREADSAFE) $(LARGEDATA) $(NO_AGGRESSIVE_LOOP_OPTIMIZATIONS)
|
||||||
lib.threadsafe/crtbegin.o : crtbegin.c
|
lib.threadsafe/crtbegin.o : crtbegin.c
|
||||||
@$(COMPILE)
|
@$(COMPILE)
|
||||||
|
|
||||||
@@ -227,7 +233,7 @@ lib.threadsafe/small-data/%.o : AFLAGS += $(SMALLDATA) $(THREADSAFE)
|
|||||||
lib.threadsafe/small-data/%.o : %.S
|
lib.threadsafe/small-data/%.o : %.S
|
||||||
@$(ASSEMBLE)
|
@$(ASSEMBLE)
|
||||||
|
|
||||||
lib.threadsafe/small-data/crtbegin.o : CFLAGS += $(THREADSAFE) $(SMALLDATA) -fno-aggressive-loop-optimizations
|
lib.threadsafe/small-data/crtbegin.o : CFLAGS += $(THREADSAFE) $(SMALLDATA) $(NO_AGGRESSIVE_LOOP_OPTIMIZATIONS)
|
||||||
lib.threadsafe/small-data/crtbegin.o : crtbegin.c
|
lib.threadsafe/small-data/crtbegin.o : crtbegin.c
|
||||||
@$(COMPILE)
|
@$(COMPILE)
|
||||||
|
|
||||||
@@ -239,7 +245,7 @@ lib.threadsafe/soft-float/%.o : AFLAGS += $(SOFTFLOAT) $(THREADSAFE)
|
|||||||
lib.threadsafe/soft-float/%.o : %.S
|
lib.threadsafe/soft-float/%.o : %.S
|
||||||
@$(ASSEMBLE)
|
@$(ASSEMBLE)
|
||||||
|
|
||||||
lib.threadsafe/soft-float/crtbegin.o : CFLAGS += $(THREADSAFE) $(SOFTFLOAT) -fno-aggressive-loop-optimizations
|
lib.threadsafe/soft-float/crtbegin.o : CFLAGS += $(THREADSAFE) $(SOFTFLOAT) $(NO_AGGRESSIVE_LOOP_OPTIMIZATIONS)
|
||||||
lib.threadsafe/soft-float/crtbegin.o : crtbegin.c
|
lib.threadsafe/soft-float/crtbegin.o : crtbegin.c
|
||||||
@$(COMPILE)
|
@$(COMPILE)
|
||||||
|
|
||||||
@@ -251,7 +257,7 @@ lib.threadsafe/baserel/%.o : AFLAGS += $(BASEREL) $(THREADSAFE)
|
|||||||
lib.threadsafe/baserel/%.o : %.S
|
lib.threadsafe/baserel/%.o : %.S
|
||||||
@$(ASSEMBLE)
|
@$(ASSEMBLE)
|
||||||
|
|
||||||
lib.threadsafe/baserel/crtbegin.o : CFLAGS += $(THREADSAFE) $(BASEREL) -fno-aggressive-loop-optimizations
|
lib.threadsafe/baserel/crtbegin.o : CFLAGS += $(THREADSAFE) $(BASEREL) $(NO_AGGRESSIVE_LOOP_OPTIMIZATIONS)
|
||||||
lib.threadsafe/baserel/crtbegin.o : crtbegin.c
|
lib.threadsafe/baserel/crtbegin.o : crtbegin.c
|
||||||
@$(COMPILE)
|
@$(COMPILE)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user