summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-03-05 17:03:43 -0500
committerTom Stellard <thomas.stellard@amd.com>2012-03-05 17:03:43 -0500
commit1f513c54ef5ba597bc696c6e9eb09f61df8ba293 (patch)
tree9ed987e766614c646888a30154010a55866bd573 /Makefile
parentc3d0faace8d249bb17f1bb02b9539fbbe5effd90 (diff)
Add math-int program for testing simple math operations
Usage: ./math-int kernel_name arg0 arg1 expected_value
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 02e399d..85f7f53 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,9 @@
CFLAGS=-g
+all: hello_world math-int
+
hello_world: hello_world.o util.o
gcc -o hello_world $^ -L/usr/local/lib/ -lOpenCL
+
+math-int: math-int.o util.o
+ gcc -o math-int $^ -L/usr/local/lib/ -lOpenCL