aboutsummaryrefslogtreecommitdiff
path: root/aberth/Makefile
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2019-04-20 10:38:44 +0200
committerTom Smeding <tom.smeding@gmail.com>2019-04-20 10:38:44 +0200
commit259c0602809c9d4577742a90e4bfcf62f4046e46 (patch)
tree4cece76153d3e6bdb3f20b43e4061877d6a6dbac /aberth/Makefile
parentde5ddea92334ed0d5ff4a70bd6393d7fea7bbd07 (diff)
Compile on linux
Diffstat (limited to 'aberth/Makefile')
-rw-r--r--aberth/Makefile7
1 files changed, 6 insertions, 1 deletions
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