aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile
index d1dc7f9..3d879ef 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -7,18 +7,20 @@ MAKEFLAGS += --no-print-dir
Q := @
endif
-CFLAGS += -Wall -Wextra -Wno-char-subscripts\
- -O2 -std=gnu99 -g3 -MD \
+OPT_FLAGS ?= -O2
+
+CFLAGS += -Wall -Wextra -Werror -Wno-char-subscripts\
+ $(OPT_FLAGS) -std=gnu99 -g3 -MD \
-I. -Iinclude -Iplatforms/common -I$(PLATFORM_DIR) \
SRC = \
adiv5.c \
adiv5_jtagdp.c \
adiv5_swdp.c \
- arm7tdmi.c \
command.c \
cortexm.c \
crc32.c \
+ exception.c \
gdb_if.c \
gdb_main.c \
gdb_packet.c \
@@ -38,7 +40,6 @@ SRC = \
stm32f1.c \
stm32f4.c \
stm32l0.c \
- stm32l1.c \
swdptap.c \
target.c \