summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 543bf66..bc7bf2a 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ COMMON_OBJECTS = cl_simple.o cl_util.o
LDFLAGS = -L/usr/local/lib -lOpenCL
-all: hello_world math-int get-global-id get-global-id-2d loop get-global-id-3d mat-mul
+all: hello_world math-int get-global-id get-global-id-2d loop get-global-id-3d mat-mul use-host-ptr copy-host-ptr
hello_world: hello_world.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
@@ -29,3 +29,9 @@ mat-mul: mat_mul.o $(COMMON_OBJECTS)
memset: memset.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
+
+use-host-ptr: use_host_ptr.o $(COMMON_OBJECTS)
+ gcc -o $@ $^ $(LDFLAGS)
+
+copy-host-ptr: copy_host_ptr.o $(COMMON_OBJECTS)
+ gcc -o $@ $^ $(LDFLAGS)