3d_fractals_cuda/makefile
2024-05-09 01:27:55 -05:00

16 lines
327 B
Makefile

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/*