aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-09-29 04:31:51 +0200
committerjohannst <johannes.stoelp@gmail.com>2020-09-29 04:31:51 +0200
commit533a9e57de8cb74594499f625810ad812359d3fb (patch)
tree8e8eed62ab86416170b4c9716b36bae736d6b3a8 /lib/Makefile
parent48142327c37f716da307bd4a9b22576ad0a67c22 (diff)
downloadmatcha-threads-533a9e57de8cb74594499f625810ad812359d3fb.tar.gz
matcha-threads-533a9e57de8cb74594499f625810ad812359d3fb.zip
added basic arm64 support
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 78b051e..c880346 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,12 +1,16 @@
# Copyright (c) 2020 Johannes Stoelp
-AS := gcc
+ARCH ?= x86_64
+
+ifeq ($(ARCH),arm64)
+PREFIX := aarch64-linux-gnu-
+endif
+
+AS := $(PREFIX)gcc
ASFLAGS := -g -O0
-CXX := g++
+CXX := $(PREFIX)g++
CXXFLAGS := -g -O0 -Wall -Wextra -I.
-AR := ar
-
-ARCH := x86_64
+AR := $(PREFIX)ar
libmatcha.a: thread.o executor.o \
thread.h executor.h \