1195878Skib# $FreeBSD: releng/10.2/tools/regression/poll/Makefile 196554 2009-08-25 20:33:37Z jilles $ 2195636Skib# This makefile has been uglified for portability. 3195636Skib# Nothing yet works with gmake for the path to the sources. 4195636Skib.PATH: .. 5195636Skib 6196554SjillesPROG= pipepoll pipeselect sockpoll 7195636SkibCFLAGS+= -Werror -Wall 8195636Skib 9195636Skiball: ${PROG} 10195636Skibpipepoll: pipepoll.c 11195636Skibpipeselect: pipeselect.c 12196554Sjillessockpoll: sockpoll.c 13195636Skib 14196554Sjillespipepoll pipeselect sockpoll: 15195636Skib ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.c 16195636Skib 17195636Skibtest: all 18195636Skib -for prog in ${PROG}; do \ 19195636Skib ./$${prog} > $${prog}.out.new; \ 20195636Skib diff -u1 $${prog}.out $${prog}.out.new; \ 21195636Skib done 22195636Skib 23195636Skibclean: 24195636Skib for prog in ${PROG}; do \ 25195636Skib rm -f $${prog} $${prog}.out.new; \ 26195636Skib done 27195636Skib 28195636Skibrename: 29195636Skib for prog in ${PROG}; do \ 30195636Skib mv $${prog}.out.new $${prog}.out; \ 31195636Skib done 32195636Skib 33195636Skibveryclean: clean 34195636Skib for prog in ${PROG}; do \ 35195636Skib rm -f $${prog}.out; \ 36195636Skib done 37