Makefile revision 196554
1107178Snjl# $FreeBSD: head/tools/regression/poll/Makefile 196554 2009-08-25 20:33:37Z jilles $ 2107178Snjl# This makefile has been uglified for portability. 3107178Snjl# Nothing yet works with gmake for the path to the sources. 4107178Snjl.PATH: .. 5107178Snjl 6107178SnjlPROG= pipepoll pipeselect sockpoll 7107178SnjlCFLAGS+= -Werror -Wall 8107178Snjl 9107178Snjlall: ${PROG} 10107178Snjlpipepoll: pipepoll.c 11107178Snjlpipeselect: pipeselect.c 12107178Snjlsockpoll: sockpoll.c 13107178Snjl 14107178Snjlpipepoll pipeselect sockpoll: 15107178Snjl ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.c 16107178Snjl 17107178Snjltest: all 18107178Snjl -for prog in ${PROG}; do \ 19107178Snjl ./$${prog} > $${prog}.out.new; \ 20107178Snjl diff -u1 $${prog}.out $${prog}.out.new; \ 21107178Snjl done 22107178Snjl 23107178Snjlclean: 24107178Snjl for prog in ${PROG}; do \ 25107178Snjl rm -f $${prog} $${prog}.out.new; \ 26107178Snjl done 27107178Snjl 28107178Snjlrename: 29107178Snjl for prog in ${PROG}; do \ 30107178Snjl mv $${prog}.out.new $${prog}.out; \ 31107178Snjl done 32107178Snjl 33107178Snjlveryclean: clean 34107178Snjl for prog in ${PROG}; do \ 35124307Snjl rm -f $${prog}.out; \ 36162704Smjacob done 37107178Snjl