diff options
Diffstat (limited to 'sbin/isakmpd/regress/group')
-rw-r--r-- | sbin/isakmpd/regress/group/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sbin/isakmpd/regress/group/Makefile b/sbin/isakmpd/regress/group/Makefile index 95db32de841..e15fef033f7 100644 --- a/sbin/isakmpd/regress/group/Makefile +++ b/sbin/isakmpd/regress/group/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 2000/04/07 22:04:24 niklas Exp $ +# $OpenBSD: Makefile,v 1.7 2001/01/27 11:24:42 niklas Exp $ # $EOM: Makefile,v 1.12 2000/04/07 20:19:43 niklas Exp $ # Test Group: @@ -9,12 +9,21 @@ SRCS= math_2n.c math_ec2n.c math_group.c grouptest.c log.c util.c \ TOPSRC= ${.CURDIR}/../.. TOPOBJ!= cd ${TOPSRC}; printf "all:\n\t@pwd\n" |${MAKE} -f- OS!= awk '/^OS=/ { print $$2 }' ${.CURDIR}/../../Makefile +FEATURES!= awk '/^FEATURES=/ { print $$0 }' ${.CURDIR}/../../Makefile | sed 's/FEATURES=.//' .PATH: ${TOPSRC} ${TOPSRC}/sysdep/${OS} ${TOPOBJ} CFLAGS+= -I${TOPSRC} -I${TOPSRC}/sysdep/${OS} -I${TOPOBJ} -Wall \ - -DUSE_EC -DMP_FLAVOUR=MP_FLAVOUR_OPENSSL + -DUSE_EC NOMAN= LDADD+= -lcrypto DPADD+= ${LIBCRYPTO} DEBUG= -g +.if ${FEATURES:Mgmp} == "gmp" +CFLAGS+= -DMP_FLAVOUR=MP_FLAVOUR_GMP +LDADD+= -lgmp +DPADD+= ${LIBGMP} +.else +CFLAGS+= -DMP_FLAVOUR=MP_FLAVOUR_OPENSSL +.endif + .include <bsd.prog.mk> |