]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - factor/Makefile
remove duplicate
[bsdgames-darwin.git] / factor / Makefile
index 8f8baf7a13b7c8b6f442b8971564ef5383ad344e..8fee6f063c863c5769f318212c66829ed13de72d 100644 (file)
@@ -1,11 +1,22 @@
-#      $NetBSD: Makefile,v 1.7 1997/10/22 04:43:26 lukem Exp $
+#      $NetBSD: Makefile,v 1.12 2005/03/09 03:11:21 christos Exp $
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
+# For MKCRYPTO
+.include <bsd.own.mk>
+
+PRIMES=        ${NETBSDSRCDIR}/games/primes
+
 PROG=  factor
 SRCS=  factor.c pr_tbl.c
 PROG=  factor
 SRCS=  factor.c pr_tbl.c
-CPPFLAGS+=-I${.CURDIR}/../primes
+CPPFLAGS+=-I${PRIMES}
+
+.if (${MKCRYPTO} != "no")
+CPPFLAGS+=-DHAVE_OPENSSL
+LDADD+=        -lcrypto -lcrypt
+DPADD+=        ${LIBCRYPTO} ${LIBCRYPT}
+.endif
+
 MAN=   factor.6
 MAN=   factor.6
-MLINKS+=factor.6 primes.6
-.PATH: ${.CURDIR}/../primes
+.PATH: ${PRIMES}
 
 .include <bsd.prog.mk>
 
 .include <bsd.prog.mk>