Ticket #11272: patch-Makefile-dylib.diff
File patch-Makefile-dylib.diff, 2.1 KB (added by pipping@…, 18 years ago) |
---|
-
Makefile
old new 35 35 decompress.o \ 36 36 bzlib.o 37 37 38 all: libbz2.a bzip2 bzip2recover test38 all: libbz2.a libbz2.dylib bzip2 bzip2recover test 39 39 40 40 bzip2: libbz2.a bzip2.o 41 41 $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2 … … 52 52 $(RANLIB) libbz2.a ; \ 53 53 fi 54 54 55 libbz2.dylib: $(OBJS) 56 rm -f libbz2.dylib 57 $(CC) -dynamiclib $(OBJS) -o libbz2.1.0.3.dylib \ 58 -install_name $(PREFIX)/lib/libbz2.1.0.dylib \ 59 -compatibility_version 1.0 -current_version 1.0.3 60 ln -s libbz2.1.0.3.dylib libbz2.1.0.dylib 61 ln -s libbz2.1.0.dylib libbz2.1.dylib 62 ln -s libbz2.1.dylib libbz2.dylib 63 55 64 check: test 56 65 test: bzip2 57 66 @cat words1 58 ./bzip2 -1 < sample1.ref > sample1.rb259 ./bzip2 -2 < sample2.ref > sample2.rb260 ./bzip2 -3 < sample3.ref > sample3.rb261 ./bzip2 -d < sample1.bz2 > sample1.tst62 ./bzip2 -d < sample2.bz2 > sample2.tst63 ./bzip2 -ds < sample3.bz2 > sample3.tst67 DYLD_LIBRARY_PATH=. ./bzip2 -1 < sample1.ref > sample1.rb2 68 DYLD_LIBRARY_PATH=. ./bzip2 -2 < sample2.ref > sample2.rb2 69 DYLD_LIBRARY_PATH=. ./bzip2 -3 < sample3.ref > sample3.rb2 70 DYLD_LIBRARY_PATH=. ./bzip2 -d < sample1.bz2 > sample1.tst 71 DYLD_LIBRARY_PATH=. ./bzip2 -d < sample2.bz2 > sample2.tst 72 DYLD_LIBRARY_PATH=. ./bzip2 -ds < sample3.bz2 > sample3.tst 64 73 cmp sample1.bz2 sample1.rb2 65 74 cmp sample2.bz2 sample2.rb2 66 75 cmp sample3.bz2 sample3.rb2 … … 89 98 chmod a+r $(PREFIX)/include/bzlib.h 90 99 cp -f libbz2.a $(PREFIX)/lib 91 100 chmod a+r $(PREFIX)/lib/libbz2.a 101 cp -f libbz2.1.0.3.dylib $(PREFIX)/lib 102 chmod a+r $(PREFIX)/lib/libbz2.a 103 cp -f libbz2.1.0.dylib $(PREFIX)/lib 104 cp -f libbz2.1.dylib $(PREFIX)/lib 105 cp -f libbz2.dylib $(PREFIX)/lib 92 106 cp -f bzgrep $(PREFIX)/bin/bzgrep 93 107 ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep 94 108 ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep … … 109 123 echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1 110 124 111 125 clean: 112 rm -f *.o libbz2.a bzip2 bzip2recover \126 rm -f *.o libbz2.a libbz2.*.dylib bzip2 bzip2recover \ 113 127 sample1.rb2 sample2.rb2 sample3.rb2 \ 114 128 sample1.tst sample2.tst sample3.tst 115 129