summaryrefslogtreecommitdiff
path: root/src/Makefile.defs
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2019-02-21 21:57:26 -0700
committerBdale Garbee <bdale@gag.com>2019-02-21 21:57:26 -0700
commit654a23168f59d04d7e9cad657bebf8ecfdd8e41e (patch)
treed225043ff53f9ac7759a6cd8e3cb759d1e6451a7 /src/Makefile.defs
parentd0f6691804ee8de633601483354c93f1c2d75219 (diff)
parent655c5d2c1124182ba336db368474cf4de0b9ce9d (diff)
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'src/Makefile.defs')
-rw-r--r--src/Makefile.defs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile.defs b/src/Makefile.defs
index 6df0c3fe..d52cc706 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -20,10 +20,12 @@ WARN_FLAGS=-Wall -Wextra -Werror -Wcast-align \
OPT=-Os
+NEWLIB_PRINTF_CFLAGS = -DNEWLIB_INTEGER_PRINTF_SCANF
+
NEWLIB_CFLAGS= \
-ffreestanding -nostdlib \
- -DNEWLIB_INTEGER_PRINTF_SCANF \
- -isystem $(NEWLIB_NANO)/arm-none-eabi/include
+ -isystem $(NEWLIB_NANO)/arm-none-eabi/include \
+ $(NEWLIB_PRINTF_CFLAGS)
AO_CFLAGS=\
-std=gnu99 \