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