summaryrefslogtreecommitdiffstats
path: root/pigz/Makefile
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-05 21:24:24 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-05 21:24:31 +0200
commit51a0e82eb29a6dfc79f93479883383fbdbf8bcc2 (patch)
tree52fc18206eb0feba9f50dc3b0ede9fdc5e40f35e /pigz/Makefile
parentInitial stub of partitions.hpp (diff)
downloadandroid_bootable_recovery-51a0e82eb29a6dfc79f93479883383fbdbf8bcc2.tar
android_bootable_recovery-51a0e82eb29a6dfc79f93479883383fbdbf8bcc2.tar.gz
android_bootable_recovery-51a0e82eb29a6dfc79f93479883383fbdbf8bcc2.tar.bz2
android_bootable_recovery-51a0e82eb29a6dfc79f93479883383fbdbf8bcc2.tar.lz
android_bootable_recovery-51a0e82eb29a6dfc79f93479883383fbdbf8bcc2.tar.xz
android_bootable_recovery-51a0e82eb29a6dfc79f93479883383fbdbf8bcc2.tar.zst
android_bootable_recovery-51a0e82eb29a6dfc79f93479883383fbdbf8bcc2.zip
Diffstat (limited to '')
-rw-r--r--pigz/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/pigz/Makefile b/pigz/Makefile
new file mode 100644
index 000000000..fa47e2b13
--- /dev/null
+++ b/pigz/Makefile
@@ -0,0 +1,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