makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #SRC += helper.c
  13. # -----------------------------------------------------------------------------
  14. ifeq ($(CRYPTO_OPTIONS),)
  15. CRYPTO_OPTIONS = AES128C
  16. endif
  17. #Add simpleserial project to build
  18. include deps/Makefile.simpleserial
  19. FIRMWAREPATH = deps/
  20. include $(FIRMWAREPATH)/Makefile.inc
  21. helper:
  22. 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 -DHAL_TYPE=HAL_stm32f3 -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 -DARM=1 -O0 -funsigned-char -funsigned-bitfields -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=objdir-CWLITEARM/helper.lst -Ideps//simpleserial/ -Ideps//hal -Ideps//hal/stm32f3 -Ideps//hal/stm32f3/CMSIS -Ideps//hal/stm32f3/CMSIS/core -Ideps//hal/stm32f3/CMSIS/device -Ideps//hal/stm32f4/Legacy -std=gnu99 -MMD -MP -MF .dep/helper.o.d helper.c -o ./helper.o
  23. test:
  24. gcc test.c -o tb
  25. local:
  26. gcc speck3264.c -o speck
  27. run:
  28. qemu-arm -g 1234 ./simple-speck-CWLITEARM.elf
  29. dbg:
  30. arm-none-eabi-gdb --eval-command "target remote localhost:1234" ./simple-speck-CWLITEARM.elf