summaryrefslogtreecommitdiff
path: root/quantum.mk
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2015-10-26 14:49:46 -0400
committerJack Humbert <jack.humb@gmail.com>2015-10-26 14:49:46 -0400
commit46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 (patch)
treef0b00f664ecdaf83e30f27baf20780eb5d91c39a /quantum.mk
parentff8d8a50dfbb8502003a5181878c54a71b8c57d5 (diff)
quantum separated
Diffstat (limited to 'quantum.mk')
-rw-r--r--quantum.mk69
1 files changed, 69 insertions, 0 deletions
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
+