Makefile revision 195636
1$ $FreeBSD: head/tools/regression/poll/Makefile 195636 2009-07-12 12:50:43Z kib $
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