aboutsummaryrefslogtreecommitdiff
path: root/math/Dir.mk
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2019-09-11 15:59:00 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2019-10-08 17:32:08 +0100
commit0705df194da1ff12e10cdbd12d5e70a2c574707d (patch)
treee07458575657c1f29e88fb9797793f21108944fb /math/Dir.mk
parent1e0c802338af8efd3c1d46174fffbbdba3774629 (diff)
downloadarm-optimized-routines-0705df194da1ff12e10cdbd12d5e70a2c574707d.tar.gz
Support separate CFLAGS per subproject
Users may want different CFLAGS for math and string subprojects, expose a mechanism for this in config.mk.
Diffstat (limited to 'math/Dir.mk')
-rw-r--r--math/Dir.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/math/Dir.mk b/math/Dir.mk
index 131f82a..494d3f0 100644
--- a/math/Dir.mk
+++ b/math/Dir.mk
@@ -34,17 +34,19 @@ math-test-objs := $(math-test-base:$(srcdir)/%=build/%.o)
math-test-host-base := $(basename $(math-test-host-srcs))
math-test-host-objs := $(math-test-host-base:$(srcdir)/%=build/%.o)
-math-objs := \
+math-target-objs := \
$(math-lib-objs) \
$(math-test-objs) \
- $(math-test-host-objs) \
+
+math-objs := $(math-target-objs) $(math-test-host-objs)
all-math: $(math-libs) $(math-tools) $(math-includes)
TESTS = $(wildcard $(srcdir)/math/test/testcases/directed/*.tst)
RTESTS = $(wildcard $(srcdir)/math/test/testcases/random/*.tst)
-$(math-objs) $(math-objs:%.o=%.os): $(math-includes)
+$(math-target-objs) $(math-objs:%.o=%.os): $(math-includes)
+$(math-target-objs) $(math-objs:%.o=%.os): CFLAGS_ALL += $(math-cflags)
build/math/test/mathtest.o: CFLAGS_ALL += -fmath-errno
$(math-test-host-objs): CC = $(HOST_CC)
$(math-test-host-objs): CFLAGS_ALL = $(HOST_CFLAGS)