makefile 852 B

123456789101112131415161718192021222324252627282930313233343536
  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. test:
  21. gcc test.c -o test
  22. local:
  23. gcc speck3264.c -o speck
  24. run:
  25. qemu-arm -g 1234 ./simple-speck-CWLITEARM.elf
  26. dbg:
  27. arm-none-eabi-gdb --eval-command "target remote localhost:1234" ./simple-speck-CWLITEARM.elf