Makefile 830 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Project name
  2. NAME := example
  3. # Project source files
  4. SRCS := main.c
  5. GEN_SRCS :=
  6. # Bootloader source files
  7. BOOT_SRCS :=
  8. BOOT_GEN_SRCS :=
  9. BOOT_OFFSET := 0x7000
  10. # CPU speed, in Hz
  11. F_CPU := 16000000UL
  12. # Project fuse bits
  13. LFUSE := 0xA0
  14. HFUSE := 0xD8
  15. EFUSE :=
  16. # Architecture configuration
  17. GCC_ARCH := atmega32
  18. AVRDUDE_ARCH := m32
  19. FUNC_STACK_LIMIT := 32
  20. # Programmer selection.
  21. PROGRAMMER := avrisp2
  22. #PROGRAMMER := usbasp
  23. #PROGRAMMER := usbasp-clone
  24. #PROGRAMMER := avr910
  25. #PROGRAMMER := mysmartusb
  26. PROGPORT :=
  27. # Instrumentation
  28. INSTRUMENT_FUNC :=
  29. BOOT_INSTRUMENT_FUNC :=
  30. # Additional compiler flags
  31. CFLAGS :=
  32. LDFLAGS :=
  33. SPARSEFLAGS :=
  34. BOOT_CFLAGS :=
  35. BOOT_LDFLAGS :=
  36. BOOT_SPARSEFLAGS :=
  37. # Additional "clean" and "distclean" target files
  38. CLEAN_FILES :=
  39. DISTCLEAN_FILES :=
  40. include avrmakelib.mk