summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBrett Weiland <brett_weiland@gmail.com>2024-05-09 01:27:55 -0500
committerBrett Weiland <brett_weiland@gmail.com>2024-05-09 01:27:55 -0500
commit51a8923eb33ad53a36271b1e0b3489d033178337 (patch)
tree6c2017a8210f43848e338e6065e0964ee20cf115 /makefile
parent882999e591ece292d5ddbc87020ba70b3d2d1658 (diff)
will push to unison
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 7 insertions, 3 deletions
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/*