mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-23 16:38:29 +00:00
add FreeBSD Makefile target
This commit is contained in:
parent
91b0cbcc5a
commit
4a598af78c
11
src/Makefile
11
src/Makefile
@ -17,7 +17,7 @@ UNAME := $(shell uname -s)
|
|||||||
# we need to strip the windows version number to be able to build hashcat on cygwin hosts
|
# we need to strip the windows version number to be able to build hashcat on cygwin hosts
|
||||||
UNAME := $(patsubst CYGWIN_NT-%,CYGWIN_NT-,$(UNAME))
|
UNAME := $(patsubst CYGWIN_NT-%,CYGWIN_NT-,$(UNAME))
|
||||||
|
|
||||||
ifeq (,$(filter $(UNAME),Linux Darwin CYGWIN_NT-))
|
ifeq (,$(filter $(UNAME),Linux Darwin CYGWIN_NT- FreeBSD))
|
||||||
$(error "! Your Operating System ($(UNAME)) is not supported by $(PROG_NAME) Makefile")
|
$(error "! Your Operating System ($(UNAME)) is not supported by $(PROG_NAME) Makefile")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ FIND := find
|
|||||||
INSTALL := install
|
INSTALL := install
|
||||||
RM := rm
|
RM := rm
|
||||||
SED := sed
|
SED := sed
|
||||||
ifeq ($(UNAME),Darwin)
|
ifeq ($(UNAME),Darwin,FreeBSD)
|
||||||
SED := gsed
|
SED := gsed
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -126,6 +126,13 @@ CFLAGS_NATIVE += -DHAVE_HWMON
|
|||||||
LFLAGS_NATIVE += $(LDFLAGS)
|
LFLAGS_NATIVE += $(LDFLAGS)
|
||||||
endif # linux
|
endif # linux
|
||||||
|
|
||||||
|
ifeq ($(UNAME),FreeBSD)
|
||||||
|
CFLAGS_NATIVE := -D_POSIX
|
||||||
|
CFLAGS_NATIVE += $(CFLAGS)
|
||||||
|
LFLAGS_NATIVE := -lpthread
|
||||||
|
LFLAGS_NATIVE += $(LDFLAGS)
|
||||||
|
endif # freebsd
|
||||||
|
|
||||||
##
|
##
|
||||||
## Cross compilation target
|
## Cross compilation target
|
||||||
##
|
##
|
||||||
|
Loading…
Reference in New Issue
Block a user