summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
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/*