# $OpenBSD: Makefile,v 1.16 2012/07/08 12:31:03 guenther 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 kqueue-signal.c kqueue-fdpass.c \ kqueue-flock.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} rm -f /dev/tun98 /dev/tun99 kq-pty: ${PROG} ${SUDO} ./${PROG} -T kq-signal: ${PROG} ./${PROG} -s kq-fdpass: ${PROG} ./${PROG} -F kq-flock: ${PROG} ./${PROG} -l REGRESS_TARGETS=kq-pipe kq-fork kq-process kq-random kq-tun kq-pty kq-signal \ kq-fdpass kq-flock REGRESS_ROOT_TARGETS=${REGRESS_TARGETS} .PHONY: ${REGRESS_TARGETS} .include