diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-01-11 22:58:17 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-01-11 22:58:17 +0000 |
commit | b7afdb98e8777224dec4fcf23f895b900f280078 (patch) | |
tree | bd422b7ed7797038aa3b7cf1927ff2a2512230b6 /regress/lib | |
parent | 86f6e85800d84f462201f382571b174e1dae3b68 (diff) |
Regress and Makefile cleanup.
OK rob@
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libagentx/Makefile | 18 | ||||
-rw-r--r-- | regress/lib/libagentx/main.c | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/regress/lib/libagentx/Makefile b/regress/lib/libagentx/Makefile index 80ae7cee81d..992fd263962 100644 --- a/regress/lib/libagentx/Makefile +++ b/regress/lib/libagentx/Makefile @@ -1,22 +1,20 @@ -# $OpenBSD: Makefile,v 1.1 2021/01/04 19:24:55 rob Exp $ +# $OpenBSD: Makefile,v 1.2 2021/01/11 22:58:16 bluhm Exp $ -REGRESS_TARGETS= run-regress-agentx - -NETSNMP = $((grep _netsnmp /etc/group)) - -.if empty (NETSNMP) +.if ! exists(/usr/local/lib/libnetsnmpagent.a) regress: - @echo NETSNMP package required. + @echo Install net-snmp package to run this regress. @echo SKIPPED .endif -SRCS= main.c log.c PROG= agentx +SRCS= main.c log.c CFLAGS= -Wall NOMAN= yes LDADD= -lagentx -levent -run-regress-agentx: - ${SUDO} ${.OBJDIR}/agentx +REGRESS_TARGETS= run-regress-agentx + +run-regress-agentx: ${PROG} + ${SUDO} ./${PROG} .include <bsd.regress.mk> diff --git a/regress/lib/libagentx/main.c b/regress/lib/libagentx/main.c index f2751533315..7486220e916 100644 --- a/regress/lib/libagentx/main.c +++ b/regress/lib/libagentx/main.c @@ -1,3 +1,5 @@ +/* $OpenBSD: main.c,v 1.2 2021/01/11 22:58:16 bluhm Exp $ */ + /* * Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org> * |