From 51a8923eb33ad53a36271b1e0b3489d033178337 Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Thu, 9 May 2024 01:27:55 -0500 Subject: will push to unison --- makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index c2e4c4e..b733c07 100644 --- a/makefile +++ b/makefile @@ -1,9 +1,13 @@ LIBS = -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 $CC = gcc +INC = -I /opt/cuda/include make: - $(CC) $(LIBS) main.c -o build/main.o - nvcc --compile main.cu -o build/kernel.o - gcc -o indigo_worlds main.o kernel.o + 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/* -- cgit v1.2.3