[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / apache2 / argon2 / lib / libargon2

File: [cvs.NetBSD.org] / src / external / apache2 / argon2 / lib / libargon2 / Makefile (download)

Revision 1.2, Mon Oct 21 02:36:48 2019 UTC (4 years, 5 months ago) by jhigh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: phil-wifi
Changes since 1.1: +1 -9 lines

adding argon2 support to libcrypt. argon2 user authentication now
available via MKARGON2=yes (3 variants supported; argon2id recommended)
before using, please read argon2 paper at
https://github.com/P-H-C/phc-winner-argon2

USE_SHLIBDIR=	yes
SHLIB_MAJOR=  1
SHLIB_MINOR=  0

#DIST=../../dist/phc-winner-argon2

.PATH: ../../dist/phc-winner-argon2/src ../../dist/phc-winner-argon2/src/blake2 ../../dist/phc-winner-argon2/include

INCS=   	argon2.h
INCSDIR=	/usr/include

LIB=	argon2	
SRCS=	argon2.c core.c blake2b.c thread.c encoding.c ref.c

CPPFLAGS= -std=c89 -O3 -Wall -g -I../../dist/phc-winner-argon2/include -Isrc -fPIC -DARGON2_NO_THREADS

OPTTARGET ?= native
OPTTEST := $(shell $(CC) -Iinclude -Isrc -march=$(OPTTARGET) src/opt.c -c \
                        -o /dev/null 2>/dev/null; echo $$?)

install:	all incinstall
.include <bsd.lib.mk>