diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-07-03 18:19:56 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-07-03 18:19:56 +0000 |
commit | a6294ecc31b36de04b630a91372e341e82fb06e4 (patch) | |
tree | 42cdb5025522ba5dc8c54acdbe34436fc7596eb9 /regress/sbin/isakmpd | |
parent | 626c0ac76e5f393f232bd94f280084d6b5e41aa1 (diff) |
Generate source and header files for regress on demand.
OK espie@
Diffstat (limited to 'regress/sbin/isakmpd')
-rw-r--r-- | regress/sbin/isakmpd/Makefile.inc | 16 | ||||
-rw-r--r-- | regress/sbin/isakmpd/crypto/Makefile | 18 | ||||
-rw-r--r-- | regress/sbin/isakmpd/dh/Makefile | 10 | ||||
-rw-r--r-- | regress/sbin/isakmpd/exchange/Makefile | 6 | ||||
-rw-r--r-- | regress/sbin/isakmpd/hmac/Makefile | 16 | ||||
-rw-r--r-- | regress/sbin/isakmpd/prf/Makefile | 16 | ||||
-rw-r--r-- | regress/sbin/isakmpd/util/Makefile | 16 | ||||
-rw-r--r-- | regress/sbin/isakmpd/x509/Makefile | 10 |
8 files changed, 25 insertions, 83 deletions
diff --git a/regress/sbin/isakmpd/Makefile.inc b/regress/sbin/isakmpd/Makefile.inc new file mode 100644 index 00000000000..ba6c19daa0d --- /dev/null +++ b/regress/sbin/isakmpd/Makefile.inc @@ -0,0 +1,16 @@ +# $OpenBSD: Makefile.inc,v 1.1 2017/07/03 18:19:55 bluhm Exp $ + +TOPSRC= ${.CURDIR}/../../../../sbin/isakmpd +TOPOBJ!!= ${MAKE} -C ${TOPSRC} -V .OBJDIR +CFLAGS+= -I${TOPSRC} -I${TOPSRC}/sysdep/openbsd -I${TOPOBJ} -Wall +DEBUG= -g + +.PHONY: generated + +${PROG}: generated + +generated: + ${MAKE} -C ${TOPSRC} generated + +.PATH: ${.CURDIR}/../common +.PATH: ${TOPSRC} ${TOPSRC}/sysdep/openbsd ${TOPOBJ} diff --git a/regress/sbin/isakmpd/crypto/Makefile b/regress/sbin/isakmpd/crypto/Makefile index f0f8adcf552..a9e36091423 100644 --- a/regress/sbin/isakmpd/crypto/Makefile +++ b/regress/sbin/isakmpd/crypto/Makefile @@ -1,27 +1,13 @@ -# $OpenBSD: Makefile,v 1.4 2016/09/03 10:56:58 bluhm Exp $ +# $OpenBSD: Makefile,v 1.5 2017/07/03 18:19:55 bluhm Exp $ # $EOM: Makefile,v 1.7 2000/03/28 21:22:06 ho Exp $ # Test Crypto: PROG= cryptotest SRCS= crypto.c cryptotest.c conf.c log.c monitor.c util.c -TOPSRC= ${.CURDIR}/../../../../sbin/isakmpd -TOPOBJ!= cd ${TOPSRC}; printf "all:\n\t@pwd\n" |${MAKE} -f- -.PATH: ${.CURDIR}/../common -.PATH: ${TOPSRC} ${TOPSRC}/sysdep/openbsd ${TOPOBJ} -CFLAGS+= -I${TOPSRC} -I${TOPSRC}/sysdep/openbsd -I${TOPOBJ} -Wall \ - -DUSE_TRIPLEDES -DUSE_CAST -DUSE_BLOWFISH -DUSE_DES \ +CFLAGS+= -DUSE_TRIPLEDES -DUSE_CAST -DUSE_BLOWFISH -DUSE_DES \ -DUSE_AES LDADD+= -lcrypto DPADD+= ${LIBCRYPTO} -NOMAN= -DEBUG= -g - -.PHONY: isakmpd-depend - -all regress: isakmpd-depend - -isakmpd-depend: - cd ${TOPSRC} && ${MAKE} depend .include <bsd.regress.mk> diff --git a/regress/sbin/isakmpd/dh/Makefile b/regress/sbin/isakmpd/dh/Makefile index 41dba838c45..f62dcb6ad96 100644 --- a/regress/sbin/isakmpd/dh/Makefile +++ b/regress/sbin/isakmpd/dh/Makefile @@ -1,21 +1,15 @@ -# $OpenBSD: Makefile,v 1.2 2010/06/29 19:50:16 reyk Exp $ +# $OpenBSD: Makefile,v 1.3 2017/07/03 18:19:55 bluhm Exp $ # $EOM: Makefile,v 1.10 2000/04/07 20:19:43 niklas Exp $ # Test DH: PROG= dhtest SRCS= dh.c dhtest.c -TOPSRC= ${.CURDIR}/../../../../sbin/isakmpd -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/openbsd ${TOPOBJ} -CFLAGS+= -I${TOPSRC} -I${TOPSRC}/sysdep/openbsd -I${TOPOBJ} -Wall \ - -DUSE_EC -NOMAN= +CFLAGS+= -DUSE_EC LDADD+= -lcrypto DPADD+= ${LIBCRYPTO} -DEBUG= -g .if ${FEATURES:Mgmp} == "gmp" CFLAGS+= -DMP_FLAVOUR=MP_FLAVOUR_GMP diff --git a/regress/sbin/isakmpd/exchange/Makefile b/regress/sbin/isakmpd/exchange/Makefile index 13411897090..2f363b1da12 100644 --- a/regress/sbin/isakmpd/exchange/Makefile +++ b/regress/sbin/isakmpd/exchange/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2005/04/08 17:12:49 cloder Exp $ +# $OpenBSD: Makefile,v 1.2 2017/07/03 18:19:55 bluhm Exp $ # $EOM: Makefile,v 1.8 2000/03/28 21:22:07 ho Exp $ # @@ -29,10 +29,6 @@ # This code was written under funding by Ericsson Radio Systems. # -TOPSRC= ${.CURDIR}/../../../../sbin/isakmpd -TOPOBJ!= cd ${TOPSRC}; printf "all:\n\t@pwd\n" |${MAKE} -f- -.PATH: ${TOPSRC} ${TOPSRC}/sysdep/openbsd ${TOPOBJ} -CFLAGS+= -I${TOPSRC} -I${TOPSRC}/sysdep/openbsd -I${TOPOBJ} -Wall RUN= ${SUDO} env ISAKMPD=${TOPOBJ}/isakmpd sh ${.CURDIR}/run.sh TESTS= def diff --git a/regress/sbin/isakmpd/hmac/Makefile b/regress/sbin/isakmpd/hmac/Makefile index e906b4b89bc..dbf304ff254 100644 --- a/regress/sbin/isakmpd/hmac/Makefile +++ b/regress/sbin/isakmpd/hmac/Makefile @@ -1,23 +1,9 @@ -# $OpenBSD: Makefile,v 1.3 2016/09/03 10:56:58 bluhm Exp $ +# $OpenBSD: Makefile,v 1.4 2017/07/03 18:19:55 bluhm Exp $ # $EOM: Makefile,v 1.3 1999/02/25 15:14:24 niklas Exp $ # Test HMAC: PROG= hmactest SRCS= hash.c hmactest.c conf.c log.c monitor.c util.c -TOPSRC= ${.CURDIR}/../../../../sbin/isakmpd -TOPOBJ!= cd ${TOPSRC}; printf "all:\n\t@pwd\n" |${MAKE} -f- -.PATH: ${.CURDIR}/../common -.PATH: ${TOPSRC} ${TOPSRC}/sysdep/openbsd ${TOPOBJ} -CFLAGS+= -I${TOPSRC} -I${TOPSRC}/sysdep/openbsd -I${TOPOBJ} -Wall -NOMAN= -DEBUG= -g - -.PHONY: isakmpd-depend - -all regress: isakmpd-depend - -isakmpd-depend: - cd ${TOPSRC} && ${MAKE} depend .include <bsd.regress.mk> diff --git a/regress/sbin/isakmpd/prf/Makefile b/regress/sbin/isakmpd/prf/Makefile index 79e07981d71..96e9d954326 100644 --- a/regress/sbin/isakmpd/prf/Makefile +++ b/regress/sbin/isakmpd/prf/Makefile @@ -1,23 +1,9 @@ -# $OpenBSD: Makefile,v 1.3 2016/09/03 10:56:58 bluhm Exp $ +# $OpenBSD: Makefile,v 1.4 2017/07/03 18:19:55 bluhm Exp $ # $EOM: Makefile,v 1.6 2000/03/28 21:22:07 ho Exp $ # Test PRF: PROG= prftest SRCS= prf.c hash.c log.c prftest.c conf.c monitor.c util.c -TOPSRC= ${.CURDIR}/../../../../sbin/isakmpd -TOPOBJ!= cd ${TOPSRC}; printf "all:\n\t@pwd\n" |${MAKE} -f- -.PATH: ${.CURDIR}/../common -.PATH: ${TOPSRC} ${TOPSRC}/sysdep/openbsd ${TOPOBJ} -CFLAGS+= -I${TOPSRC} -I${TOPSRC}/sysdep/openbsd -I${TOPOBJ} -Wall -NOMAN= -DEBUG= -g - -.PHONY: isakmpd-depend - -all regress: isakmpd-depend - -isakmpd-depend: - cd ${TOPSRC} && ${MAKE} depend .include <bsd.regress.mk> diff --git a/regress/sbin/isakmpd/util/Makefile b/regress/sbin/isakmpd/util/Makefile index 9970247fa65..b9660d89706 100644 --- a/regress/sbin/isakmpd/util/Makefile +++ b/regress/sbin/isakmpd/util/Makefile @@ -1,22 +1,8 @@ -# $OpenBSD: Makefile,v 1.3 2016/09/03 10:56:58 bluhm Exp $ +# $OpenBSD: Makefile,v 1.4 2017/07/03 18:19:55 bluhm Exp $ # Test some utility functions PROG= utiltest SRCS= log.c util.c utiltest.c conf.c monitor.c -TOPSRC= ${.CURDIR}/../../../../sbin/isakmpd -TOPOBJ!= cd ${TOPSRC}; printf "all:\n\t@pwd\n" |${MAKE} -f- -.PATH: ${.CURDIR}/../common -.PATH: ${TOPSRC} ${TOPSRC}/sysdep/openbsd ${TOPOBJ} -CFLAGS+= -I${TOPSRC} -I${TOPSRC}/sysdep/openbsd -I${TOPOBJ} -Wall -NOMAN= -DEBUG= -g - -.PHONY: isakmpd-depend - -all regress: isakmpd-depend - -isakmpd-depend: - cd ${TOPSRC} && ${MAKE} depend .include <bsd.regress.mk> diff --git a/regress/sbin/isakmpd/x509/Makefile b/regress/sbin/isakmpd/x509/Makefile index af44e8f1d35..d0f99bb8b00 100644 --- a/regress/sbin/isakmpd/x509/Makefile +++ b/regress/sbin/isakmpd/x509/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2005/04/08 17:12:50 cloder Exp $ +# $OpenBSD: Makefile,v 1.2 2017/07/03 18:19:55 bluhm Exp $ # $EOM: Makefile,v 1.16 2000/09/28 12:53:27 niklas Exp $ # @@ -39,14 +39,8 @@ PROG= x509test SRCS= x509test.c conf.c log.c libcrypto.c sysdep.c field.c util.c \ isakmp_fld.c ipsec_fld.c ipsec_num.c isakmp_num.c constants.c \ cert.c -TOPSRC= ${.CURDIR}/../../../../sbin/isakmpd -TOPOBJ!= cd ${TOPSRC}; printf "all:\n\t@pwd\n" |${MAKE} -f- OS!= awk '/^OS=/ { print $$2 }' ${.CURDIR}/../../Makefile FEATURES!= awk '/^FEATURES=/ { print $$0 }' ${TOPSRC}/Makefile | sed 's/FEATURES=.//' -.PATH: ${TOPSRC} ${TOPSRC}/sysdep/openbsd ${TOPOBJ} -CFLAGS+= -I${TOPSRC} -I${TOPSRC}/sysdep/openbsd -I${TOPOBJ} -Wall -NOMAN= -DEBUG= -g .if ${FEATURES:Mgmp} == "gmp" CFLAGS+= -DMP_FLAVOUR=MP_FLAVOUR_GMP @@ -56,8 +50,6 @@ DPADD+= ${LIBGMP} CFLAGS+= -DMP_FLAVOUR=MP_FLAVOUR_OPENSSL .endif -.include "${TOPSRC}/sysdep/openbsd/Makefile.sysdep" - X509= x509.c POLICY= policy.c |