summaryrefslogtreecommitdiff
path: root/makefile
blob: 7f6bddb07db486fd62c92cb08924c2c7c0108f42 (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) -O0 --debug -c main.cu -o build/main.o
	nvcc  --device-debug --compile kernel.cu -o build/kernel.o
	nvcc $(LIBS) -O0 -o build/indigo_worlds build/main.o build/kernel.o

run:
	build/indigo_worlds

clean:
	rm -rf build/*