mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-24 15:38:11 +00:00
commit
2cbae341f4
34
src/Makefile
34
src/Makefile
@ -86,10 +86,17 @@ VERSION_SUM := $(shell git describe --tags --dirty=+ | cut -d- -f3)
|
|||||||
## Compiler flags
|
## Compiler flags
|
||||||
##
|
##
|
||||||
|
|
||||||
CFLAGS := -O2 -pipe -W -Wall -std=c99 -Iinclude/
|
CFLAGS := -pipe -W -Wall -std=c99 -Iinclude/
|
||||||
|
|
||||||
|
ifndef DEBUG
|
||||||
|
CFLAGS += -O2
|
||||||
|
else
|
||||||
|
CFLAGS += -DDEBUG -g -ggdb
|
||||||
|
|
||||||
|
ifeq ($(DEBUG),2)
|
||||||
|
CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(DEBUG),1)
|
|
||||||
CFLAGS += -DDEBUG -g -ggdb -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
##
|
##
|
||||||
@ -114,7 +121,12 @@ endif # darwin
|
|||||||
|
|
||||||
ifeq ($(UNAME),Linux)
|
ifeq ($(UNAME),Linux)
|
||||||
CFLAGS_NATIVE := -D_POSIX -DLINUX
|
CFLAGS_NATIVE := -D_POSIX -DLINUX
|
||||||
CFLAGS_NATIVE += -s $(CFLAGS)
|
|
||||||
|
ifndef DEBUG
|
||||||
|
CFLAGS_NATIVE += -s
|
||||||
|
endif
|
||||||
|
|
||||||
|
CFLAGS_NATIVE += $(CFLAGS)
|
||||||
|
|
||||||
LFLAGS_NATIVE := -lpthread -ldl
|
LFLAGS_NATIVE := -lpthread -ldl
|
||||||
|
|
||||||
@ -137,7 +149,12 @@ endif # linux
|
|||||||
##
|
##
|
||||||
|
|
||||||
CFLAGS_CROSS_LINUX := -D_POSIX -DLINUX
|
CFLAGS_CROSS_LINUX := -D_POSIX -DLINUX
|
||||||
CFLAGS_CROSS_LINUX += -s $(CFLAGS)
|
|
||||||
|
ifndef DEBUG
|
||||||
|
CFLAGS_CROSS_LINUX += -s
|
||||||
|
endif
|
||||||
|
|
||||||
|
CFLAGS_CROSS_LINUX += $(CFLAGS)
|
||||||
CFLAGS_CROSS_LINUX += -I$(OPENCL_HEADERS_KHRONOS)/
|
CFLAGS_CROSS_LINUX += -I$(OPENCL_HEADERS_KHRONOS)/
|
||||||
|
|
||||||
ifneq (,$(filter 1,$(WITH_ADL) $(WITH_NVML)))
|
ifneq (,$(filter 1,$(WITH_ADL) $(WITH_NVML)))
|
||||||
@ -153,7 +170,12 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS_CROSS_WIN := -D_WIN -DWIN -D__MSVCRT__ -D__USE_MINGW_ANSI_STDIO=1
|
CFLAGS_CROSS_WIN := -D_WIN -DWIN -D__MSVCRT__ -D__USE_MINGW_ANSI_STDIO=1
|
||||||
CFLAGS_CROSS_WIN += -s $(filter-out -fsanitize=address,$(CFLAGS))
|
|
||||||
|
ifndef DEBUG
|
||||||
|
CFLAGS_CROSS_WIN += -s
|
||||||
|
endif
|
||||||
|
|
||||||
|
CFLAGS_CROSS_WIN += $(filter-out -fsanitize=address,$(CFLAGS))
|
||||||
CFLAGS_CROSS_WIN += -I$(OPENCL_HEADERS_KHRONOS)/
|
CFLAGS_CROSS_WIN += -I$(OPENCL_HEADERS_KHRONOS)/
|
||||||
|
|
||||||
ifneq (,$(filter 1,$(WITH_ADL) $(WITH_NVAPI)))
|
ifneq (,$(filter 1,$(WITH_ADL) $(WITH_NVAPI)))
|
||||||
|
Loading…
Reference in New Issue
Block a user