From 7b3d34f875f6267343b090c0c1a74a6700258f29 Mon Sep 17 00:00:00 2001 From: niklas Date: Fri, 7 Apr 2000 22:06:28 +0000 Subject: [PATCH] Merge with EOM 1.68 author: niklas Make gmp a feature, which we do not use normally author: niklas I am probably breaking the other OSes now, but FEATURES really belong here. Also add MP_FLAVOUR setting. author: ho Revert to manual OS selection. Remove FEATURES definition. author: ho Removed unused stuff. author: ho Another way to do multiple OSes author: ho Work around missing :U for features, get OS from uname. --- sbin/isakmpd/Makefile | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/sbin/isakmpd/Makefile b/sbin/isakmpd/Makefile index f52a49b803d..3e5ae725d68 100644 --- a/sbin/isakmpd/Makefile +++ b/sbin/isakmpd/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.25 2000/02/25 17:23:38 niklas Exp $ -# $EOM: Makefile,v 1.62 2000/02/20 19:58:36 niklas Exp $ +# $OpenBSD: Makefile,v 1.26 2000/04/07 22:06:28 niklas Exp $ +# $EOM: Makefile,v 1.68 2000/04/07 20:02:41 niklas Exp $ # # Copyright (c) 1998, 1999, 2000 Niklas Hallqvist. All rights reserved. +# Copyright (c) 2000 HÃ¥kan Olsson. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -41,15 +42,18 @@ # # openbsd means 2.5 or newer, openbsd-encap is for older kernels with PF_ENCAP -# linux is the name for Linux with FreeS/WAN integrated, freebsd means FreeBSD -# with KAME IPsec. +# linux is the name for Linux with FreeS/WAN integrated, freebsd/netbsd means +# FreeBSD/NetBSD with KAME IPsec. OS= openbsd #OS= openbsd-encap +#OS= netbsd #OS= freebsd #OS= linux # Compile-time configuration of otherwise optional features +#FEATURES= tripledes blowfish cast policy x509 ec aggressive debug gmp FEATURES= tripledes blowfish cast policy x509 ec aggressive debug +#FEATURES= .PATH: ${.CURDIR}/sysdep/${OS} @@ -76,7 +80,7 @@ CFLAGS+= -Wall -DNEED_SYSDEP_APP \ # Different debugging & profiling suggestions # Include symbolic debugging info -DEBUG= -g +#DEBUG= -g # Do execution time profiles #CFLAGS+= -pg @@ -117,12 +121,13 @@ DEBUG= -g SUBDIR= apps +.include "sysdep/${OS}/Makefile.sysdep" + .if ${FEATURES} != "" -CFLAGS+= ${FEATURES:U:S/^/-DUSE_/} +FEATURES_UC!= echo ${FEATURES} | tr '[:lower:]' '[:upper:]' +CFLAGS+= ${FEATURES_UC:S/^/-DUSE_/} .endif -.include "sysdep/${OS}/Makefile.sysdep" - .if !make(install) && !defined(NO_REGRESS) SUBDIR+= regress .endif @@ -133,6 +138,14 @@ SUBDIR+= regress .endif .endfor +.ifdef USE_GMP +CFLAGS+= -DMP_FLAVOUR=MP_FLAVOUR_GMP +LDADD+= -lgmp +DPADD+= ${LIBGMP} +.else +CFLAGS+= -DMP_FLAVOUR=MP_FLAVOUR_OPENSSL +.endif + .ifdef HAVE_DLOPEN CFLAGS+= -DHAVE_DLOPEN SRCS+= dyn.c -- 2.20.1