summaryrefslogtreecommitdiffstats
path: root/factor/Makefile
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2002-06-16 22:24:00 +0000
committeritojun <itojun@NetBSD.org>2002-06-16 22:24:00 +0000
commitac3d51498dea72f42e103a8e8877edf154c60b8f (patch)
treea11a627ab878c12ec6328d0f31e04f8bc736f0e9 /factor/Makefile
parentbfdba68dccf7d15097336930dd36bbcf1d5ecd03 (diff)
downloadbsdgames-darwin-ac3d51498dea72f42e103a8e8877edf154c60b8f.tar.gz
bsdgames-darwin-ac3d51498dea72f42e103a8e8877edf154c60b8f.zip
make factor work with and without openssl.
Diffstat (limited to 'factor/Makefile')
-rw-r--r--factor/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/factor/Makefile b/factor/Makefile
index f5224add..89ea508b 100644
--- a/factor/Makefile
+++ b/factor/Makefile
@@ -1,11 +1,19 @@
-# $NetBSD: Makefile,v 1.8 2002/06/15 02:12:23 simonb Exp $
+# $NetBSD: Makefile,v 1.9 2002/06/16 22:24:01 itojun Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
+# For MKCRYPTO
+.include <bsd.own.mk>
+
PROG= factor
SRCS= factor.c pr_tbl.c
CPPFLAGS+=-I${.CURDIR}/../primes
+
+.if (${MKCRYPTO} != "no")
+CPPFLAGS+=-DHAVE_OPENSSL
LDADD+= -lcrypto
DPADD+= ${LIBCRYPTO}
+.endif
+
MAN= factor.6
MLINKS+=factor.6 primes.6
.PATH: ${.CURDIR}/../primes