Makefile revision 256281
1226031Sstas# $FreeBSD: stable/10/tools/regression/poll/Makefile 196554 2009-08-25 20:33:37Z jilles $ 2226031Sstas# This makefile has been uglified for portability. 3226031Sstas# Nothing yet works with gmake for the path to the sources. 4226031Sstas.PATH: .. 5226031Sstas 6226031SstasPROG= pipepoll pipeselect sockpoll 7226031SstasCFLAGS+= -Werror -Wall 8226031Sstas 9226031Sstasall: ${PROG} 10226031Sstaspipepoll: pipepoll.c 11226031Sstaspipeselect: pipeselect.c 12226031Sstassockpoll: sockpoll.c 13226031Sstas 14226031Sstaspipepoll pipeselect sockpoll: 15226031Sstas ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.c 16226031Sstas 17226031Sstastest: all 18226031Sstas -for prog in ${PROG}; do \ 19226031Sstas ./$${prog} > $${prog}.out.new; \ 20226031Sstas diff -u1 $${prog}.out $${prog}.out.new; \ 21226031Sstas done 22226031Sstas 23226031Sstasclean: 24226031Sstas for prog in ${PROG}; do \ 25226031Sstas rm -f $${prog} $${prog}.out.new; \ 26226031Sstas done 27226031Sstas 28226031Sstasrename: 29226031Sstas for prog in ${PROG}; do \ 30226031Sstas mv $${prog}.out.new $${prog}.out; \ 31226031Sstas done 32226031Sstas 33226031Sstasveryclean: clean 34226031Sstas for prog in ${PROG}; do \ 35226031Sstas rm -f $${prog}.out; \ 36226031Sstas done 37226031Sstas