Makefile revision 1.7
1# $OpenBSD: Makefile,v 1.7 2019/02/01 07:15:01 anton Exp $ 2 3WARNINGS= yes 4 5DEVICES= wskbd0 wsmouse0 wskbd 6 7PROG_sigio= sigio 8PROGS+= ${PROG_sigio} 9SRCS_sigio= sigio.c util.c 10 11TESTS_sigio+= getown-fcntl 12TESTS_sigio+= getown-ioctl 13TESTS_sigio+= gpgrp 14TESTS_sigio+= setown-fcntl 15TESTS_sigio+= setown-ioctl 16TESTS_sigio+= spgrp 17TESTS_sigio+= sigio 18 19# SIGIO using event injection is limited to wsmux devices. 20IGNORE_sigio+= wskbd0-sigio 21IGNORE_sigio+= wsmouse0-sigio 22 23.for d in ${DEVICES} 24. for t in ${TESTS_sigio} 25. if empty(IGNORE_sigio:M$d-$t) 26REGRESS_TARGETS+= ${PROG_sigio}-$d-$t 27${PROG_sigio}-$d-$t: ${PROG_sigio} 28 @echo "\n======== ${@} ========" 29 ./${PROG_sigio} -d /dev/$d $t 30. endif 31. endfor 32.endfor 33 34PROG_wscons= wscons 35PROGS+= ${PROG_wscons} 36SRCS_wscons= wscons.c util.c 37 38TESTS_wscons+= ioctl-unknown 39 40.for d in ${DEVICES} 41. for t in ${TESTS_wscons} 42REGRESS_TARGETS+= ${PROG_wscons}-$d-$t 43${PROG_wscons}-$d-$t: ${PROG_wscons} 44 @echo "\n======== ${@} ========" 45 ./${PROG_wscons} -d /dev/$d $t 46. endfor 47.endfor 48 49.include <bsd.regress.mk> 50