diff options
author | johannst <johannes.stoelp@gmail.com> | 2021-02-26 23:19:03 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2021-02-26 23:19:03 +0100 |
commit | 0d881bc974b74dff75c00a3cab5d535cbb2ace46 (patch) | |
tree | 35c5892c135d5623879b106e93df4cc235669a8d /Makefile | |
parent | 5fbee6be76c8751c282b45c54b8179ae525e00c1 (diff) | |
download | matcha-threads-0d881bc974b74dff75c00a3cab5d535cbb2ace46.tar.gz matcha-threads-0d881bc974b74dff75c00a3cab5d535cbb2ace46.zip |
added implementation for armv7a
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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' $< |