summaryrefslogtreecommitdiff
path: root/Externals/CLRun/clrun/Makefile
blob: 9f637269e0263559e9dee980aecda5a95dc6d00f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
all: compile

compile: genclrun gencl.c genclgl.c
	gcc -Wall -c gencl.c -o gencl.o
	gcc -Wall -c genclgl.c -o genclgl.o
	gcc -Wall -c clrun.c -o clrun.o -I../include
	gcc -Wall --shared dynamiclib.c clrun.o gencl.o genclgl.o -o libclrun.so -ldl
		strip libclrun.so

genclrun: ../include/CL/cl.h ../include/CL/cl_gl.h
	./generateClRun.pl ../include/CL/cl.h > gencl.c
	./generateClRun.pl ../include/CL/cl_gl.h > genclgl.c


clean:
	rm -rf *~ *.o