blob: bbf019d65c8b923f5ca157075c7dc52dddf08cdb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# This makefile has been uglified for portability.
# Nothing yet works with gmake for the path to the sources.
.PATH: ..
PROG= pipepoll pipeselect sockpoll
CFLAGS+= -Werror -Wall
all: ${PROG}
pipepoll: pipepoll.c
pipeselect: pipeselect.c
sockpoll: sockpoll.c
pipepoll pipeselect sockpoll:
${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
|