add initial weak definitions

This commit is contained in:
Conor Patrick
2019-11-19 15:22:48 -05:00
parent 85365c635d
commit dcd256faf4
6 changed files with 100 additions and 108 deletions

View File

@@ -9,7 +9,7 @@
ecc_platform=2
src = pc/device.c # pc/main.c
src = pc/device.c pc/main.c
obj = $(src:.c=.o)
@@ -21,20 +21,20 @@ ifeq ($(shell uname -s),Darwin)
else
export LDFLAGS = -Wl,--gc-sections
endif
LDFLAGS += $(LIBCBOR) $(LIBSOLO)
LDFLAGS += $(LIBSOLO) $(LIBCBOR)
CFLAGS = -O2 -fdata-sections -ffunction-sections -g
ECC_CFLAGS = -O2 -fdata-sections -ffunction-sections -DuECC_PLATFORM=$(ecc_platform)
INCLUDES = -I./fido2/ -I./pc -I../pc -I./tinycbor/src
INCLUDES = -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src
CFLAGS += $(INCLUDES)
CFLAGS += -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1
name = main
.PHONY: all $(LIBCBOR) black blackcheck cppcheck wink fido2-test clean full-clean travis test clean version
.PHONY: all $(LIBCBOR) $(LIBSOLO) black blackcheck cppcheck wink fido2-test clean full-clean travis test clean version
all: main
tinycbor/Makefile crypto/tiny-AES-c/aes.c: