quantum.mk 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #----------------------------------------------------------------------------
  2. # On command line:
  3. #
  4. # make all = Make software.
  5. #
  6. # make clean = Clean out built project files.
  7. #
  8. # make coff = Convert ELF to AVR COFF.
  9. #
  10. # make extcoff = Convert ELF to AVR Extended COFF.
  11. #
  12. # make program = Download the hex file to the device.
  13. # Please customize your programmer settings(PROGRAM_CMD)
  14. #
  15. # make teensy = Download the hex file to the device, using teensy_loader_cli.
  16. # (must have teensy_loader_cli installed).
  17. #
  18. # make dfu = Download the hex file to the device, using dfu-programmer (must
  19. # have dfu-programmer installed).
  20. #
  21. # make flip = Download the hex file to the device, using Atmel FLIP (must
  22. # have Atmel FLIP installed).
  23. #
  24. # make dfu-ee = Download the eeprom file to the device, using dfu-programmer
  25. # (must have dfu-programmer installed).
  26. #
  27. # make flip-ee = Download the eeprom file to the device, using Atmel FLIP
  28. # (must have Atmel FLIP installed).
  29. #
  30. # make debug = Start either simulavr or avarice as specified for debugging,
  31. # with avr-gdb or avr-insight as the front end for debugging.
  32. #
  33. # make filename.s = Just compile filename.c into the assembler code only.
  34. #
  35. # make filename.i = Create a preprocessed source file for use in submitting
  36. # bug reports to the GCC project.
  37. #
  38. # To rebuild project do "make clean" then "make all".
  39. #----------------------------------------------------------------------------
  40. QUANTUM_DIR = $(TOP_DIR)/quantum
  41. # # project specific files
  42. SRC += $(QUANTUM_DIR)/keymap_common.c \
  43. $(QUANTUM_DIR)/matrix.c \
  44. $(QUANTUM_DIR)/led.c
  45. ifdef MIDI_ENABLE
  46. SRC += $(QUANTUM_DIR)/keymap_midi.c \
  47. $(QUANTUM_DIR)/beeps.c
  48. endif
  49. ifdef UNICODE_ENABLE
  50. SRC += $(QUANTUM_DIR)/keymap_unicode.c
  51. endif
  52. # Optimize size but this may cause error "relocation truncated to fit"
  53. #EXTRALDFLAGS = -Wl,--relax
  54. # Search Path
  55. VPATH += $(TARGET_DIR)
  56. VPATH += $(TOP_DIR)
  57. VPATH += $(QUANTUM_DIR)
  58. include $(TOP_DIR)/protocol/lufa.mk
  59. include $(TOP_DIR)/common.mk
  60. include $(TOP_DIR)/rules.mk