Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bel
bel4_ezb_public
Commits
0c03bd8e
Commit
0c03bd8e
authored
Feb 20, 2018
by
Martin Horauer
Browse files
modified Makefiles
parent
71ba1d0b
Changes
4
Hide whitespace changes
Inline
Side-by-side
XMC_MBED/APP_AnalogOut/Makefile
View file @
0c03bd8e
...
...
@@ -38,6 +38,7 @@ TRACE = -D SEMI_HOSTING
################################################################################
# TOOLS & ARGS
#
SRC
=
$(
wildcard
*
.cpp
)
TERMINAL
=
gnome-terminal
TOOLCHAIN
=
GCC_ARM
BOARD
=
XMC_4500_RELAX_KIT
...
...
@@ -70,10 +71,9 @@ GDB_ARGS += -ex "monitor SWO EnableTarget 16000000 0 1 0"
################################################################################
# BUILD RULES
all
:
$(
BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf
all
:
$(
SRC)
$(BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf
:
$(wildcard *.cpp)
$(BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).hex
:
$(SRC)
@
echo
"----------------------------------------------------------------------"
@
echo
"Building"
@
echo
""
...
...
@@ -82,13 +82,18 @@ $(BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf: $(wildcard *.cpp)
################################################################################
# DEBUG RULES
debug
:
$(
BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf
debug
:
$(
SRC)
ifdef
SystemRoot
@
call start JLinkGDBServer
-Device
XMC4500-1024
-if
SWD
else
$(TERMINAL)
-e
"JLinkGDBServer -Device XMC4500-1024 -if SWD"
&
sleep
1
&&
$(TERMINAL)
-e
"telnet 127.0.0.1 2333"
&
endif
@
echo
"----------------------------------------------------------------------"
@
echo
"Building with DEBUG Symbols"
@
echo
""
$(MBED)
compile
-m
$(BOARD)
-t
$(TOOLCHAIN)
-N
main
--profile
mbed-os/tools/profiles/debug.json
@
echo
""
$(GDB)
-q
$(BUILDDIR)
/
$(BOARD)
/
$(TOOLCHAIN)
/
$(TARGET)
.elf
$(GDB_ARGS)
################################################################################
...
...
@@ -103,7 +108,7 @@ erase:
################################################################################
# DOCUMENTATION RULES
doc
:
$(
wildcard *.cpp
)
doc
:
$(
SRC
)
doxygen
################################################################################
...
...
XMC_MBED/APP_BLINKY/Makefile
View file @
0c03bd8e
...
...
@@ -38,6 +38,7 @@ TRACE = -D SEMI_HOSTING
################################################################################
# TOOLS & ARGS
#
SRC
=
$(
wildcard
*
.cpp
)
TERMINAL
=
gnome-terminal
TOOLCHAIN
=
GCC_ARM
BOARD
=
XMC_4500_RELAX_KIT
...
...
@@ -70,10 +71,9 @@ GDB_ARGS += -ex "monitor SWO EnableTarget 16000000 0 1 0"
################################################################################
# BUILD RULES
all
:
$(
BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf
all
:
$(
SRC)
$(BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf
:
$(wildcard *.cpp)
$(BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).hex
:
$(SRC)
@
echo
"----------------------------------------------------------------------"
@
echo
"Building"
@
echo
""
...
...
@@ -82,13 +82,18 @@ $(BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf: $(wildcard *.cpp)
################################################################################
# DEBUG RULES
debug
:
$(
BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf
debug
:
$(
SRC)
ifdef
SystemRoot
@
call start JLinkGDBServer
-Device
XMC4500-1024
-if
SWD
else
$(TERMINAL)
-e
"JLinkGDBServer -Device XMC4500-1024 -if SWD"
&
sleep
1
&&
$(TERMINAL)
-e
"telnet 127.0.0.1 2333"
&
endif
@
echo
"----------------------------------------------------------------------"
@
echo
"Building with DEBUG Symbols"
@
echo
""
$(MBED)
compile
-m
$(BOARD)
-t
$(TOOLCHAIN)
-N
main
--profile
mbed-os/tools/profiles/debug.json
@
echo
""
$(GDB)
-q
$(BUILDDIR)
/
$(BOARD)
/
$(TOOLCHAIN)
/
$(TARGET)
.elf
$(GDB_ARGS)
################################################################################
...
...
@@ -103,7 +108,7 @@ erase:
################################################################################
# DOCUMENTATION RULES
doc
:
$(
wildcard *.cpp
)
doc
:
$(
SRC
)
doxygen
################################################################################
...
...
XMC_MBED/APP_InterruptIn/Makefile
View file @
0c03bd8e
...
...
@@ -38,6 +38,7 @@ TRACE = -D SEMI_HOSTING
################################################################################
# TOOLS & ARGS
#
SRC
=
$(
wildcard
*
.cpp
)
TERMINAL
=
gnome-terminal
TOOLCHAIN
=
GCC_ARM
BOARD
=
XMC_4500_RELAX_KIT
...
...
@@ -70,10 +71,9 @@ GDB_ARGS += -ex "monitor SWO EnableTarget 16000000 0 1 0"
################################################################################
# BUILD RULES
all
:
$(
BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf
all
:
$(
SRC)
$(BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf
:
$(wildcard *.cpp)
$(BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).hex
:
$(SRC)
@
echo
"----------------------------------------------------------------------"
@
echo
"Building"
@
echo
""
...
...
@@ -82,13 +82,18 @@ $(BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf: $(wildcard *.cpp)
################################################################################
# DEBUG RULES
debug
:
$(
BUILDDIR)/$(BOARD)/$(TOOLCHAIN)/$(TARGET).elf
debug
:
$(
SRC)
ifdef
SystemRoot
@
call start JLinkGDBServer
-Device
XMC4500-1024
-if
SWD
else
$(TERMINAL)
-e
"JLinkGDBServer -Device XMC4500-1024 -if SWD"
&
sleep
1
&&
$(TERMINAL)
-e
"telnet 127.0.0.1 2333"
&
endif
@
echo
"----------------------------------------------------------------------"
@
echo
"Building with DEBUG Symbols"
@
echo
""
$(MBED)
compile
-m
$(BOARD)
-t
$(TOOLCHAIN)
-N
main
--profile
mbed-os/tools/profiles/debug.json
@
echo
""
$(GDB)
-q
$(BUILDDIR)
/
$(BOARD)
/
$(TOOLCHAIN)
/
$(TARGET)
.elf
$(GDB_ARGS)
################################################################################
...
...
@@ -103,7 +108,7 @@ erase:
################################################################################
# DOCUMENTATION RULES
doc
:
$(
wildcard *.cpp
)
doc
:
$(
SRC
)
doxygen
################################################################################
...
...
XMC_MBED/APP_InterruptIn/main.cpp
View file @
0c03bd8e
...
...
@@ -10,8 +10,8 @@
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions
and
*
limitations
under the License.
* See the License for the specific language governing permissions
limitations
*
and
under the License.
*/
/******************************************************************* Includes */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment