]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - tools/regression/poll/Makefile
Copy head to stable/8 as part of 8.0 Release cycle.
[FreeBSD/stable/8.git] / tools / regression / poll / Makefile
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
6 PROG=   pipepoll pipeselect
7 CFLAGS+= -Werror -Wall
8
9 all: ${PROG}
10 pipepoll: pipepoll.c
11 pipeselect: pipeselect.c
12
13 pipepoll pipeselect:
14         ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.c
15
16 test: all
17         -for prog in ${PROG}; do \
18                 ./$${prog} > $${prog}.out.new; \
19                 diff -u1 $${prog}.out $${prog}.out.new; \
20         done
21
22 clean:
23         for prog in ${PROG}; do \
24                 rm -f $${prog} $${prog}.out.new; \
25         done
26
27 rename:
28         for prog in ${PROG}; do \
29                 mv $${prog}.out.new $${prog}.out; \
30         done
31
32 veryclean: clean
33         for prog in ${PROG}; do \
34                 rm -f $${prog}.out; \
35         done