Makefile revision 195878
1205354Simp# $FreeBSD: head/tools/regression/poll/Makefile 195878 2009-07-25 21:07:56Z kib $
2257639Sian# This makefile has been uglified for portability.
3257639Sian# Nothing yet works with gmake for the path to the sources.
4205354Simp.PATH: ..
5205354Simp
6205354SimpPROG=	pipepoll pipeselect
7210397SandrewCFLAGS+= -Werror -Wall
8205354Simp
9205354Simpall: ${PROG}
10205354Simppipepoll: pipepoll.c
11205354Simppipeselect: pipeselect.c
12205354Simp
13205354Simppipepoll pipeselect:
14205354Simp	${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.c
15205354Simp
16205354Simptest: 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