Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
e611b250
Commit
e611b250
authored
Mar 16, 2009
by
Dean Camera
Browse files
Added extra output to makefiles to indicate the currently selected BOARD parameter.
parent
0214e096
Changes
35
Hide whitespace changes
Inline
Side-by-side
Bootloaders/CDC/makefile
View file @
e611b250
...
...
@@ -446,7 +446,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
...
...
@@ -495,8 +495,8 @@ 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
@
echo
-----------
Library Mode
-----------
...
...
@@ -505,6 +505,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
...
...
@@ -654,10 +660,11 @@ clean: begin clean_list clean_binary end
clean_binary
:
$(REMOVE)
$(TARGET)
.hex
clean_list
:
@
echo
$(MSG_CLEANING)
$(REMOVE)
$(TARGET)
.eep
$(REMOVE)
$(TARGET)
eep.hex
$(REMOVE)
$(TARGET)
.cof
$(REMOVE)
$(TARGET)
.elf
$(REMOVE)
$(TARGET)
.map
...
...
@@ -675,7 +682,7 @@ doxygen:
@
echo
Generating Project Documentation...
@
doxygen Doxygen.conf
@
echo
Documentation Generation Complete.
clean_doxygen
:
rm
-rf
Documentation
...
...
@@ -688,8 +695,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
.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
\ No newline at end of file
Bootloaders/DFU/makefile
View file @
e611b250
...
...
@@ -447,7 +447,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
...
...
@@ -496,8 +496,8 @@ 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
@
echo
-----------
Library Mode
-----------
...
...
@@ -506,6 +506,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
...
...
@@ -515,8 +521,7 @@ gccversion :
# Program the device.
program
:
$(TARGET).hex $(TARGET).eep
$(AVRDUDE)
$(AVRDUDE_FLAGS)
$(AVRDUDE_WRITE_FLASH)
$(AVRDUDE_WRITE_EEPROM)
# Generate avr-gdb config/init file which does the following:
# define the reset signal, load the target file, connect to target, and set
...
...
@@ -656,10 +661,11 @@ clean: begin clean_list clean_binary end
clean_binary
:
$(REMOVE)
$(TARGET)
.hex
clean_list
:
@
echo
$(MSG_CLEANING)
$(REMOVE)
$(TARGET)
.eep
$(REMOVE)
$(TARGET)
eep.hex
$(REMOVE)
$(TARGET)
.cof
$(REMOVE)
$(TARGET)
.elf
$(REMOVE)
$(TARGET)
.map
...
...
@@ -667,8 +673,6 @@ clean_list:
$(REMOVE)
$(TARGET)
.lss
$(REMOVE)
$
(
SRC:%.c
=
$(OBJDIR)
/%.o
)
$(REMOVE)
$
(
SRC:%.c
=
$(OBJDIR)
/%.lst
)
$(REMOVE)
$
(
ASRC:%.S
=
$(OBJDIR)
/%.o
)
$(REMOVE)
$
(
ASRC:%.S
=
$(OBJDIR)
/%.lst
)
$(REMOVE)
$(SRC:.c=.s)
$(REMOVE)
$(SRC:.c=.d)
$(REMOVE)
$(SRC:.c=.i)
...
...
@@ -679,7 +683,7 @@ doxygen:
@
echo
Generating Project Documentation...
@
doxygen Doxygen.conf
@
echo
Documentation Generation Complete.
clean_doxygen
:
rm
-rf
Documentation
...
...
@@ -692,8 +696,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
clean_doxygen
.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
\ No newline at end of file
Bootloaders/TeensyHID/makefile
View file @
e611b250
...
...
@@ -446,7 +446,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
...
...
@@ -495,7 +495,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
...
...
@@ -505,6 +505,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
...
...
@@ -654,10 +660,11 @@ clean: begin clean_list clean_binary end
clean_binary
:
$(REMOVE)
$(TARGET)
.hex
clean_list
:
@
echo
$(MSG_CLEANING)
$(REMOVE)
$(TARGET)
.eep
$(REMOVE)
$(TARGET)
eep.hex
$(REMOVE)
$(TARGET)
.cof
$(REMOVE)
$(TARGET)
.elf
$(REMOVE)
$(TARGET)
.map
...
...
@@ -688,8 +695,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
.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
\ No newline at end of file
Demos/AudioInput/makefile
View file @
e611b250
...
...
@@ -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
...
...
@@ -497,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
...
...
@@ -507,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
...
...
@@ -711,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
Demos/AudioOutput/makefile
View file @
e611b250
...
...
@@ -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
...
...
@@ -497,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
...
...
@@ -507,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
...
...
@@ -711,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
Demos/BluetoothHost/makefile
View file @
e611b250
...
...
@@ -454,7 +454,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
...
...
@@ -503,8 +503,8 @@ 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
@
echo
-----------
Library Mode
-----------
...
...
@@ -513,6 +513,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
...
...
@@ -717,8 +723,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
Demos/CDC/makefile
View file @
e611b250
...
...
@@ -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
...
...
@@ -497,8 +497,8 @@ 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
@
echo
-----------
Library Mode
-----------
...
...
@@ -507,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
...
...
@@ -711,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
Demos/CDCHost/makefile
View file @
e611b250
...
...
@@ -451,7 +451,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
...
...
@@ -500,8 +500,8 @@ 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
@
echo
-----------
Library Mode
-----------
...
...
@@ -510,6 +510,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
...
...
@@ -714,8 +720,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
Demos/DualCDC/makefile
View file @
e611b250
...
...
@@ -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
...
...
@@ -497,8 +497,8 @@ 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
@
echo
-----------
Library Mode
-----------
...
...
@@ -507,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
...
...
@@ -711,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
Demos/Joystick/makefile
View file @
e611b250
...
...
@@ -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
...
...
@@ -497,8 +497,8 @@ 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
@
echo
-----------
Library Mode
-----------
...
...
@@ -507,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
...
...
@@ -711,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
Demos/Keyboard/makefile
View file @
e611b250
...
...
@@ -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
Demos/KeyboardFullInt/makefile
View file @
e611b250
...
...
@@ -447,7 +447,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
...
...
@@ -496,7 +496,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
...
...
@@ -506,6 +506,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
...
...
@@ -710,8 +716,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
Demos/KeyboardHost/makefile
View file @
e611b250
...
...
@@ -451,7 +451,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
# Default target.