Ticket #358: patch-shared.diff
File patch-shared.diff, 2.1 KB (added by ssen@…, 22 years ago) |
---|
-
Makefile
old new 23 23 decompress.o \ 24 24 bzlib.o 25 25 26 all: libbz2.a bzip2 bzip2recover test26 all: libbz2.a libbz2.dylib bzip2 bzip2recover test 27 27 28 28 bzip2: libbz2.a bzip2.o 29 29 $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2 … … 40 40 $(RANLIB) libbz2.a ; \ 41 41 fi 42 42 43 libbz2.dylib: $(OBJS) 44 rm -f libbz2.dylib 45 libtool -dynamic $(OBJS) -lSystem -o libbz2.1.0.2.dylib \ 46 -install_name $(PREFIX)/lib/libbz2.1.0.dylib \ 47 -compatibility_version 1.0 -current_version 1.0.2 48 ln -s libbz2.1.0.2.dylib libbz2.1.0.dylib 49 ln -s libbz2.1.0.2.dylib libbz2.1.dylib 50 ln -s libbz2.1.0.2.dylib libbz2.dylib 51 43 52 check: test 44 53 test: bzip2 45 54 @cat words1 46 ./bzip2 -1 < sample1.ref > sample1.rb247 ./bzip2 -2 < sample2.ref > sample2.rb248 ./bzip2 -3 < sample3.ref > sample3.rb249 ./bzip2 -d < sample1.bz2 > sample1.tst50 ./bzip2 -d < sample2.bz2 > sample2.tst51 ./bzip2 -ds < sample3.bz2 > sample3.tst55 DYLD_LIBRARY_PATH=. ./bzip2 -1 < sample1.ref > sample1.rb2 56 DYLD_LIBRARY_PATH=. ./bzip2 -2 < sample2.ref > sample2.rb2 57 DYLD_LIBRARY_PATH=. ./bzip2 -3 < sample3.ref > sample3.rb2 58 DYLD_LIBRARY_PATH=. ./bzip2 -d < sample1.bz2 > sample1.tst 59 DYLD_LIBRARY_PATH=. ./bzip2 -d < sample2.bz2 > sample2.tst 60 DYLD_LIBRARY_PATH=. ./bzip2 -ds < sample3.bz2 > sample3.tst 52 61 cmp sample1.bz2 sample1.rb2 53 62 cmp sample2.bz2 sample2.rb2 54 63 cmp sample3.bz2 sample3.rb2 … … 77 86 chmod a+r $(PREFIX)/include/bzlib.h 78 87 cp -f libbz2.a $(PREFIX)/lib 79 88 chmod a+r $(PREFIX)/lib/libbz2.a 89 cp -f libbz2.1.0.2.dylib $(PREFIX)/lib 90 chmod a+r $(PREFIX)/lib/libbz2.a 91 cp -f libbz2.1.0.dylib $(PREFIX)/lib 92 cp -f libbz2.1.dylib $(PREFIX)/lib 93 cp -f libbz2.dylib $(PREFIX)/lib 80 94 cp -f bzgrep $(PREFIX)/bin/bzgrep 81 95 ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep 82 96 ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep … … 98 112 99 113 distclean: clean 100 114 clean: 101 rm -f *.o libbz2.a bzip2 bzip2recover \115 rm -f *.o libbz2.a libbz2.*.dylib bzip2 bzip2recover \ 102 116 sample1.rb2 sample2.rb2 sample3.rb2 \ 103 117 sample1.tst sample2.tst sample3.tst 104 118