aboutsummaryrefslogtreecommitdiff
path: root/games/factor/Makefile
diff options
context:
space:
mode:
authorTony Finch <fanf@FreeBSD.org>2002-10-09 19:55:04 +0000
committerTony Finch <fanf@FreeBSD.org>2002-10-09 19:55:04 +0000
commit63f7eaa9321d80bce35051c16ae6d567bf096691 (patch)
treef9bf6c4b217409d6a6c5c2e83811e3e652ca321d /games/factor/Makefile
parentadd448e4e7ca9730b5eea4ba3c749a35a056349f (diff)
downloadsrc-63f7eaa9321d80bce35051c16ae6d567bf096691.tar.gz
src-63f7eaa9321d80bce35051c16ae6d567bf096691.zip
Factorize bignums using the Pollard Rho algorithm. The code comes
from NetBSD, altered to retain the FreeBSD -h feature and various stylistic improvements and avoid regressions. In the absence of OpenSSL (and therefore bignums) the old code is used. PR: 43831 Reviewed by: kris, markm, obrien Obtained from: NetBSD MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=104722
Diffstat (limited to 'games/factor/Makefile')
-rw-r--r--games/factor/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/games/factor/Makefile b/games/factor/Makefile
index 16896f041106..8f68b9294f77 100644
--- a/games/factor/Makefile
+++ b/games/factor/Makefile
@@ -4,6 +4,13 @@
PROG= factor
SRCS= factor.c pr_tbl.c
CFLAGS+=-I${.CURDIR}/../primes
+
+.if exists(${.CURDIR}/../../crypto) && !defined(NO_OPENSSL)
+CFLAGS+=-DHAVE_OPENSSL
+LDADD+= -lcrypto
+DPADD+= ${LIBCRYPTO}
+.endif
+
MAN= factor.6
MLINKS+=factor.6 primes.6
.PATH: ${.CURDIR}/../primes