X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/62de4eef616c76bff3922c731ade691d3e394325..c2997b6e22cfa183e7e73501ecdb2d5020434c9a:/factor/Makefile?ds=sidebyside diff --git a/factor/Makefile b/factor/Makefile index f5224add..8fee6f06 100644 --- a/factor/Makefile +++ b/factor/Makefile @@ -1,13 +1,22 @@ -# $NetBSD: Makefile,v 1.8 2002/06/15 02:12:23 simonb Exp $ +# $NetBSD: Makefile,v 1.12 2005/03/09 03:11:21 christos Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 +# For MKCRYPTO +.include + +PRIMES= ${NETBSDSRCDIR}/games/primes + PROG= factor SRCS= factor.c pr_tbl.c -CPPFLAGS+=-I${.CURDIR}/../primes -LDADD+= -lcrypto -DPADD+= ${LIBCRYPTO} +CPPFLAGS+=-I${PRIMES} + +.if (${MKCRYPTO} != "no") +CPPFLAGS+=-DHAVE_OPENSSL +LDADD+= -lcrypto -lcrypt +DPADD+= ${LIBCRYPTO} ${LIBCRYPT} +.endif + MAN= factor.6 -MLINKS+=factor.6 primes.6 -.PATH: ${.CURDIR}/../primes +.PATH: ${PRIMES} .include