aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorGareth McMullin2015-03-15 20:36:58 -0700
committerGareth McMullin2015-03-15 20:39:19 -0700
commitf5f87bf70f968d9aea2eee31e8003a6304041480 (patch)
treeacc8c55f6211460ca1215fca09ded55a9545fa43 /src/Makefile
parentc3f798438a65b284adec281e7ddb4e8268ff4f4b (diff)
Build for stlink with -Os.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 80e86fe..02b5690 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -9,8 +9,10 @@ endif
BUILDDATE := `date +"%Y%m%d"`
-CFLAGS += -Wall -Wextra -Wno-char-subscripts\
- -O2 -std=gnu99 -g3 -DBUILDDATE=\"$(BUILDDATE)\"\
+OPT_FLAGS ?= -O2
+
+CFLAGS += -Wall -Wextra -Werror -Wno-char-subscripts\
+ $(OPT_FLAGS) -std=gnu99 -g3 -DBUILDDATE=\"$(BUILDDATE)\"\
-I. -Iinclude -Iplatforms/common -I$(PLATFORM_DIR) \
-DVERSION_SUFFIX=\"`../scripts/setlocalversion`\" -MD