\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
@$(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
|| 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
# Program the device. \r
program: $(TARGET).hex $(TARGET).eep\r
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)\r
- \r
- \r
+\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
\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
$(REMOVE) $(TARGET).lss\r
$(REMOVE) $(SRC:%.c=$(OBJDIR)/%.o)\r
$(REMOVE) $(SRC:%.c=$(OBJDIR)/%.lst)\r
- $(REMOVE) $(ASRC:%.S=$(OBJDIR)/%.o)\r
- $(REMOVE) $(ASRC:%.S=$(OBJDIR)/%.lst)\r
$(REMOVE) $(SRC:.c=.s)\r
$(REMOVE) $(SRC:.c=.d)\r
$(REMOVE) $(SRC:.c=.i)\r
@echo Generating Project Documentation...\r
@doxygen Doxygen.conf\r
@echo Documentation Generation Complete.\r
- \r
+\r
clean_doxygen:\r
rm -rf Documentation\r
\r
\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 clean_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