mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
|
--- Makefile.orig Sat Aug 31 09:50:33 1996
|
||
|
+++ Makefile Fri Sep 27 12:54:40 1996
|
||
|
@@ -1,29 +1,15 @@
|
||
|
-
|
||
|
-CC = gcc
|
||
|
-SH = /bin/sh
|
||
|
-
|
||
|
-CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -Wall -Winline -Wshadow -W
|
||
|
-
|
||
|
-
|
||
|
-
|
||
|
all:
|
||
|
- cat words0
|
||
|
$(CC) $(CFLAGS) -o bzip bzip.c
|
||
|
- rm -f bunzip
|
||
|
- ln -s ./bzip ./bunzip
|
||
|
- cat words1
|
||
|
- ./bzip -Q -1 < sample1.ref > sample1.rbz
|
||
|
- ./bzip -Q -2 < sample2.ref > sample2.rbz
|
||
|
- ./bunzip -Q < sample1.bz > sample1.tst
|
||
|
- ./bunzip -Q < sample2.bz > sample2.tst
|
||
|
- cat words2
|
||
|
- cmp sample1.bz sample1.rbz
|
||
|
- cmp sample2.bz sample2.rbz
|
||
|
- cmp sample1.tst sample1.ref
|
||
|
- cmp sample2.tst sample2.ref
|
||
|
- cat words3
|
||
|
-
|
||
|
+ @ln -fs ./bzip ./bunzip
|
||
|
+ @echo "*** testing bzip and bunzip ***"
|
||
|
+ ./bzip -Q -1 < sample1.ref > sample1.rbz || exit 1
|
||
|
+ ./bzip -Q -2 < sample2.ref > sample2.rbz || exit 1
|
||
|
+ ./bunzip -Q < sample1.bz > sample1.tst || exit 1
|
||
|
+ ./bunzip -Q < sample2.bz > sample2.tst || exit 1
|
||
|
+ cmp sample1.bz sample1.rbz || exit 1
|
||
|
+ cmp sample2.bz sample2.rbz || exit 1
|
||
|
+ cmp sample1.tst sample1.ref || exit 1
|
||
|
+ cmp sample2.tst sample2.ref || exit 1
|
||
|
|
||
|
clean:
|
||
|
rm -f bzip bunzip sample*.tst sample*.rbz
|
||
|
-
|