diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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/* |