summaryrefslogtreecommitdiffstats
path: root/factor/Makefile
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>2002-06-15 02:12:23 +0000
committersimonb <simonb@NetBSD.org>2002-06-15 02:12:23 +0000
commit62de4eef616c76bff3922c731ade691d3e394325 (patch)
treee1db63e0977d1de92f378c4cd199242f1f2d276a /factor/Makefile
parent626903439b2df287fd31ab00fa78eea25ae0a22d (diff)
downloadbsdgames-darwin-62de4eef616c76bff3922c731ade691d3e394325.tar.gz
bsdgames-darwin-62de4eef616c76bff3922c731ade691d3e394325.tar.zst
bsdgames-darwin-62de4eef616c76bff3922c731ade691d3e394325.zip
Use libcrypto's bignum support to implement a Pollard Rho factoring
algorithm so we can factorise numbers larger than a host long.
Diffstat (limited to 'factor/Makefile')
-rw-r--r--factor/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/factor/Makefile b/factor/Makefile
index 8f8baf7a..f5224add 100644
--- a/factor/Makefile
+++ b/factor/Makefile
@@ -1,9 +1,11 @@
-# $NetBSD: Makefile,v 1.7 1997/10/22 04:43:26 lukem Exp $
+# $NetBSD: Makefile,v 1.8 2002/06/15 02:12:23 simonb Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= factor
SRCS= factor.c pr_tbl.c
CPPFLAGS+=-I${.CURDIR}/../primes
+LDADD+= -lcrypto
+DPADD+= ${LIBCRYPTO}
MAN= factor.6
MLINKS+=factor.6 primes.6
.PATH: ${.CURDIR}/../primes