# RinHash CUDA Miner Makefile # CUDA implementation of RinHash algorithm for GPU mining # Compiler and flags NVCC = nvcc CUDA_ARCH = -arch=sm_50 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 NVCC_FLAGS = -O3 -std=c++11 -Xcompiler -fPIC INCLUDES = -I. LIBS = -lcuda -lcudart # Source files CUDA_SOURCES = rinhash.cu sha3-256.cu HEADERS = rinhash_device.cuh argon2d_device.cuh blake3_device.cuh blaze3_cpu.cuh # Output executable TARGET = rinhash-cuda-miner.exe # Build targets all: $(TARGET) $(TARGET): $(CUDA_SOURCES) $(HEADERS) $(NVCC) $(NVCC_FLAGS) $(CUDA_ARCH) $(INCLUDES) $(CUDA_SOURCES) -o $(TARGET) $(LIBS) # Clean build artifacts clean: del /Q $(TARGET) *.obj 2>nul || true # Install target (copy to main directory) install: $(TARGET) copy $(TARGET) ..\..\$(TARGET) # Debug build debug: NVCC_FLAGS += -g -G -DDEBUG debug: $(TARGET) # Test run test: $(TARGET) .\$(TARGET) --help .PHONY: all clean install debug test