blob: 2ca436026483b844ec9dae1f63460c2cb7f102cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# $OpenBSD: Makefile,v 1.13 2004/12/29 04:39:17 david Exp $
PROG= kqueue-test
CFLAGS+=-Wall
SRCS= kqueue-pipe.c kqueue-fork.c main.c kqueue-process.c kqueue-random.c \
kqueue-pty.c kqueue-tun.c
LDADD= -levent -lutil
DPADD= ${LIBEVENT} ${LIBUTIL}
kq-pipe: ${PROG}
./${PROG} -p
kq-fork: ${PROG}
./${PROG} -f
kq-process: ${PROG}
./${PROG} -P
kq-random: ${PROG}
./${PROG} -r
kq-tun: ${PROG}
@-${SUDO} sh -c 'cd /dev && sh MAKEDEV tun98 tun99'
@EVENT_SHOW_METHOD=yes EVENT_NOPOLL=yes EVENT_NOSELECT=yes ${SUDO} ./${PROG} -t
@EVENT_SHOW_METHOD=yes EVENT_NOPOLL=yes EVENT_NOKQUEUE=yes ${SUDO} ./${PROG} -t
@EVENT_SHOW_METHOD=yes EVENT_NOSELECT=yes EVENT_NOKQUEUE=yes ${SUDO} ./${PROG} -t
@-${SUDO} ifconfig tun98 destroy
@-${SUDO} ifconfig tun99 destroy
@-${SUDO} rm -f /dev/tun98 /dev/tun99
kq-pty: ${PROG}
${SUDO} ./${PROG} -T
REGRESS_TARGETS=kq-pipe kq-fork kq-process kq-random kq-tun kq-pty
REGRESS_ROOT_TARGETS=${REGRESS_TARGETS}
.PHONY: ${REGRESS_TARGETS}
.include <bsd.regress.mk>
|