aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Keyboard/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Keyboard/makefile')
-rw-r--r--Demos/Keyboard/makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/Demos/Keyboard/makefile b/Demos/Keyboard/makefile
index db138609a..6befbdb51 100644
--- a/Demos/Keyboard/makefile
+++ b/Demos/Keyboard/makefile
@@ -448,7 +448,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
# Default target.
-all: begin gccversion sizebefore build checkhooks checklibmode sizeafter end
+all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
# Change the build target to build a HEX file or a library.
build: elf hex eep lss sym
@@ -482,8 +482,6 @@ HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
-MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
-FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
@@ -499,7 +497,7 @@ checkhooks: build
@$(shell) (grep -s '^Event.*LUFA/.*\\.o' $(TARGET).map | \
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
echo "(None)"
- @echo ----- End Unhooked LUFA Events -----
+ @echo ------------------------------------
checklibmode:
@echo
@@ -509,6 +507,12 @@ checklibmode:
|| echo "No specific mode (both device and host mode allowable)."
@echo ------------------------------------
+checkboard:
+ @echo
+ @echo ---------- Selected Board ----------
+ @echo Selected board model is $(BOARD).
+ @echo ------------------------------------
+
# Display compiler version information.
gccversion :
@$(CC) --version
@@ -713,8 +717,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
# Listing of phony targets.
-.PHONY : all checkhooks checklibmode begin \
-finish end sizebefore sizeafter gccversion \
-build elf hex eep lss sym coff extcoff \
-clean clean_list clean_binary program debug \
-gdb-config doxygen dfu flip flip-ee dfu-ee
+.PHONY : all checkhooks checklibmode checkboard \
+begin finish end sizebefore sizeafter gccversion \
+build elf hex eep lss sym coff extcoff clean \
+clean_list clean_binary program debug gdb-config \
+doxygen dfu flip flip-ee dfu-ee \ No newline at end of file