]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - rules.mk
Fix LUFA descriptor of Extra for Windows
[max/tmk_keyboard.git] / rules.mk
index 060f660c94aab66ff8de8905ceff823ed0060f35..e561eae631f03bc5da6db252bc8a31dfe5e94937 100644 (file)
--- a/rules.mk
+++ b/rules.mk
 #
 # make extcoff = Convert ELF to AVR Extended COFF.
 #
-# make program = Download the hex file to the device, using avrdude.
-#                Please customize the avrdude settings below first!
+# 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.
@@ -401,6 +416,10 @@ dfu: $(TARGET).hex
        dfu-programmer $(MCU) erase
        dfu-programmer $(MCU) flash $(TARGET).hex
        dfu-programmer $(MCU) reset
+       
+dfu-start:
+       dfu-programmer $(MCU) reset
+       dfu-programmer $(MCU) start
 
 flip-ee: $(TARGET).hex $(TARGET).eep
        $(COPY) $(TARGET).eep $(TARGET)eep.hex
@@ -567,6 +586,10 @@ clean_list :
        $(REMOVE) -r .dep
        $(REMOVE) -r $(OBJDIR)
 
+show_path:
+       @echo VPATH=$(VPATH)
+       @echo SRC=$(SRC)
+
 
 # Create object files directory
 $(shell mkdir $(OBJDIR) 2>/dev/null)
@@ -579,5 +602,5 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
 # Listing of phony targets.
 .PHONY : all begin finish end sizebefore sizeafter gccversion \
 build elf hex eep lss sym coff extcoff \
-clean clean_list program debug gdb-config
-
+clean clean_list debug gdb-config show_path \
+program teensy dfu flip dfu-ee flip-ee dfu-start