blob: fa47e2b133fc54e0b30a21e7e1b6e4a098a3e96c (
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
36
37
38
39
40
41
42
43
44
45
46
47
|
CFLAGS=-O3
pigz: pigz.o yarn.o
cc -o pigz pigz.o yarn.o -lpthread -lz
ln -f pigz unpigz
pigz.o: pigz.c yarn.h
yarn.o: yarn.c yarn.h
dev: pigz pigzt pigzn
pigzt: pigzt.o yarnt.o
cc -o pigzt pigzt.o yarnt.o -lpthread -lz
pigzt.o: pigz.c yarn.h
cc -Wall -O3 -DDEBUG -g -c -o pigzt.o pigz.c
yarnt.o: yarn.c yarn.h
cc -Wall -O3 -DDEBUG -g -c -o yarnt.o yarn.c
pigzn: pigzn.o
cc -o pigzn pigzn.o -lz
pigzn.o: pigz.c
cc -Wall -O3 -DDEBUG -DNOTHREAD -g -c -o pigzn.o pigz.c
test: pigz
./pigz -kf pigz.c ; ./pigz -t pigz.c.gz
./pigz -kfb 32 pigz.c ; ./pigz -t pigz.c.gz
./pigz -kfp 1 pigz.c ; ./pigz -t pigz.c.gz
./pigz -kfz pigz.c ; ./pigz -t pigz.c.zz
./pigz -kfK pigz.c ; ./pigz -t pigz.c.zip
compress -f < pigz.c | ./unpigz | cmp - pigz.c
rm -f pigz.c.gz pigz.c.zz pigz.c.zip
tests: dev test
./pigzn -kf pigz.c ; ./pigz -t pigz.c.gz
rm -f pigz.c.gz
docs: pigz.pdf
pigz.pdf: pigz.1
groff -mandoc -f H -T ps pigz.1 | ps2pdf - pigz.pdf
clean:
rm -f *.o pigz unpigz pigzn pigzt pigz.c.gz pigz.c.zz pigz.c.zip
|