Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | CFLAGS=-O3 |
| 2 | |
| 3 | pigz: pigz.o yarn.o |
| 4 | cc -o pigz pigz.o yarn.o -lpthread -lz |
| 5 | ln -f pigz unpigz |
| 6 | |
| 7 | pigz.o: pigz.c yarn.h |
| 8 | |
| 9 | yarn.o: yarn.c yarn.h |
| 10 | |
| 11 | dev: pigz pigzt pigzn |
| 12 | |
| 13 | pigzt: pigzt.o yarnt.o |
| 14 | cc -o pigzt pigzt.o yarnt.o -lpthread -lz |
| 15 | |
| 16 | pigzt.o: pigz.c yarn.h |
| 17 | cc -Wall -O3 -DDEBUG -g -c -o pigzt.o pigz.c |
| 18 | |
| 19 | yarnt.o: yarn.c yarn.h |
| 20 | cc -Wall -O3 -DDEBUG -g -c -o yarnt.o yarn.c |
| 21 | |
| 22 | pigzn: pigzn.o |
| 23 | cc -o pigzn pigzn.o -lz |
| 24 | |
| 25 | pigzn.o: pigz.c |
| 26 | cc -Wall -O3 -DDEBUG -DNOTHREAD -g -c -o pigzn.o pigz.c |
| 27 | |
| 28 | test: 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 | |
| 37 | tests: dev test |
| 38 | ./pigzn -kf pigz.c ; ./pigz -t pigz.c.gz |
| 39 | rm -f pigz.c.gz |
| 40 | |
| 41 | docs: pigz.pdf |
| 42 | |
| 43 | pigz.pdf: pigz.1 |
| 44 | groff -mandoc -f H -T ps pigz.1 | ps2pdf - pigz.pdf |
| 45 | |
| 46 | clean: |
| 47 | rm -f *.o pigz unpigz pigzn pigzt pigz.c.gz pigz.c.zz pigz.c.zip |