makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. #----------------------------------------------------------------------------
  2. # Target file name (without extension).
  3. # This is the name of the compiled .hex file.
  4. TARGET = simple-speck
  5. # Set platform and target
  6. PLATFORM=CWLITEARM
  7. CRYPTO_TARGET=NONE
  8. # List C source files here.
  9. # Header files (.h) are automatically pulled in.
  10. SRC += simple-speck.c
  11. SRC += speck3264.c
  12. # -----------------------------------------------------------------------------
  13. ifeq ($(CRYPTO_OPTIONS),)
  14. CRYPTO_OPTIONS = AES128C
  15. endif
  16. #Add simpleserial project to build
  17. include deps/Makefile.simpleserial
  18. FIRMWAREPATH = deps/
  19. include $(FIRMWAREPATH)/Makefile.inc
  20. local:
  21. gcc speck3264.c -o speck
  22. local_arm:
  23. arm-none-eabi-gcc -c -mcpu=cortex-m4 -I. -mthumb -mfloat-abi=soft -fmessage-length=0 -ffunction-sections -gdwarf-2 -DSS_VER=SS_VER_1_1 -DSTM32F303xC -DSTM32F3 -DSTM32 -DDEBUG -DPLATFORM=CWLITEARM -DF_CPU=7372800UL -DSS_VER_2_0=2 -DSS_VER_2_1=3 -DSS_VER_1_1=1 -DSS_VER_1_0=0 -Os -funsigned-char -funsigned-bitfields -fshort-enums -Wall -Wstrict-prototypes -std=gnu99 -MMD -MP speck3264.c -o speck.arm