mirror of
https://github.com/e-ago/bitcracker.git
synced 2025-10-27 07:29:18 +00:00
Adds an example to help people compile with just their default installed version of OpenCL
18 lines
654 B
Makefile
Executable File
18 lines
654 B
Makefile
Executable File
#!/bin/bash
|
|
|
|
FLAGS=-Wextra
|
|
NVIDIA_INCLUDE=-I/usr/local/cuda/include -L/usr/local/cuda/lib64
|
|
COMMON_INCLUDE=-I/usr/include -L/usr/lib64 -L/usr/lib
|
|
MAKE_INCLUDE=$(COMMON_INCLUDE) $(NVIDIA_INCLUDE) -cl-std=CL1.2 -O3
|
|
|
|
all:
|
|
gcc $(MAKE_INCLUDE) $(FLAGS) -o bitcracker_opencl main.c opencl_attack.c utils.c w_blocks.c -lOpenCL
|
|
#To use default CL version uncomment below(expect alot of warnings):
|
|
#gcc $(COMMON_INCLUDE) $(NVIDIA_INCLUDE) -O3 $(FLAGS) -o bitcracker_opencl main.c opencl_attack.c utils.c w_blocks.c -lOpenCL
|
|
#clang -framework OpenCL -o bitcracker_opencl main.c opencl_attack.c utils.c w_blocks.c
|
|
|
|
|
|
clean:
|
|
rm -rf *.o
|
|
rm -rf bitcracker_opencl
|