forked from SynoCommunity/spksrc
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 866 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PKG_NAME = phc-winner-argon2
PKG_VERS = 20190702
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/P-H-C/phc-winner-argon2/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
DEPENDS =
HOMEPAGE = https://github.com/P-H-C/phc-winner-argon2/
COMMENT = The password hash Argon2, winner of PHC.
LICENSE = Apache 2.0
CONFIGURE_TARGET = nop
ENV += DESTDIR=$(INSTALL_DIR)
ENV += PREFIX=$(INSTALL_PREFIX)
# avoid host machine specific library path:
ENV += LIBRARY_REL=lib
include ../../mk/spksrc.common.mk
# To ensure compatibility with Denverton CPU
ifeq ($(findstring $(ARCH),$(x64_ARCHS)),$(ARCH))
ADDITIONAL_CFLAGS += -mno-avx -mno-avx2 -mno-sse4.1 -mno-sse4.2 -mno-bmi2
ADDITIONAL_CFLAGS += -DARGON2_NO_INTRINSICS -DBLAKE2_USE_PORTABLE
endif
include ../../mk/spksrc.cross-cc.mk