diff options
author | fanf <fanf@FreeBSD.org> | 2002-10-09 19:55:04 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2002-10-09 19:55:04 +0000 |
commit | 8adc3488acf2607d0d9d7f9064509c65c3565a28 (patch) | |
tree | f9bf6c4b217409d6a6c5c2e83811e3e652ca321d /games/factor/Makefile | |
parent | 428b49c8938ebe9d0019e097d21ce4802c0e13c8 (diff) | |
download | FreeBSD-src-8adc3488acf2607d0d9d7f9064509c65c3565a28.zip FreeBSD-src-8adc3488acf2607d0d9d7f9064509c65c3565a28.tar.gz |
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
Diffstat (limited to 'games/factor/Makefile')
-rw-r--r-- | games/factor/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/games/factor/Makefile b/games/factor/Makefile index 16896f0..8f68b92 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 |