aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-10-02 20:49:16 +1300
committerDavid Phillips <david@sighup.nz>2017-10-02 20:49:16 +1300
commit8deb7d91f146eb342dbf28fc66a07e665bd7a15a (patch)
tree274a041b2a1d047abc1cbde8f26826ae05d4cf5d
parent5267992a6057c82652514a1a4129582d9a3266f7 (diff)
downloadsand-leek-8deb7d91f146eb342dbf28fc66a07e665bd7a15a.tar.xz
Add opencl CFLAGS and targets to makefile
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 85880da..6289664 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,17 @@
-CFLAGS += -Wall -Wextra -O2
-LDFLAGS += -lssl -lcrypto -lpthread
+CFLAGS += -Wall -Wextra -O2 -I/usr/include/CL
+LDFLAGS += -lssl -lcrypto -lpthread -lOpenCL
-all: sand-leek
+all: sand-leek sand-leek-cl
sand-leek: sand-leek.o onion_base32.o key_update.o
$(CC) -o $@ $^ $(LDFLAGS)
-sand-leek-cl: trampoline.o
+sand-leek-cl: sand-leek-cl.o trampoline.o cl_error.o slurp.o
$(CC) -o $@ $^ $(LDFLAGS)
+sand-leek-cl.o: sand-leek-cl.c
+ $(CC) -c -o $@ $^ $(CFLAGS) -DCL_SRC_DIR=\"$(PWD)/cl/\"
+
clean:
rm -f sand-leek *.o