blob: fa47e2b133fc54e0b30a21e7e1b6e4a098a3e96c [file] [log] [blame]
Dees_Troy51a0e822012-09-05 15:24:24 -04001CFLAGS=-O3
2
3pigz: pigz.o yarn.o
4 cc -o pigz pigz.o yarn.o -lpthread -lz
5 ln -f pigz unpigz
6
7pigz.o: pigz.c yarn.h
8
9yarn.o: yarn.c yarn.h
10
11dev: pigz pigzt pigzn
12
13pigzt: pigzt.o yarnt.o
14 cc -o pigzt pigzt.o yarnt.o -lpthread -lz
15
16pigzt.o: pigz.c yarn.h
17 cc -Wall -O3 -DDEBUG -g -c -o pigzt.o pigz.c
18
19yarnt.o: yarn.c yarn.h
20 cc -Wall -O3 -DDEBUG -g -c -o yarnt.o yarn.c
21
22pigzn: pigzn.o
23 cc -o pigzn pigzn.o -lz
24
25pigzn.o: pigz.c
26 cc -Wall -O3 -DDEBUG -DNOTHREAD -g -c -o pigzn.o pigz.c
27
28test: pigz
29 ./pigz -kf pigz.c ; ./pigz -t pigz.c.gz
30 ./pigz -kfb 32 pigz.c ; ./pigz -t pigz.c.gz
31 ./pigz -kfp 1 pigz.c ; ./pigz -t pigz.c.gz
32 ./pigz -kfz pigz.c ; ./pigz -t pigz.c.zz
33 ./pigz -kfK pigz.c ; ./pigz -t pigz.c.zip
34 compress -f < pigz.c | ./unpigz | cmp - pigz.c
35 rm -f pigz.c.gz pigz.c.zz pigz.c.zip
36
37tests: dev test
38 ./pigzn -kf pigz.c ; ./pigz -t pigz.c.gz
39 rm -f pigz.c.gz
40
41docs: pigz.pdf
42
43pigz.pdf: pigz.1
44 groff -mandoc -f H -T ps pigz.1 | ps2pdf - pigz.pdf
45
46clean:
47 rm -f *.o pigz unpigz pigzn pigzt pigz.c.gz pigz.c.zz pigz.c.zip