3 CFLAGS
= @CFLAGS@
$(DEFS
) -I@
srcdir@
-I.
11 exec_prefix = @
exec_prefix@
12 datarootdir
= @datarootdir@
14 mandir = @
mandir@
/man1
19 TARGET
= mbuffer
$(EXE
)
20 SOURCES
= log.c network.c mbuffer.c
21 OBJECTS
= $(SOURCES
:.c
=.o
)
23 TESTTREE
= /opt
/csw
/gcc4
25 .PHONY
: clean all distclean install check testcleanup
29 $(OBJECTS
): config.h Makefile
32 $(CC
) $(CFLAGS
) $(LDFLAGS
) $(OBJECTS
) $(LIBS
) -o
$@
38 -$(RM
) $(TARGET
) config.h config.log \
39 config.status Makefile mbuffer
.1 core
42 -$(INSTALL
) -d
$(DESTDIR
)$(bindir)
43 $(INSTALL
) $(TARGET
) $(DESTDIR
)$(bindir)
44 -$(INSTALL
) -d
$(DESTDIR
)$(mandir)
45 $(INSTALL
) mbuffer
.1 $(DESTDIR
)$(mandir)
48 lint
$(DEFS
) $(SOURCES
)
50 check: $(TARGET
) test0 test1 test2 test3 testcleanup
53 rm -f test0 test1 test2 test3 test0.md5 test1.md5 test2.md5 test3.md5 \
57 tar cf
test.
tar $(TESTTREE
)
60 openssl md5
< test.
tar > test.md5
63 .
/mbuffer
-i
test.
tar -p10 | .
/mbuffer
-q
-P
90 | openssl md5
> test0.md5
65 diff test0.md5
test.md5
69 .
/mbuffer
-i
test.
tar -f
-o
$@.
tar -o
/dev
/null
-H
70 openssl md5
< $@.
tar > $@.md5
77 .
/mbuffer
-q
-I
:8000 -o
$@.
tar -o
- | openssl md5
> $@.md5
& \
80 .
/mbuffer
-i
test.
tar -o
/dev
/null
-O localhost
:8000 -H
; \
85 openssl md5
< $@.
tar > $@.md5
92 .
/mbuffer
-q
-6 -I
:8000 | openssl md5
> $@.md5
& \
95 .
/mbuffer
-i
test.
tar -o
/dev
/null
-6 -O localhost
:8000 -o
$@.
tar -H
; \
100 openssl md5
< $@.
tar > $@.md5