aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-02-26 23:19:03 +0100
committerjohannst <johannes.stoelp@gmail.com>2021-02-26 23:19:03 +0100
commit0d881bc974b74dff75c00a3cab5d535cbb2ace46 (patch)
tree35c5892c135d5623879b106e93df4cc235669a8d /Makefile
parent5fbee6be76c8751c282b45c54b8179ae525e00c1 (diff)
downloadmatcha-threads-0d881bc974b74dff75c00a3cab5d535cbb2ace46.tar.gz
matcha-threads-0d881bc974b74dff75c00a3cab5d535cbb2ace46.zip
added implementation for armv7a
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0681880..08d4494 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,8 @@ ARCH ?= x86_64
ifeq ($(ARCH),arm64)
PREFIX := aarch64-linux-gnu-
+else ifeq ($(ARCH),arm)
+PREFIX := arm-linux-gnueabi-
endif
CXX := $(PREFIX)g++
@@ -28,6 +30,11 @@ ifeq ($(ARCH),arm64)
-L /usr/aarch64-linux-gnu \
-E LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib \
$<
+else ifeq ($(ARCH),arm)
+ qemu-arm \
+ -L /usr/arm-linux-gnueabi \
+ -E LD_LIBRARY_PATH=/usr/arm-linux-gnueabi/lib \
+ $<
else
$<
endif
@@ -40,6 +47,13 @@ ifeq ($(ARCH),arm64)
-g 1234 \
$< &
gdb-multiarch -ex 'target remote :1234' -ex 'b main' -ex 'c' $<
+else ifeq ($(ARCH),arm)
+ qemu-arm \
+ -L /usr/arm-linux-gnueabi \
+ -E LD_LIBRARY_PATH=/usr/arm-linux-gnueabi/lib \
+ -g 1234 \
+ $< &
+ gdb-multiarch -ex 'target remote :1234' -ex 'b main' -ex 'c' $<
else
which cgdb && cgdb --ex 'start' $< \
|| gdb --ex 'start' $<