From 259c0602809c9d4577742a90e4bfcf62f4046e46 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 20 Apr 2019 10:38:44 +0200 Subject: Compile on linux --- aberth/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'aberth/Makefile') diff --git a/aberth/Makefile b/aberth/Makefile index 10f36b8..82e3260 100644 --- a/aberth/Makefile +++ b/aberth/Makefile @@ -1,7 +1,12 @@ CXX = g++ CXXFLAGS = -Wall -Wextra -std=c++17 -fwrapv $(OPTFLAGS) OPTFLAGS = -O3 -ffast-math -march=native -mtune=native -LDFLAGS = -pthread -framework OpenCL +LDFLAGS = -pthread +ifeq ($(uname),Darwin) + LDFLAGS += -framework OpenCL +else + LDFLAGS += -lOpenCL +endif TARGETS = aberth -- cgit v1.2.3-70-g09d2