projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
91b0cbc
)
add FreeBSD Makefile target
author
Nikolai Lifanov
<lifanov@mail.lifanov.com>
Tue, 5 Jul 2016 18:58:28 +0000
(14:58 -0400)
committer
Nikolai Lifanov
<lifanov@mail.lifanov.com>
Tue, 5 Jul 2016 18:58:28 +0000
(14:58 -0400)
src/Makefile
patch
|
blob
|
history
diff --git
a/src/Makefile
b/src/Makefile
index
cf44590
..
a36bf34
100644
(file)
--- a/
src/Makefile
+++ b/
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
UNAME := $(patsubst CYGWIN_NT-%,CYGWIN_NT-,$(UNAME))
# we need to strip the windows version number to be able to build hashcat on cygwin hosts
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")
endif
$(error "! Your Operating System ($(UNAME)) is not supported by $(PROG_NAME) Makefile")
endif
@@
-63,7
+63,7
@@
FIND := find
INSTALL := install
RM := rm
SED := sed
INSTALL := install
RM := rm
SED := sed
-ifeq ($(UNAME),Darwin)
+ifeq ($(UNAME),Darwin,FreeBSD)
SED := gsed
endif
SED := gsed
endif
@@
-126,6
+126,13
@@
CFLAGS_NATIVE += -DHAVE_HWMON
LFLAGS_NATIVE += $(LDFLAGS)
endif # linux
LFLAGS_NATIVE += $(LDFLAGS)
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
##