Corrected CDC class bootloader to fix a few bugs, changed address counter to store...
[pub/USBasp.git] / Bootloaders / CDC / makefile
index 5045cc6..f9924fe 100644 (file)
 # make program = Download the hex file to the device, using avrdude.\r
 #                Please customize the avrdude settings below first!\r
 #\r
-# make dfu = Download the hex file to the device, using dfu-programmer (must\r
-#            have dfu-programmer installed).\r
-#\r
-# make flip = Download the hex file to the device, using Atmel FLIP (must\r
-#             have Atmel FLIP installed).\r
-#\r
-# make dfu-ee = Download the eeprom file to the device, using dfu-programmer\r
-#               (must have dfu-programmer installed).\r
-#\r
-# make flip-ee = Download the eeprom file to the device, using Atmel FLIP\r
-#                (must have Atmel FLIP installed).\r
-#\r
 # make doxygen = Generate DoxyGen documentation for the project (must have\r
 #                DoxyGen installed)\r
 #\r
@@ -458,7 +446,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
 \r
 \r
 # Default target.\r
-all: begin gccversion sizebefore build checkhooks checklibmode sizeafter end\r
+all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end\r
 \r
 # Change the build target to build a HEX file or a library.\r
 build: elf hex eep lss sym\r
@@ -507,8 +495,8 @@ checkhooks: build
        @$(shell) (grep -s '^Event.*LUFA/.*\\.o' $(TARGET).map | \\r
                   cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \\r
                           echo "(None)"\r
-       @echo ----- End Unhooked LUFA Events -----\r
-       \r
+       @echo ------------------------------------\r
+\r
 checklibmode:\r
        @echo\r
        @echo ----------- Library Mode -----------\r
@@ -517,6 +505,12 @@ checklibmode:
                  || echo "No specific mode (both device and host mode allowable)."\r
        @echo ------------------------------------\r
 \r
+checkboard:\r
+       @echo\r
+       @echo ---------- Selected Board ----------\r
+       @echo Selected board model is $(BOARD).\r
+       @echo ------------------------------------\r
+       \r
 # Display compiler version information.\r
 gccversion : \r
        @$(CC) --version\r
@@ -527,26 +521,6 @@ gccversion :
 program: $(TARGET).hex $(TARGET).eep\r
        $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)\r
 \r
-flip: $(TARGET).hex\r
-       batchisp -hardware usb -device $(MCU) -operation erase f\r
-       batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program\r
-       batchisp -hardware usb -device $(MCU) -operation start reset 0\r
-\r
-dfu: $(TARGET).hex\r
-       dfu-programmer $(MCU) erase\r
-       dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex\r
-       dfu-programmer $(MCU) reset\r
-\r
-flip-ee: $(TARGET).hex $(TARGET).eep\r
-       copy $(TARGET).eep $(TARGET)eep.hex\r
-       batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase\r
-       batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program\r
-       batchisp -hardware usb -device $(MCU) -operation start reset 0\r
-\r
-dfu-ee: $(TARGET).hex $(TARGET).eep\r
-       dfu-programmer $(MCU) erase\r
-       dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep\r
-       dfu-programmer $(MCU) reset\r
 \r
 # Generate avr-gdb config/init file which does the following:\r
 #     define the reset signal, load the target file, connect to target, and set \r
@@ -686,10 +660,11 @@ clean: begin clean_list clean_binary end
 \r
 clean_binary:\r
        $(REMOVE) $(TARGET).hex\r
-\r
+       \r
 clean_list:\r
        @echo $(MSG_CLEANING)\r
        $(REMOVE) $(TARGET).eep\r
+       $(REMOVE) $(TARGET)eep.hex\r
        $(REMOVE) $(TARGET).cof\r
        $(REMOVE) $(TARGET).elf\r
        $(REMOVE) $(TARGET).map\r
@@ -707,7 +682,7 @@ doxygen:
        @echo Generating Project Documentation...\r
        @doxygen Doxygen.conf\r
        @echo Documentation Generation Complete.\r
-       \r
+\r
 clean_doxygen:\r
        rm -rf Documentation\r
 \r
@@ -720,8 +695,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
 \r
 \r
 # Listing of phony targets.\r
-.PHONY : all checkhooks checklibmode begin  \\r
-finish end sizebefore sizeafter gccversion  \\r
-build elf hex eep lss sym coff extcoff      \\r
-clean clean_list clean_binary program debug \\r
-gdb-config doxygen\r
+.PHONY : all checkhooks checklibmode checkboard   \\r
+begin finish end sizebefore sizeafter gccversion  \\r
+build elf hex eep lss sym coff extcoff clean      \\r
+clean_list clean_binary program debug gdb-config  \\r
+doxygen
\ No newline at end of file