1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 20:39:17 +00:00

simplify Makefile

This commit is contained in:
Gabriele Gristina 2021-12-30 13:34:43 +01:00
parent 644e2db8ba
commit 85afe0fc5a

View File

@ -76,9 +76,6 @@ AR := /usr/bin/ar
SED := /usr/bin/sed
SED_IN_PLACE := -i ""
DARWIN_VERSION := $(shell uname -r | cut -d. -f1)
CLANG_VERSION := $(shell $(CC) --version | grep version | grep -o -m 1 "[0-9]\+\.[0-9]\+\.*[0-9]*" | head -n 1)
CLANG_VERSION_NUMBER := $(shell echo $(CLANG_VERSION) | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/')
CLANG_VERSION_GT_10 := $(shell expr $(CLANG_VERSION_NUMBER) \> 100000)
endif
ifeq ($(UNAME),FreeBSD)
@ -199,8 +196,6 @@ ifeq ($(USE_SYSTEM_LZMA),0)
CFLAGS_LZMA += -D_7ZIP_ST
ifneq ($(CC),clang)
CFLAGS_LZMA += -Wno-misleading-indentation
else ifeq ($(CLANG_VERSION_GT_10),1)
CFLAGS_LZMA += -Wno-misleading-indentation
endif
endif
@ -219,8 +214,6 @@ ifeq ($(USE_SYSTEM_UNRAR),0)
ifneq ($(CC),clang)
CFLAGS_UNRAR += -Wno-class-memaccess
CFLAGS_UNRAR += -Wno-misleading-indentation
else ifeq ($(CLANG_VERSION_GT_10),1)
CFLAGS_UNRAR += -Wno-misleading-indentation
endif
CFLAGS_UNRAR += -Wno-missing-braces
CFLAGS_UNRAR += -Wno-unused-variable