mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-22 14:48:12 +00:00
It's safe now to use AMD's OpenCL includes, tested on NV
This commit is contained in:
parent
08a35772a9
commit
4a0c47ca08
21
src/Makefile
21
src/Makefile
@ -33,23 +33,30 @@ DOCUMENT_FOLDER ?= /opt/test/usr/share/doc/oclHashcat
|
|||||||
#DOCUMENT_FOLDER ?= /usr/share/doc/oclHashcat
|
#DOCUMENT_FOLDER ?= /usr/share/doc/oclHashcat
|
||||||
|
|
||||||
##
|
##
|
||||||
## Library paths
|
## Main SDK
|
||||||
##
|
##
|
||||||
|
|
||||||
CUDA := deps/cuda-7.5
|
CUDA := deps/cuda-7.5
|
||||||
CUDALIBPATH32 := deps/NVIDIA-Linux-x86_64-352.21/32
|
CUDALIBPATH32 := deps/NVIDIA-Linux-x86_64-352.21/32
|
||||||
CUDALIBPATH64 := deps/NVIDIA-Linux-x86_64-352.21
|
CUDALIBPATH64 := deps/NVIDIA-Linux-x86_64-352.21
|
||||||
|
|
||||||
OCL := $(CUDA)
|
AMDAPP := deps/amd-app-sdk
|
||||||
OCLLIBPATH32 := $(CUDALIBPATH32)
|
AMDAPPLIBPATH32 := $(OCL)/lib/x86
|
||||||
OCLLIBPATH64 := $(CUDALIBPATH64)
|
AMDAPPLIBPATH64 := $(OCL)/lib/x86_64
|
||||||
|
|
||||||
ADL := deps/adl-sdk
|
ADL := deps/adl-sdk
|
||||||
|
|
||||||
GDK := deps/nvidia-gdk
|
GDK := deps/nvidia-gdk
|
||||||
NVAPI := deps/R352-developer
|
NVAPI := deps/R352-developer
|
||||||
|
|
||||||
NVMLINCPATH := $(GDK)/usr/include/nvidia/gdk/
|
##
|
||||||
|
## Library paths
|
||||||
|
##
|
||||||
|
|
||||||
|
OCL := $(AMDAPP)
|
||||||
|
OCLLIBPATH32 := $(AMDAPPLIBPATH32)
|
||||||
|
OCLLIBPATH64 := $(AMDAPPLIBPATH64)
|
||||||
|
|
||||||
|
NVML := $(GDK)/usr/include/nvidia/gdk/
|
||||||
NVMLLIBPATH32 := $(CUDALIBPATH32)
|
NVMLLIBPATH32 := $(CUDALIBPATH32)
|
||||||
NVMLLIBPATH64 := $(CUDALIBPATH64)
|
NVMLLIBPATH64 := $(CUDALIBPATH64)
|
||||||
|
|
||||||
@ -95,7 +102,7 @@ CFLAGS_64 := -m64
|
|||||||
CFLAGS_LINUX := -D_POSIX -DLINUX
|
CFLAGS_LINUX := -D_POSIX -DLINUX
|
||||||
CFLAGS_WIN := -D_WIN -DWIN -D__MSVCRT__ -D__USE_MINGW_ANSI_STDIO=1
|
CFLAGS_WIN := -D_WIN -DWIN -D__MSVCRT__ -D__USE_MINGW_ANSI_STDIO=1
|
||||||
|
|
||||||
CFLAGS_LINUX += -I$(OCL)/include/ -I$(ADL)/include/ -I$(GDK)/usr/include/nvidia/gdk/
|
CFLAGS_LINUX += -I$(OCL)/include/ -I$(ADL)/include/ -I$(NVML)/
|
||||||
CFLAGS_WIN += -I$(OCL)/include/ -I$(ADL)/include/ -I$(NVAPI)/
|
CFLAGS_WIN += -I$(OCL)/include/ -I$(ADL)/include/ -I$(NVAPI)/
|
||||||
|
|
||||||
LFLAGS_LINUX := -lpthread -lOpenCL -ldl
|
LFLAGS_LINUX := -lpthread -lOpenCL -ldl
|
||||||
|
Loading…
Reference in New Issue
Block a user