1
0

Makefile 820 B

123456789101112131415161718192021222324252627
  1. PROGRAM = wolfcrypt
  2. WOLFSSL_SRC_DIR = ../..
  3. TI_COMPILER_PATH = /opt/ti/msp430-gcc/bin
  4. WOLFSSL_CFLAGS += -I$(WOLFSSL_SRC_DIR) -I. -DWOLFSSL_USER_SETTINGS
  5. SRC_FILES = $(wildcard $(WOLFSSL_SRC_DIR)/src/*.c)
  6. SRC_FILES += $(wildcard $(WOLFSSL_SRC_DIR)/wolfcrypt/src/*.c)
  7. SRC_FILES := $(filter-out %bio.c %misc.c %evp.c, $(SRC_FILES))
  8. SRC = main.c \
  9. $(SRC_FILES)
  10. CFLAGS += $(WOLFSSL_CFLAGS) -O3 -mmcu=msp430f5659 -I/opt/ti/msp430-gcc/include -L/opt/ti/msp430-gcc/include -mlarge -mcode-region=either -fdata-sections -ffunction-sections -Wl,--gc-sections
  11. CC = $(TI_COMPILER_PATH)/msp430-elf-gcc
  12. STRIP = $(TI_COMPILER_PATH)/msp430-elf-strip
  13. $(PROGRAM): $(SRC)
  14. $(CC) $(CFLAGS) $(SRC) $(LDFLAGS) $(LDLIBS) -o $@
  15. $(STRIP) $@
  16. clean:
  17. rm -f $(PROGRAM)
  18. install:
  19. mspdebug tilib "prog $(PROGRAM)" --allow-fw-update