aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/poll/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/poll/Makefile')
-rw-r--r--tools/regression/poll/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/regression/poll/Makefile b/tools/regression/poll/Makefile
new file mode 100644
index 000000000000..ac3ff90b90e2
--- /dev/null
+++ b/tools/regression/poll/Makefile
@@ -0,0 +1,35 @@
+$ $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