diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 51 |
1 files changed, 32 insertions, 19 deletions
@@ -7,9 +7,8 @@ AR=ar | |||
7 | RANLIB=ranlib | 7 | RANLIB=ranlib |
8 | LDFLAGS= | 8 | LDFLAGS= |
9 | 9 | ||
10 | # Suitably paranoid flags to avoid bugs in gcc-2.7 | ||
11 | BIGFILES=-D_FILE_OFFSET_BITS=64 | 10 | BIGFILES=-D_FILE_OFFSET_BITS=64 |
12 | CFLAGS=-Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES) | 11 | CFLAGS=-Wall -Winline -O -g $(BIGFILES) |
13 | 12 | ||
14 | # Where you want it installed when you do 'make install' | 13 | # Where you want it installed when you do 'make install' |
15 | PREFIX=/usr | 14 | PREFIX=/usr |
@@ -96,7 +95,6 @@ install: bzip2 bzip2recover | |||
96 | echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1 | 95 | echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1 |
97 | echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1 | 96 | echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1 |
98 | 97 | ||
99 | distclean: clean | ||
100 | clean: | 98 | clean: |
101 | rm -f *.o libbz2.a bzip2 bzip2recover \ | 99 | rm -f *.o libbz2.a bzip2 bzip2recover \ |
102 | sample1.rb2 sample2.rb2 sample3.rb2 \ | 100 | sample1.rb2 sample2.rb2 sample3.rb2 \ |
@@ -122,8 +120,12 @@ bzip2.o: bzip2.c | |||
122 | bzip2recover.o: bzip2recover.c | 120 | bzip2recover.o: bzip2recover.c |
123 | $(CC) $(CFLAGS) -c bzip2recover.c | 121 | $(CC) $(CFLAGS) -c bzip2recover.c |
124 | 122 | ||
125 | DISTNAME=bzip2-1.0.2 | 123 | |
126 | tarfile: | 124 | distclean: clean |
125 | rm -f manual.ps manual.html manual.pdf | ||
126 | |||
127 | DISTNAME=bzip2-1.0.3 | ||
128 | dist: check manual | ||
127 | rm -f $(DISTNAME) | 129 | rm -f $(DISTNAME) |
128 | ln -sf . $(DISTNAME) | 130 | ln -sf . $(DISTNAME) |
129 | tar cvf $(DISTNAME).tar \ | 131 | tar cvf $(DISTNAME).tar \ |
@@ -139,9 +141,6 @@ tarfile: | |||
139 | $(DISTNAME)/bzlib.h \ | 141 | $(DISTNAME)/bzlib.h \ |
140 | $(DISTNAME)/bzlib_private.h \ | 142 | $(DISTNAME)/bzlib_private.h \ |
141 | $(DISTNAME)/Makefile \ | 143 | $(DISTNAME)/Makefile \ |
142 | $(DISTNAME)/manual.texi \ | ||
143 | $(DISTNAME)/manual.ps \ | ||
144 | $(DISTNAME)/manual.pdf \ | ||
145 | $(DISTNAME)/LICENSE \ | 144 | $(DISTNAME)/LICENSE \ |
146 | $(DISTNAME)/bzip2.1 \ | 145 | $(DISTNAME)/bzip2.1 \ |
147 | $(DISTNAME)/bzip2.1.preformatted \ | 146 | $(DISTNAME)/bzip2.1.preformatted \ |
@@ -157,9 +156,12 @@ tarfile: | |||
157 | $(DISTNAME)/sample2.bz2 \ | 156 | $(DISTNAME)/sample2.bz2 \ |
158 | $(DISTNAME)/sample3.bz2 \ | 157 | $(DISTNAME)/sample3.bz2 \ |
159 | $(DISTNAME)/dlltest.c \ | 158 | $(DISTNAME)/dlltest.c \ |
160 | $(DISTNAME)/*.html \ | 159 | $(DISTNAME)/manual.html \ |
160 | $(DISTNAME)/manual.pdf \ | ||
161 | $(DISTNAME)/manual.ps \ | ||
161 | $(DISTNAME)/README \ | 162 | $(DISTNAME)/README \ |
162 | $(DISTNAME)/README.COMPILATION.PROBLEMS \ | 163 | $(DISTNAME)/README.COMPILATION.PROBLEMS \ |
164 | $(DISTNAME)/README.XML.STUFF \ | ||
163 | $(DISTNAME)/CHANGES \ | 165 | $(DISTNAME)/CHANGES \ |
164 | $(DISTNAME)/libbz2.def \ | 166 | $(DISTNAME)/libbz2.def \ |
165 | $(DISTNAME)/libbz2.dsp \ | 167 | $(DISTNAME)/libbz2.dsp \ |
@@ -175,18 +177,29 @@ tarfile: | |||
175 | $(DISTNAME)/bzmore.1 \ | 177 | $(DISTNAME)/bzmore.1 \ |
176 | $(DISTNAME)/bzgrep \ | 178 | $(DISTNAME)/bzgrep \ |
177 | $(DISTNAME)/bzgrep.1 \ | 179 | $(DISTNAME)/bzgrep.1 \ |
178 | $(DISTNAME)/Makefile-libbz2_so | 180 | $(DISTNAME)/Makefile-libbz2_so \ |
181 | $(DISTNAME)/bz-common.xsl \ | ||
182 | $(DISTNAME)/bz-fo.xsl \ | ||
183 | $(DISTNAME)/bz-html.xsl \ | ||
184 | $(DISTNAME)/bzip.css \ | ||
185 | $(DISTNAME)/entities.xml \ | ||
186 | $(DISTNAME)/manual.xml \ | ||
187 | $(DISTNAME)/format.pl \ | ||
188 | $(DISTNAME)/xmlproc.sh | ||
179 | gzip -v $(DISTNAME).tar | 189 | gzip -v $(DISTNAME).tar |
180 | 190 | ||
181 | # For rebuilding the manual from sources on my RedHat 7.2 box | 191 | # For rebuilding the manual from sources on my SuSE 9.1 box |
182 | manual: manual.ps manual.pdf manual.html | 192 | |
193 | MANUAL_SRCS= bz-common.xsl bz-fo.xsl bz-html.xsl bzip.css \ | ||
194 | entities.xml manual.xml | ||
195 | |||
196 | manual: manual.html manual.ps manual.pdf | ||
183 | 197 | ||
184 | manual.ps: manual.texi | 198 | manual.ps: $(MANUAL_SRCS) |
185 | tex manual.texi | 199 | ./xmlproc.sh -ps manual.xml |
186 | dvips -o manual.ps manual.dvi | ||
187 | 200 | ||
188 | manual.pdf: manual.ps | 201 | manual.pdf: $(MANUAL_SRCS) |
189 | ps2pdf manual.ps | 202 | ./xmlproc.sh -pdf manual.xml |
190 | 203 | ||
191 | manual.html: manual.texi | 204 | manual.html: $(MANUAL_SRCS) |
192 | texi2html -split_chapter manual.texi | 205 | ./xmlproc.sh -html manual.xml |