summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 9d35b433a6b3482f8108d57968099ef7181fccf0 (plain)
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

CC = gcc
SH = /bin/sh

CFLAGS = -O3 -fomit-frame-pointer -funroll-loops



all:
	cat words0
	$(CC) $(CFLAGS) -o bzip2 bzip2.c
	$(CC) $(CFLAGS) -o bzip2recover bzip2recover.c
	rm -f bunzip2
	ln -s ./bzip2 ./bunzip2
	cat words1
	./bzip2 -1 < sample1.ref > sample1.rb2
	./bzip2 -2 < sample2.ref > sample2.rb2
	./bunzip2 < sample1.bz2 > sample1.tst
	./bunzip2 < sample2.bz2 > sample2.tst
	cat words2
	cmp sample1.bz2 sample1.rb2 
	cmp sample2.bz2 sample2.rb2
	cmp sample1.tst sample1.ref
	cmp sample2.tst sample2.ref
	cat words3


clean:
	rm -f bzip2 bunzip2 bzip2recover sample*.tst sample*.rb2