diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-09-29 04:31:51 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-09-29 04:31:51 +0200 |
commit | 533a9e57de8cb74594499f625810ad812359d3fb (patch) | |
tree | 8e8eed62ab86416170b4c9716b36bae736d6b3a8 /lib/Makefile | |
parent | 48142327c37f716da307bd4a9b22576ad0a67c22 (diff) | |
download | matcha-threads-533a9e57de8cb74594499f625810ad812359d3fb.tar.gz matcha-threads-533a9e57de8cb74594499f625810ad812359d3fb.zip |
added basic arm64 support
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 14 |
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 \ |