summaryrefslogtreecommitdiff
path: root/regress/lib/libevent/Makefile
blob: 698042910d1245c1583ad025349e7bc65ba23372 (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
34
35
36
37
38
39
40
41
42
#       $OpenBSD: Makefile,v 1.7 2010/06/26 23:31:11 nicm Exp $

REGRESS_TARGETS=  run-regress run-test-eof run-test-init run-test-time
REGRESS_TARGETS+= run-test-weof

CFLAGS+= -I${.CURDIR}/../../../lib/libevent \
	-DHAVE_FCNTL \
	-DHAVE_SIGACTION \
	-DHAVE_SYS_SOCKET_H \
	-DHAVE_SYS_TIME_H \
	-DHAVE_UNISTD_H
LDFLAGS+= -levent
CLEANFILES= event_regress test-eof test-init test-time test-weof

.PHONY: ${REGRESS_TARGETS}

run-regress: event_regress
	EVENT_NOPOLL=1 EVENT_NOSELECT=1 ./event_regress
	EVENT_NOKQUEUE=1 EVENT_NOSELECT=1 ./event_regress
	EVENT_NOKQUEUE=1 EVENT_NOPOLL=1 ./event_regress

run-test-eof: test-eof
	EVENT_NOPOLL=1 EVENT_NOSELECT=1 ./test-eof
	EVENT_NOKQUEUE=1 EVENT_NOSELECT=1 ./test-eof
	EVENT_NOKQUEUE=1 EVENT_NOPOLL=1 ./test-eof

run-test-init: test-init
	EVENT_NOPOLL=1 EVENT_NOSELECT=1 ./test-init
	EVENT_NOKQUEUE=1 EVENT_NOSELECT=1 ./test-init
	EVENT_NOKQUEUE=1 EVENT_NOPOLL=1 ./test-init

run-test-time: test-time
	EVENT_NOPOLL=1 EVENT_NOSELECT=1 ./test-time
	EVENT_NOKQUEUE=1 EVENT_NOSELECT=1 ./test-time
	EVENT_NOKQUEUE=1 EVENT_NOPOLL=1 ./test-time

run-test-weof: test-weof
	EVENT_NOPOLL=1 EVENT_NOSELECT=1 ./test-weof
	EVENT_NOKQUEUE=1 EVENT_NOSELECT=1 ./test-weof
	EVENT_NOKQUEUE=1 EVENT_NOPOLL=1 ./test-weof

.include <bsd.regress.mk>