</sys/src/ape/config
ROOT=../..

CFLAGS=-FV -B -u -c\
	-I../../include\
	-I../../include/compat\
	-DHAVE_ARC4RANDOM_BUF\
	-DHAVE_GETENTROPY\
	-DHAVE_GETPAGESIZE\
	-DHAVE_GETPROGNAME\
	-DHAVE_SOCK_OPTS\
	-DHAVE_STRCASECMP\
	-DHOST_PLAN9\
	-DLIBRESSL_INTERNAL\
	-DOPENSSLDIR="/sys/lib/tls"\
	-DOPENSSLDIR_DEFINED\
	-DOPENSSL_NO_HW_PADLOCK\
	-DPlan9\
	-D_BSD_EXTENSION\
	-D_PLAN9_SOURCE\
	-D_POSIX_SOURCE\
	-D_REENTRANT_SOURCE\
	-D_RESEARCH_SOURCE\
	-D_SUSV2_SOURCE\
	-D__BEGIN_HIDDEN_DECLS=\
	-D__END_HIDDEN_DECLS=\
	-I../../crypto\
	-I../../crypto/asn1\
	-I../../crypto/bn\
	-I../../crypto/ec\
	-I../../crypto/ecdh\
	-I../../crypto/ecdsa\
	-I../../crypto/evp\
	-I../../crypto/modes\

OFILES=\
	bsd-asprintf.$O\
	explicit_bzero.$O\
	freezero.$O\
	reallocarray.$O\
	recallocarray.$O\
	strlcat.$O\
	strlcpy.$O\
	strndup.$O\
	strnlen.$O\
	strsep.$O\
	syslog_r.$O\
	timegm.$O\
	timingsafe_bcmp.$O\
	timingsafe_memcmp.$O\

HFILES=\
	arc4random.h\
	arc4random_aix.h\
	arc4random_freebsd.h\
	arc4random_hpux.h\
	arc4random_linux.h\
	arc4random_netbsd.h\
	arc4random_osx.h\
	arc4random_solaris.h\
	arc4random_win.h\
	chacha_private.h\

LIB=/$objtype/lib/ape/libcrypto.a

</sys/src/cmd/mklib
