Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fadecandy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scanlime
Fadecandy
Commits
ee6d9979
Commit
ee6d9979
authored
11 years ago
by
Micah Elizabeth Scott
Browse files
Options
Downloads
Patches
Plain Diff
Add a "make install" target, for when the Teensy tools are available
parent
b29cbc12
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+23
-7
23 additions, 7 deletions
Makefile
with
23 additions
and
7 deletions
Makefile
+
23
−
7
View file @
ee6d9979
#######################################################
# Environment setup
# Teensy loader tools (for 'make install')
TOOLSPATH
=
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools
# toolchain
CC
=
arm-none-eabi-gcc
CXX
=
arm-none-eabi-g++
OBJCOPY
=
arm-none-eabi-objcopy
OBJDUMP
=
arm-none-eabi-objdump
SIZE
=
arm-none-eabi-size
#######################################################
# The name of your project (used to name the compiled .hex file)
TARGET
=
fadecandy
...
...
@@ -32,12 +47,6 @@ LDFLAGS = -Os -Wl,--gc-sections -mcpu=cortex-m4 -mthumb -T$(LDSCRIPT)
# additional libraries to link
LIBS
=
-lm
# toolchain
CC
=
arm-none-eabi-gcc
CXX
=
arm-none-eabi-g++
OBJCOPY
=
arm-none-eabi-objcopy
SIZE
=
arm-none-eabi-size
OBJS
:=
$(
C_FILES:.c
=
.o
)
$(
CPP_FILES:.cpp
=
.o
)
all
:
$(TARGET).hex
...
...
@@ -55,4 +64,11 @@ $(TARGET).elf: $(OBJS) $(LDSCRIPT)
clean
:
rm
-f
src/
*
.d src/
*
.o teensy3/
*
.o teensy3/
*
.d
$(
TARGET
)
.elf
$(
TARGET
)
.hex
.PHONY
:
clean install
install
:
$(TARGET).hex
$(
abspath
$(
TOOLSPATH
))
/teensy_post_compile
-file
=
$(
TARGET
)
-path
=
$(
shell
pwd
)
-tools
=
$(
abspath
$(
TOOLSPATH
))
$(
abspath
$(
TOOLSPATH
))
/teensy_reboot
objdump
:
$(TARGET).elf
$(
OBJDUMP
)
-d
$<
.PHONY
:
clean install objdump
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment