Makefile 942 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Project name
  2. NAME := cnc-control.coproc
  3. # Project source files
  4. SRCS := main.c
  5. GEN_SRCS :=
  6. # Bootloader code
  7. BOOT_SRCS := bootloader.c
  8. BOOT_GEN_SRCS :=
  9. BOOT_OFFSET := 0x1800
  10. # CPU speed, in Hz
  11. F_CPU := 8000000UL
  12. # Project fuse bits
  13. LFUSE := 0xA4
  14. HFUSE := 0xD8
  15. EFUSE :=
  16. # Architecture configuration
  17. GCC_ARCH := atmega8
  18. AVRDUDE_ARCH := m8
  19. FUNC_STACK_LIMIT := 32
  20. # Programmer selection.
  21. # Values can be: avrisp2, mysmartusb
  22. PROGRAMMER := avrisp2
  23. # Instrumentation
  24. INSTRUMENT_FUNC :=
  25. BOOT_INSTRUMENT_FUNC :=
  26. # Additional compiler flags
  27. CFLAGS := -I..
  28. LDFLAGS :=
  29. SPARSEFLAGS :=
  30. BOOT_CFLAGS := -I..
  31. BOOT_LDFLAGS :=
  32. BOOT_SPARSEFLAGS :=
  33. # Additional "clean" and "distclean" target files
  34. CLEAN_FILES :=
  35. DISTCLEAN_FILES :=
  36. include ../avrmakelib.mk
  37. ADMIN_TOOL := ../../driver/admin.py
  38. boot-app: all
  39. $(ADMIN_TOOL) --enterboot
  40. $(ADMIN_TOOL) --flash-coproc $(HEX)
  41. $(ADMIN_TOOL) --exitboot
  42. .PHONY: boot-app