From 533a9e57de8cb74594499f625810ad812359d3fb Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 29 Sep 2020 04:31:51 +0200 Subject: added basic arm64 support --- lib/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'lib/Makefile') 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 \ -- cgit v1.2.3