Konstantin Belousov 5861f96654 Test suite for the poll(2)/select(2) on fifos, pipes and sockets,
and recorded results for several operating systems.

Submitted by:	bde
Approved by:	re (kensmith)
2009-07-12 12:50:43 +00:00

36 lines
661 B
Makefile

$ $FreeBSD$
# This makefile has been uglified for portability.
# Nothing yet works with gmake for the path to the sources.
.PATH: ..
PROG= pipepoll pipeselect
CFLAGS+= -Werror -Wall
all: ${PROG}
pipepoll: pipepoll.c
pipeselect: pipeselect.c
pipepoll pipeselect:
${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.c
test: all
-for prog in ${PROG}; do \
./$${prog} > $${prog}.out.new; \
diff -u1 $${prog}.out $${prog}.out.new; \
done
clean:
for prog in ${PROG}; do \
rm -f $${prog} $${prog}.out.new; \
done
rename:
for prog in ${PROG}; do \
mv $${prog}.out.new $${prog}.out; \
done
veryclean: clean
for prog in ${PROG}; do \
rm -f $${prog}.out; \
done