xref: /freebsd/tools/regression/poll/Makefile (revision 5861f9665471e98e544f6fa3ce73c4912229ff82)
1$ $FreeBSD$
2# This makefile has been uglified for portability.
3# Nothing yet works with gmake for the path to the sources.
4.PATH: ..
5
6PROG=	pipepoll pipeselect
7CFLAGS+= -Werror -Wall
8
9all: ${PROG}
10pipepoll: pipepoll.c
11pipeselect: pipeselect.c
12
13pipepoll pipeselect:
14	${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.c
15
16test: all
17	-for prog in ${PROG}; do \
18		./$${prog} > $${prog}.out.new; \
19		diff -u1 $${prog}.out $${prog}.out.new; \
20	done
21
22clean:
23	for prog in ${PROG}; do \
24		rm -f $${prog} $${prog}.out.new; \
25	done
26
27rename:
28	for prog in ${PROG}; do \
29		mv $${prog}.out.new $${prog}.out; \
30	done
31
32veryclean: clean
33	for prog in ${PROG}; do \
34		rm -f $${prog}.out; \
35	done
36