diff options
author | brett weiland <brettsweiland@gmail.com> | 2024-06-01 01:36:18 -0500 |
---|---|---|
committer | brett weiland <brettsweiland@gmail.com> | 2024-06-01 01:36:18 -0500 |
commit | b0dd97ee6bf8d5daa587da40ad941efac68152df (patch) | |
tree | f162d32767e0b0f84bed284f6e8ab2c5309ff248 /src/makefile | |
parent | 093200a449ea38952de52012e324036c106e294b (diff) |
got raycasting laid out
Diffstat (limited to 'src/makefile')
-rw-r--r-- | src/makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/makefile b/src/makefile new file mode 100644 index 0000000..4d86411 --- /dev/null +++ b/src/makefile @@ -0,0 +1,25 @@ +LIBS = -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 +$CC = gcc +INC = -I /opt/cuda/include +COMPILED_BIN = build/indigo_worlds + +CU_SRCFILES := $(wildcard *.cu) +CU_OBJFILES := $(patsubst %.cu, %.o, $(CU_SRCFILES)) + +all: $(CU_OBJFILES) + nvcc $(LIBS) -o build/indigo_worlds build/*.o + +%.o: %.cu + nvcc --device-debug -dc -c $< -o build/$@ + +run: all + build/indigo_worlds + +clean: + rm -rf build/* + + +#make: +# nvcc $(LIBS) $(INC) -O0 --debug -c main.cu -o build/main.o +# nvcc --device-debug --compile kernel.cu -o build/kernel.o +# nvcc $(LIBS) -O0 -o build/indigo_worlds build/main.o build/kernel.o |