Add -Wall -Werror and catch sigint (pc only)

This commit is contained in:
Emanuele Cesena
2018-10-24 21:09:04 -07:00
parent fb93891685
commit f9757c0a08
5 changed files with 22 additions and 7 deletions

View File

@@ -17,7 +17,8 @@ obj = $(src:.c=.o) uECC.o
LIBCBOR = tinycbor/lib/libtinycbor.a
LDFLAGS = -Wl,--gc-sections $(LIBCBOR)
CFLAGS = -O2 -fdata-sections -ffunction-sections
CFLAGS = -O2 -fdata-sections -ffunction-sections
CFLAGS += -Wall -Werror
INCLUDES = -I./tinycbor/src -I./crypto/sha256 -I./crypto/micro-ecc/ -Icrypto/tiny-AES-c/ -I./fido2/ -I./pc -I./fido2/extensions