]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum.mk
c760dbdb5d2d111528f3aae98ae09056820fe303
[qmk_firmware.git] / quantum.mk
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
41 QUANTUM_DIR = quantum
42
43 # # project specific files
44 SRC += $(QUANTUM_DIR)/keymap_common.c \
45         $(QUANTUM_DIR)/led.c 
46
47 ifndef CUSTOM_MATRIX
48         SRC += $(QUANTUM_DIR)/matrix.c
49 endif
50
51 ifdef MIDI_ENABLE
52         SRC += $(QUANTUM_DIR)/keymap_midi.c \
53                    $(QUANTUM_DIR)/beeps.c
54 endif
55
56 ifdef UNICODE_ENABLE
57         SRC += $(QUANTUM_DIR)/keymap_unicode.c
58 endif
59
60 # Optimize size but this may cause error "relocation truncated to fit"
61 #EXTRALDFLAGS = -Wl,--relax
62
63 # Search Path
64 VPATH += $(TOP_DIR)/$(QUANTUM_DIR)
65
66 include $(TOP_DIR)/protocol/lufa.mk
67
68 include $(TOP_DIR)/common.mk
69 include $(TOP_DIR)/rules.mk
70