aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-01-21 17:17:55 +1300
committerDavid Phillips <david@sighup.nz>2017-01-21 17:17:55 +1300
commite169d7aa8585ebb5f4fab3eccc8df92a43add4f5 (patch)
treefa137e60f58ea430e12d59f343a3b02382ee437b
parent4c6a8c482f54b2e4129acb8940170d9ca37b58d1 (diff)
downloadfractal-gen-opencl-e169d7aa8585ebb5f4fab3eccc8df92a43add4f5.tar.xz
Add licence
-rw-r--r--LICENCE26
-rw-r--r--Makefile2
-rw-r--r--config.mk1
-rw-r--r--trampoline.c2
4 files changed, 29 insertions, 2 deletions
diff --git a/LICENCE b/LICENCE
new file mode 100644
index 0000000..037d9ff
--- /dev/null
+++ b/LICENCE
@@ -0,0 +1,26 @@
+/*
+ * fractal-gen-opencl - Generate iteration-based fractals in PNM format
+ * Copyright (c) 2017 David Phillips <dbphillipsnz@gmail.com>
+ * All rights reserved
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
diff --git a/Makefile b/Makefile
index 15e8ca2..1dd24f6 100644
--- a/Makefile
+++ b/Makefile
@@ -6,4 +6,4 @@ fractal-gen: fractal-gen.o trampoline.o slurp.o
.PHONY: clean
clean:
- rm -f {trampoline,slurp,fractal-gen}.o
+ rm -f {trampoline,slurp,fractal-gen}.o fractal-gen
diff --git a/config.mk b/config.mk
index 9665fd9..2c4b751 100644
--- a/config.mk
+++ b/config.mk
@@ -1 +1,2 @@
+CFLAGS += -I/usr/include/CL/
LDFLAGS += -lOpenCL
diff --git a/trampoline.c b/trampoline.c
index b57311b..f658d11 100644
--- a/trampoline.c
+++ b/trampoline.c
@@ -1,6 +1,6 @@
#include <stdio.h>
#include <string.h>
-#include <CL/opencl.h>
+#include <opencl.h>
#include "slurp.h"