Commit | Line | Data |
---|---|---|
d8474a9b | 1 | # Makefile for GNU binary-file utilities |
d8e89b6b | 2 | # Copyright (C) 1989-1992 Free Software Foundation, Inc. |
d8474a9b PB |
3 | |
4 | # This file is part of GNU binutils. | |
5 | ||
6 | # This program is free software; you can redistribute it and/or modify | |
7 | # it under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 2 of the License, or | |
9 | # (at your option) any later version. | |
10 | # | |
11 | # This program is distributed in the hope that it will be useful, | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | # GNU General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public License | |
17 | # along with this program; if not, write to the Free Software | |
18 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
99a42820 | 19 | |
a10d26a1 | 20 | srcdir = . |
84396dcf | 21 | |
d8e89b6b RP |
22 | prefix = /usr/local |
23 | ||
3790af1d | 24 | program_transform_name = |
d8e89b6b RP |
25 | exec_prefix = $(prefix) |
26 | bindir = $(exec_prefix)/bin | |
27 | libdir = $(exec_prefix)/lib | |
3f97524f | 28 | tooldir = $(libdir)/$(target_alias) |
d8e89b6b RP |
29 | |
30 | datadir = $(prefix)/lib | |
31 | mandir = $(prefix)/man | |
32 | man1dir = $(mandir)/man1 | |
33 | man2dir = $(mandir)/man2 | |
34 | man3dir = $(mandir)/man3 | |
35 | man4dir = $(mandir)/man4 | |
36 | man5dir = $(mandir)/man5 | |
37 | man6dir = $(mandir)/man6 | |
38 | man7dir = $(mandir)/man7 | |
39 | man8dir = $(mandir)/man8 | |
40 | man9dir = $(mandir)/man9 | |
41 | infodir = $(prefix)/info | |
42 | includedir = $(prefix)/include | |
43 | docdir = $(datadir)/doc | |
84396dcf RP |
44 | |
45 | SHELL = /bin/sh | |
d8e89b6b RP |
46 | |
47 | INSTALL = install -c | |
48 | INSTALL_PROGRAM = $(INSTALL) | |
49 | INSTALL_DATA = $(INSTALL) | |
50 | ||
51 | AR = ar | |
52 | AR_FLAGS = qv | |
53 | CFLAGS = -g | |
d8e89b6b | 54 | MAKEINFO = makeinfo |
c921e2aa | 55 | TEXI2DVI = texi2dvi |
d8e89b6b | 56 | RANLIB = ranlib |
9752f9fd | 57 | BISONFLAGS = -d |
c83497f5 | 58 | TEXI2ROFF=texi2roff |
b5132a6b | 59 | |
8d5d0e11 PB |
60 | SYMLINK = ln -s |
61 | ||
9752f9fd | 62 | BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; fi` |
45212e5e PB |
63 | # Comment these out if using lex. |
64 | LEX_OPTIONS = -I -Cem | |
e2fe2df4 | 65 | LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi` |
45212e5e | 66 | |
8539db10 | 67 | # Distribution version |
eba174ce | 68 | VERSION=2.1 |
8539db10 | 69 | # Distribution name |
d8e89b6b | 70 | DIST_NAME=binutils-${VERSION} |
8539db10 | 71 | |
d8e89b6b | 72 | version=`./../gcc/gcc -dumpversion` |
b5132a6b | 73 | |
6b583720 | 74 | # Where to find texinfo.tex to format docn with TeX |
b7a11ec2 RP |
75 | TEXIDIR = $(srcdir)/../texinfo/fsf |
76 | ||
3790af1d | 77 | MANPAGES= ar nm objdump ranlib size strip |
84396dcf | 78 | |
a10d26a1 | 79 | #CC=gcc -Wall |
06a97fbd | 80 | # these two are almost the same program |
a10d26a1 RP |
81 | AR_PROG=ar |
82 | RANLIB_PROG=ranlib | |
99a42820 RP |
83 | |
84 | # copy and strip should be the same program | |
a10d26a1 RP |
85 | COPY_PROG=copy |
86 | STRIP_PROG=strip | |
99a42820 RP |
87 | |
88 | # These should all be the same program too. | |
a10d26a1 RP |
89 | SIZE_PROG=size |
90 | NM_PROG=nm | |
91 | OBJDUMP_PROG=objdump | |
99a42820 | 92 | |
c921e2aa FF |
93 | # This is the demangler, as a standalone program. |
94 | DEMANGLER_PROG=demangle | |
95 | ||
96 | PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) | |
a01bf1fb | 97 | STAGESTUFF = $(PROGS) *.o |
8d5d0e11 PB |
98 | # Files that can be generated, but should be in the distribution. |
99 | DISTSTUFF=arparse.c arlex.c binutils.mm | |
99a42820 | 100 | |
40773f7f | 101 | BASEDIR = $(srcdir)/.. |
d8e89b6b | 102 | LIBDIR = ./../bfd |
a4ef8601 | 103 | OPCODEDIR = ./../opcodes |
a10d26a1 | 104 | |
a10d26a1 RP |
105 | #### host and target dependant Makefile fragments come in here. |
106 | ### | |
107 | ||
3f97524f | 108 | INCLUDES = -I. -I$(srcdir) -I$(BASEDIR)/include -I$(BASEDIR)/bfd |
99a42820 | 109 | |
d8e89b6b | 110 | .c.o: |
3f97524f | 111 | $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $< |
99a42820 | 112 | |
a26878d1 RP |
113 | # When adding .o files, to make VPATH work in Sun Make, you have to |
114 | # also add a foo.o: foo.c line at the bottom of the file. | |
f7ed13c7 | 115 | DISASMS = i960-pinsn.o am29k-pinsn.o |
6a3958b2 | 116 | |
99a42820 RP |
117 | #\f |
118 | ## Random definitions | |
119 | # Hopefully all these may be flushed once we get configuration down pat. | |
120 | ||
121 | # alloca only needed for systems which don't have it and when cc != gcc. | |
122 | # ALLOCA = alloca.o | |
123 | ||
124 | # nm tries to malloc enough space for the string table. The old GNU malloc | |
125 | # rounds this up to a power of two (e.g. 5M becomes 8M), and so it might | |
126 | # fail unnecessarily. I've also seen some Unix malloc's fail, even when | |
127 | # there is enough memory. So use the new GNU malloc. | |
128 | # MALLOC = gmalloc.o | |
129 | ||
130 | # Use the GNU getopt unless you have problems with it. | |
131 | # The IRIS version could probably benefit from being assembled with | |
132 | # libmalloc rather than the ordinary malloc. | |
c921e2aa FF |
133 | LIBIBERTY_SRC_DIR = $(srcdir)/../libiberty |
134 | LIBIBERTY_BIN_DIR = ./../libiberty | |
135 | LIBIBERTY = $(LIBIBERTY_BIN_DIR)/libiberty.a | |
99a42820 RP |
136 | |
137 | # Code shared by all the binutils. | |
a10d26a1 | 138 | BULIBS = bucomm.o version.o filemode.o |
99a42820 | 139 | |
7a5a3c7b | 140 | ADDL_LIBS = $(MALLOC) $(BULIBS) $(BFD) $(LIBIBERTY) |
99a42820 RP |
141 | |
142 | BFD = $(LIBDIR)/libbfd.a | |
a4ef8601 | 143 | OPCODES = $(OPCODEDIR)/libopcodes.a |
99a42820 RP |
144 | #\f |
145 | ## The rules | |
146 | ||
4f8b1219 MW |
147 | all: $(ADDL_LIBS) $(PROGS) testsuite |
148 | ||
149 | testsuite: | |
3048fb38 | 150 | if [ -d testsuite ]; then \ |
4f8b1219 MW |
151 | (rootme=`pwd`/ ; export rootme ; \ |
152 | rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \ | |
153 | cd testsuite; $(MAKE) $(FLAGS_TO_PASS)); \ | |
3048fb38 | 154 | else true ; fi |
c83497f5 | 155 | |
eeece52d | 156 | check: all |
dc760829 | 157 | /bin/sh $(srcdir)/sanity.sh . |
d8e89b6b | 158 | |
f7ed13c7 | 159 | installcheck: |
7d6cc102 RP |
160 | /bin/sh $(srcdir)/sanity.sh $(bindir) |
161 | ||
d8e89b6b | 162 | info: binutils.info |
a10d26a1 | 163 | |
c921e2aa FF |
164 | dvi: binutils.dvi |
165 | ||
a10d26a1 RP |
166 | #$(BFD):$(LIBDIR)/../common/*.c |
167 | # (cd $(LIBDIR); make) | |
99a42820 | 168 | |
a10d26a1 | 169 | $(SIZE_PROG): $(ADDL_LIBS) size.o $(BFD) |
6a3958b2 | 170 | $(CC) $(LDFLAGS) $(CFLAGS) -o $(SIZE_PROG) size.o $(ADDL_LIBS) $(LOADLIBES) |
99a42820 | 171 | |
d8e89b6b RP |
172 | $(COPY_PROG): $(ADDL_LIBS) copy.o not-strip.o $(BFD) |
173 | $(CC) $(LDFLAGS) $(CFLAGS) -o $(COPY_PROG) copy.o not-strip.o $(ADDL_LIBS) $(LOADLIBES) | |
174 | ||
175 | $(STRIP_PROG): $(ADDL_LIBS) copy.o is-strip.o $(BFD) | |
176 | $(CC) $(LDFLAGS) $(CFLAGS) -o $(STRIP_PROG) copy.o is-strip.o $(ADDL_LIBS) $(LOADLIBES) | |
99a42820 | 177 | |
a10d26a1 | 178 | $(NM_PROG): $(ADDL_LIBS) nm.o $(BFD) |
6a3958b2 | 179 | $(CC) $(LDFLAGS) $(CFLAGS) -o $(NM_PROG) nm.o $(ADDL_LIBS) $(LOADLIBES) |
99a42820 | 180 | |
a4ef8601 | 181 | $(OBJDUMP_PROG): $(ADDL_LIBS) size.o objdump.o $(DISASMS) $(BFD) $(OPCODES) |
2e8adbd7 | 182 | $(CC) $(LDFLAGS) $(CFLAGS) -o $(OBJDUMP_PROG) objdump.o $(DISASMS) $(OPCODES) $(ADDL_LIBS) $(LOADLIBES) |
99a42820 | 183 | |
c921e2aa FF |
184 | $(DEMANGLER_PROG): $(LIBIBERTY_SRC_DIR)/cplus-dem.c |
185 | $(CC) $(LDFLAGS) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) -DMAIN -o $(DEMANGLER_PROG) $(LIBIBERTY_SRC_DIR)/cplus-dem.c $(LIBIBERTY) $(LOADLIBES) | |
186 | ||
d8e89b6b | 187 | arparse.c:arparse.y |
9752f9fd ME |
188 | $(BISON) $(BISONFLAGS) $(srcdir)/arparse.y |
189 | -mv y.tab.c arparse.c | |
190 | -mv y.tab.h arparse.h | |
d8e89b6b | 191 | |
99a42820 | 192 | |
9752f9fd ME |
193 | arlex.c: arlex.l |
194 | $(LEX) $(LEX_OPTIONS) $(srcdir)/arlex.l | |
195 | mv lex.yy.c arlex.c | |
d8e89b6b RP |
196 | |
197 | $(AR_PROG): $(ADDL_LIBS) ar.o arparse.o arlex.o not-ranlib.o $(BFD) arsup.o | |
198 | $(CC) $(LDFLAGS) $(CFLAGS) -o $(AR_PROG) ar.o arparse.o arlex.o arsup.o not-ranlib.o $(ADDL_LIBS) $(LOADLIBES) | |
199 | ||
200 | $(RANLIB_PROG): $(ADDL_LIBS) ar.o is-ranlib.o arparse.o arlex.o arsup.o $(BFD) | |
201 | $(CC) $(LDFLAGS) $(CFLAGS) -o $(RANLIB_PROG) ar.o arparse.o arlex.o arsup.o is-ranlib.o $(ADDL_LIBS) $(LOADLIBES) | |
06a97fbd PB |
202 | |
203 | # This rule creates a single binary that switches between ar and ranlib | |
204 | # by looking at argv[0]. Use this kludge to save some disk space. | |
205 | # However, you have to install things by hand. | |
206 | # (That is after 'make install', replace the installed ranlib by a link to ar.) | |
207 | ||
208 | # Alternatively, you can install ranlib.sh as ranlib. | |
209 | ||
210 | ar_with_ranlib: $(ADDL_LIBS) ar.o maybe-ranlib.o $(BFD) | |
211 | $(CC) $(LDFLAGS) $(CFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(LOADLIBES) | |
a10d26a1 RP |
212 | -rm -f $(RANLIB_PROG) |
213 | -ln $(AR_PROG) $(RANLIB_PROG) | |
99a42820 | 214 | |
d8e89b6b RP |
215 | # copy and strip in one binary that uses argv[0] to decide its action. |
216 | ||
217 | copy_with_strip: $(ADDL_LIBS) copy.o maybe-strip.o $(BFD) | |
218 | $(CC) $(LDFLAGS) $(CFLAGS) -o $(COPY_PROG) copy.o maybe-strip.o $(ADDL_LIBS) $(LOADLIBES) | |
a10d26a1 RP |
219 | -rm -f $(STRIP_PROG) |
220 | -ln $(COPY_PROG) $(STRIP_PROG) | |
99a42820 | 221 | |
6a3958b2 RP |
222 | stage1: force |
223 | - mkdir stage1 | |
a01bf1fb | 224 | - mv -f $(STAGESTUFF) stage1 |
6a3958b2 RP |
225 | |
226 | stage2: force | |
227 | - mkdir stage2 | |
a01bf1fb | 228 | - mv -f $(STAGESTUFF) stage2 |
6a3958b2 RP |
229 | |
230 | stage3: force | |
231 | - mkdir stage3 | |
a01bf1fb RP |
232 | - mv -f $(STAGESTUFF) stage3 |
233 | ||
234 | against=stage2 | |
235 | ||
236 | comparison: force | |
237 | for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done | |
6a3958b2 RP |
238 | |
239 | de-stage1: force | |
240 | - (cd stage1 ; mv -f * ..) | |
241 | - rmdir stage1 | |
242 | ||
243 | de-stage2: force | |
244 | - (cd stage2 ; mv -f * ..) | |
245 | - rmdir stage2 | |
246 | ||
247 | de-stage3: force | |
248 | - (cd stage3 ; mv -f * ..) | |
249 | - rmdir stage3 | |
250 | ||
6b583720 RP |
251 | ###################################################################### |
252 | # DOCUMENTATION TARGETS | |
253 | # TeX output | |
2226a090 | 254 | binutils.dvi: $(srcdir)/binutils.texi |
c921e2aa | 255 | $(TEXI2DVI) $(srcdir)/binutils.texi |
b7a11ec2 | 256 | |
6b583720 | 257 | # info file for online browsing |
2226a090 | 258 | binutils.info: $(srcdir)/binutils.texi |
6141fd50 | 259 | $(MAKEINFO) -o binutils.info $(srcdir)/binutils.texi |
b7a11ec2 | 260 | |
0c10ff03 | 261 | # different targets for -ms, -mm, -me |
c83497f5 RP |
262 | # Try to use a recent texi2roff. v2 was put on prep in jan91. |
263 | # If you want an index, see texi2roff doc for postprocessing | |
264 | # and add -i to texi2roff invocations below. | |
265 | # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete | |
266 | # correspondint -e lines when later texi2roff's are current) | |
267 | # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs. | |
268 | # + @c's deleted explicitly because texi2roff sees texinfo commands in them | |
269 | # + @ (that's at-BLANK) not recognized by texi2roff, turned into blank | |
270 | # + @alphaenumerate is ridiculously new, turned into @enumerate | |
271 | ||
0c10ff03 | 272 | # roff output (-ms) |
2226a090 | 273 | binutils.ms: $(srcdir)/binutils.texi |
6b583720 RP |
274 | sed -e '/\\input texinfo/d' \ |
275 | -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ | |
c83497f5 RP |
276 | -e '/^@ifinfo/,/^@end ifinfo/d' \ |
277 | -e '/^@c/d' \ | |
2226a090 | 278 | -e 's/{.*,,/{/' \ |
c83497f5 RP |
279 | -e 's/@ / /g' \ |
280 | -e 's/^@alphaenumerate/@enumerate/g' \ | |
281 | -e 's/^@end alphaenumerate/@end enumerate/g' \ | |
2226a090 | 282 | $(srcdir)/binutils.texi | \ |
d8e89b6b | 283 | $(TEXI2ROFF) -ms | \ |
c83497f5 RP |
284 | sed -e 's/---/\\(em/g' \ |
285 | >binutils.ms | |
6b583720 | 286 | |
0c10ff03 | 287 | # roff output (-mm) |
c83497f5 RP |
288 | # '@noindent's removed due to texi2roff-2 mm bug; if yours is newer, |
289 | # try leaving them in | |
2226a090 | 290 | binutils.mm: $(srcdir)/binutils.texi |
0c10ff03 RP |
291 | sed -e '/\\input texinfo/d' \ |
292 | -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ | |
c83497f5 RP |
293 | -e '/^@ifinfo/,/^@end ifinfo/d' \ |
294 | -e '/^@c/d' \ | |
2226a090 RP |
295 | -e 's/{.*,,/{/' \ |
296 | -e '/@noindent/d' \ | |
c83497f5 RP |
297 | -e 's/@ / /g' \ |
298 | -e 's/^@alphaenumerate/@enumerate/g' \ | |
299 | -e 's/^@end alphaenumerate/@end enumerate/g' \ | |
2226a090 | 300 | $(srcdir)/binutils.texi | \ |
d8e89b6b | 301 | $(TEXI2ROFF) -mm | \ |
2226a090 RP |
302 | sed -e 's/---/\\(em/g' \ |
303 | >binutils.mm | |
0c10ff03 RP |
304 | |
305 | # roff output (-me) | |
2226a090 | 306 | binutils.me: $(srcdir)/binutils.texi |
0c10ff03 RP |
307 | sed -e '/\\input texinfo/d' \ |
308 | -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ | |
c83497f5 RP |
309 | -e '/^@ifinfo/,/^@end ifinfo/d' \ |
310 | -e '/^@c/d' \ | |
2226a090 | 311 | -e 's/{.*,,/{/' \ |
c83497f5 RP |
312 | -e 's/@ / /g' \ |
313 | -e 's/^@alphaenumerate/@enumerate/g' \ | |
314 | -e 's/^@end alphaenumerate/@end enumerate/g' \ | |
2226a090 | 315 | $(srcdir)/binutils.texi | \ |
d8e89b6b | 316 | $(TEXI2ROFF) -me | \ |
c83497f5 RP |
317 | sed -e 's/---/\\(em/g' \ |
318 | >binutils.me | |
0c10ff03 RP |
319 | |
320 | ||
6b583720 RP |
321 | ###################################################################### |
322 | ||
8d5d0e11 | 323 | mostlyclean: |
3f97524f | 324 | -rm -f *.o *~ \#* core binutils.?? binutils.??? |
8d5d0e11 | 325 | clean: mostlyclean |
3f97524f | 326 | -rm -f $(PROGS) |
8d5d0e11 | 327 | distclean: clean |
eeece52d | 328 | -rm -f Makefile config.status sysdep.h |
8d5d0e11 PB |
329 | realclean: distclean |
330 | -rm -f $(DISTSTUFF) TAGS | |
99a42820 RP |
331 | |
332 | etags tags: TAGS | |
333 | ||
6a3958b2 | 334 | TAGS: force |
99a42820 RP |
335 | etags $(INCDIR)/*.h $(BFDSRC)/*.[hc] *.[hc] |
336 | ||
c83497f5 | 337 | install: all |
f478fcf6 ILT |
338 | -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \ |
339 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi | |
340 | -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi | |
3f97524f | 341 | -for i in $(PROGS) ; do \ |
3790af1d | 342 | $(INSTALL_PROGRAM) $$i $(bindir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t` ; \ |
99a42820 | 343 | done |
f478fcf6 ILT |
344 | -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \ |
345 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi | |
346 | -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi | |
3f97524f | 347 | -for i in $(MANPAGES) ; do \ |
3790af1d | 348 | $(INSTALL_DATA) $(srcdir)/$$i.1 $(man1dir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t`.1 ; \ |
de53632c | 349 | done |
3f97524f DZ |
350 | -if [ -d $(tooldir) ]; then \ |
351 | if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \ | |
352 | for i in nm strip ; do \ | |
353 | rm -f $(tooldir)/bin/$$i; \ | |
354 | ln $(bindir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t` $(tooldir)/bin/$$i \ | |
355 | || $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$i; \ | |
356 | done; \ | |
357 | else true; fi | |
c83497f5 | 358 | |
d8e89b6b | 359 | install-info: info |
f478fcf6 ILT |
360 | -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \ |
361 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi | |
362 | -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi | |
de53632c | 363 | for i in *.info* ; do \ |
d8e89b6b | 364 | $(INSTALL_DATA) $$i $(infodir)/$$i ; \ |
84396dcf | 365 | done |
99a42820 | 366 | |
d8e89b6b RP |
367 | clean-info: |
368 | -rm -rf *.info* | |
369 | ||
e2fe2df4 | 370 | # Making a dist: |
ee948e4e PB |
371 | # cvs rtag binutils-x-yy ld+utils |
372 | # cvs co -r binutils-x-yy ld+utils | |
e2fe2df4 PB |
373 | # Sanitize |
374 | # cd {HERE}; make dist [-f Makefile.in] | |
375 | ||
8539db10 PB |
376 | dist: $(DIST_NAME).tar.Z |
377 | ||
8d5d0e11 PB |
378 | diststuff: $(DISTSTUFF) |
379 | ||
d8474a9b | 380 | $(DIST_NAME).tar.Z: |
b27d2046 | 381 | cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME) |
8d5d0e11 PB |
382 | make diststuff -f Makefile.in |
383 | cd ../ld; make diststuff -f Makefile.in | |
3f97524f | 384 | cd ../gprof; make diststuff -f Makefile.in |
7f7b0a77 | 385 | cd ../texinfo; mv texinfo.tex ..; rm -rf *; mv ../texinfo.tex . |
2e8adbd7 PB |
386 | # Take out texinfo from configurable dirs |
387 | mv ../configure.in tmp; \ | |
388 | sed -e '/^host_tools=/s/texinfo //' <tmp >../configure.in; rm tmp | |
389 | cd ..; chmod og=u `find . -print` | |
d8474a9b | 390 | cd ../..; tar chf - $(DIST_NAME) | compress >$(DIST_NAME).tar.Z |
b27d2046 | 391 | rm -rf ../../$(DIST_NAME) |
8539db10 | 392 | |
d7cce023 JG |
393 | # These get around a bug in Sun Make in SunOS 4.1.1 |
394 | alloca.o:alloca.c | |
a26878d1 | 395 | am29k-pinsn.o: am29k-pinsn.c |
99a42820 | 396 | ar.o: ar.c |
22923083 | 397 | arsup.o: arsup.c |
d7cce023 JG |
398 | bucomm.o: bucomm.c |
399 | copy.o: copy.c | |
d7cce023 | 400 | filemode.o:filemode.c |
a10d26a1 RP |
401 | getopt.o:getopt.c |
402 | getopt1.o:getopt1.c | |
d7cce023 JG |
403 | gmalloc.o:gmalloc.c |
404 | i960-pinsn.o: i960-pinsn.c | |
405 | is-ranlib.o:is-ranlib.c | |
d8e89b6b | 406 | is-strip.o:is-strip.c |
d7cce023 | 407 | maybe-ranlib.o:maybe-ranlib.c |
d8e89b6b | 408 | maybe-strip.o:maybe-strip.c |
d7cce023 JG |
409 | nm.o: nm.c |
410 | not-ranlib.o:not-ranlib.c | |
d8e89b6b | 411 | not-strip.o:not-strip.c |
d7cce023 JG |
412 | objdump.o: objdump.c |
413 | size.o: size.c | |
d7cce023 | 414 | strip.o:strip.c |
d8e89b6b | 415 | version.o: $(srcdir)/version.c |
3f97524f | 416 | $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) -DVERSION='"$(VERSION)"' -c $(srcdir)/version.c |
8539db10 | 417 | |
99a42820 RP |
418 | #----------------------------------------------------------------------------- |
419 | # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT | |
420 | # | |
421 | # 'VERSION' file must be present and contain a string of the form "x.y" | |
422 | #----------------------------------------------------------------------------- | |
423 | ||
424 | ver960.c: FORCE | |
425 | rm -f ver960.c | |
426 | echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c | |
427 | ||
428 | ||
429 | # Dummy target to force execution of dependent targets. | |
430 | # | |
6a3958b2 | 431 | force: |
99a42820 RP |
432 | |
433 | # Target to uncomment host-specific lines in this makefile. Such lines must | |
434 | # have the following string beginning in column 1: #__<hostname>__# | |
435 | # Original Makefile is backed up as 'Makefile.old'. | |
436 | # | |
437 | # Invoke with: make make HOST=xxx | |
438 | # | |
439 | make: | |
440 | -@if test $(HOST)x = x ; then \ | |
441 | echo '\aSpecify "make make HOST=???"'; \ | |
442 | exit 1; \ | |
443 | fi ; \ | |
444 | grep -s "^#The next line was generated by 'make make'" Makefile; \ | |
445 | if test $$? = 0 ; then \ | |
446 | echo "\aMakefile has already been processed with 'make make'";\ | |
447 | exit 1; \ | |
448 | fi ; \ | |
449 | mv -f Makefile Makefile.old; \ | |
450 | echo "#The next line was generated by 'make make'" >Makefile ; \ | |
451 | echo "HOST=$(HOST)" >>Makefile ; \ | |
452 | echo >>Makefile ; \ | |
453 | sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile | |
454 | ||
f1eb48b6 | 455 | Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) |
a26878d1 | 456 | $(SHELL) ./config.status |
99a42820 RP |
457 | |
458 | ### Local Variables: *** | |
459 | ### mode:fundamental *** | |
460 | ### page-delimiter: "^#\f" *** | |
461 | ### End: *** | |
462 | ### end of file |