summaryrefslogtreecommitdiff
path: root/makefile
blob: b733c077556e24a328767180311c3572bc32e4e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
LIBS = -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
$CC = gcc
INC = -I /opt/cuda/include
make:
	nvcc $(LIBS) $(INC) --debug -c main.cu -o build/main.o
	nvcc  --device-debug --compile kernel.cu -o build/kernel.o
	nvcc $(LIBS) -o build/indigo_worlds build/main.o build/kernel.o

run:
	build/indigo_worlds

clean:
	rm -r build/*