From 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Mon, 26 Oct 2015 14:49:46 -0400 Subject: quantum separated --- quantum.mk | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 quantum.mk (limited to 'quantum.mk') diff --git a/quantum.mk b/quantum.mk new file mode 100644 index 0000000000..1637284047 --- /dev/null +++ b/quantum.mk @@ -0,0 +1,69 @@ +#---------------------------------------------------------------------------- +# On command line: +# +# make all = Make software. +# +# make clean = Clean out built project files. +# +# make coff = Convert ELF to AVR COFF. +# +# make extcoff = Convert ELF to AVR Extended COFF. +# +# make program = Download the hex file to the device. +# Please customize your programmer settings(PROGRAM_CMD) +# +# make teensy = Download the hex file to the device, using teensy_loader_cli. +# (must have teensy_loader_cli installed). +# +# make dfu = Download the hex file to the device, using dfu-programmer (must +# have dfu-programmer installed). +# +# make flip = Download the hex file to the device, using Atmel FLIP (must +# have Atmel FLIP installed). +# +# make dfu-ee = Download the eeprom file to the device, using dfu-programmer +# (must have dfu-programmer installed). +# +# make flip-ee = Download the eeprom file to the device, using Atmel FLIP +# (must have Atmel FLIP installed). +# +# make debug = Start either simulavr or avarice as specified for debugging, +# with avr-gdb or avr-insight as the front end for debugging. +# +# make filename.s = Just compile filename.c into the assembler code only. +# +# make filename.i = Create a preprocessed source file for use in submitting +# bug reports to the GCC project. +# +# To rebuild project do "make clean" then "make all". +#---------------------------------------------------------------------------- + +QUANTUM_DIR = $(TOP_DIR)/quantum + +# # project specific files +SRC += $(QUANTUM_DIR)/keymap_common.c \ + $(QUANTUM_DIR)/matrix.c \ + $(QUANTUM_DIR)/led.c + +ifdef MIDI_ENABLE + SRC += $(QUANTUM_DIR)/keymap_midi.c \ + $(QUANTUM_DIR)/beeps.c +endif + +ifdef UNICODE_ENABLE + SRC += $(QUANTUM_DIR)/keymap_unicode.c +endif + +# Optimize size but this may cause error "relocation truncated to fit" +#EXTRALDFLAGS = -Wl,--relax + +# Search Path +VPATH += $(TARGET_DIR) +VPATH += $(TOP_DIR) +VPATH += $(QUANTUM_DIR) + +include $(TOP_DIR)/protocol/lufa.mk + +include $(TOP_DIR)/common.mk +include $(TOP_DIR)/rules.mk + -- cgit v1.2.3