1 # Makefile for the GNU linker ld (version 2)
2 # Copyright (C) 1989-1992 Free Software Foundation, Inc.
4 # This file is part of GNU ld..
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.
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.
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.
25 program_transform_name =
26 exec_prefix = $(prefix)
27 bindir = $(exec_prefix)/bin
28 libdir = $(exec_prefix)/lib
29 tooldir = $(exec_prefix)/$(target_alias)
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
44 scriptdir = $(datadir)/ld
46 gcclibdir = $(libdir)/gcc/$(target_alias)
50 INSTALL = $(srcdir)/../install.sh -c
51 INSTALL_PROGRAM = $(INSTALL)
52 INSTALL_DATA = $(INSTALL)
53 INSTALL_XFORM = $(INSTALL) -t=$(program_transform_name)
54 INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
63 BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
64 LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
66 #version=/`./../gcc/gcc -dumpversion`
69 # Seach path to override the default search path for -lfoo libraries.
70 # If LIB_PATH is empty, the ones in the script (if any) are left alone.
71 # (The default is usually /lib:usr/lib:/usr/local/lib, unless building
72 # a cross-linker, in which case the default is empty. See genscripts.sh.)
73 # Otherwise, they are replaced with the ones given in LIB_PATH,
74 # which may have the form: LIB_PATH=/lib:/usr/local/lib
78 INCLUDE = $(srcdir)/../include
79 INCLUDES = -I. -I$(srcdir) -I../include -I$(srcdir)/../bfd -I../bfd -I$(INCLUDE)
81 # What version of the manual to build
84 # Where to find texinfo.tex to format docn with TeX
85 TEXIDIR = $(srcdir)/../texinfo/fsf
87 # Whether to get roff to put indexing entries on stderr
89 # You neeed this to generate ld-index.ms (or .mm or .me)
94 # Which roff program to use to generate index for texi2roff'd doc
97 #stuff for self hosting (can be overridden in config file).
98 HOSTING_CRT0=/lib/crt0.o
99 HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc
100 HOSTING_EMU=-m $(EMUL)
102 C++ = g++ -fgnu-linker
104 ### Host, target, and site specific Makefile fragments come in here.
107 LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
110 $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS) $<
112 # go directly to ld.new in case this ld isn't capable of
113 # linking native object on this host. It can be renamed on
118 BFDLIB=./../bfd/libbfd.a
119 LIBIBERTY=./../libiberty/libiberty.a
121 ALL_EMULATIONS=em_lnk960.o em_sun3.o em_i386aout.o em_go32.o \
122 em_m88kbcs.o em_a29k.o em_news.o em_hp300bsd.o em_hp3hpux.o \
123 em_h8300.o em_ebmon29k.o em_sun4.o em_gld960.o \
124 em_m68kcoff.o em_st2000.o em_sa29200.o \
125 em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o em_i386bsd.o \
126 em_mipsbig.o em_mipsbsd.o em_mipsidt.o em_vax.o em_h8500.o \
127 em_hppaosf.o em_mipsidtl.o em_sh.o
129 EMULATION_OFILES=${ALL_EMULATIONS}
131 OFILES= ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldindr.o \
132 ldwarn.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldsym.o \
133 ldfile.o relax.o lderror.o ${EMULATION_OFILES}
135 HEADERS=config.h ldmain.h ldmain.h ldwarn.h ldmisc.h ldindr.h \
136 ldsym.h ldctor.h ldlang.h ldexp.h \
137 ldlex.h ldwrite.h ldver.h ldemul.h ldfile.h ldgram.h ld.h
141 LDCSOURCES=ldlang.c lexsup.c ldctor.c mri.c ldindr.c ldmain.c ldwrite.c ldwarn.c ldlnk960.c \
142 em_gld.c em_sun3.c em_go32.c em_m88k.c em_ebmon29k.c em_hppaosf.c \
143 ldgld960.c ldemul.c ldver.c ldmisc.c ldexp.c ldsym.c ldfile.c \
146 GENERATED_SOURCES=ldgram.c ldlex.c em_*.c ldemul-list.h
147 GENERATED_HEADERS=ldgram.h ldemul-list.h
149 LDSOURCES=$(LDCSOURCES) ldgram.y ldlex.l ldgram.h
151 BFDSOURCES=../../bfd/common/*.c
153 SOURCES= $(LDSOURCES) $(BFDSOURCES)
154 LINTSOURCES= $(LDCSOURCES) $(BFDSOURCES) $(GENERATED_SOURCES)
156 STAGESTUFF = emulations/* $(GENERATED_SOURCES) $(GENERATED_HEADERS) $(OFILES)
162 ldgram.h ldgram.c: ldgram.y
163 $(BISON) $(BISONFLAGS) -d $(srcdir)/ldgram.y
164 mv -f y.tab.c ldgram.c
165 mv -f y.tab.h ldgram.h
168 DEF_EMUL = ` if [ -z "$(EMUL)" ] ; then \
169 echo "you must set a default emulation" 1>&2 ; \
172 echo -DDEFAULT_EMULATION='"$(EMUL)"' ; \
176 $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(DEF_EMUL) -DSCRIPTDIR='"$(scriptdir)"' $(CFLAGS) $<
179 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
180 for f in `echo " " ${EMULATION_OFILES} "" \
181 | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
182 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
185 echo "#define EMULATION_LIST \\";\
186 for f in `echo " " ${EMULATION_OFILES} "" \
187 | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
188 echo " &ld_$${f}_emulation, \\"; \
190 echo " 0") >ldemul-list.h
192 ldemul.o: ldemul-list.h
194 ldlex.c: ldlex.l ldgram.h
195 $(LEX) -I -Cem $(srcdir)/ldlex.l
198 # These all start with em_ so 'make clean' can find them.
200 GENSCRIPTS=sh $(srcdir)/genscripts.sh ${srcdir} ${tooldir}/lib ${libdir} ${host_alias} ${target_alias}
201 GEN_DEPENDS=$(srcdir)/genscripts.sh
203 em_sun4.c: $(srcdir)/emulparams/sun4.sh \
204 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
205 ${GENSCRIPTS} sun4.sh
206 em_sun3.c: $(srcdir)/emulparams/sun3.sh \
207 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
208 ${GENSCRIPTS} sun3.sh
209 em_go32.c: $(srcdir)/emulparams/go32.sh \
210 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
211 ${GENSCRIPTS} go32.sh
212 em_news.c: $(srcdir)/emulparams/news.sh \
213 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
214 ${GENSCRIPTS} news.sh
215 em_vax.c: $(srcdir)/emulparams/vax.sh \
216 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
218 em_hp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
219 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
220 ${GENSCRIPTS} hp300bsd.sh
221 em_hp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
222 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
223 ${GENSCRIPTS} hp3hpux.sh
224 em_hppaosf.c: $(srcdir)/emulparams/hppaosf.sh \
225 $(srcdir)/emultempl/hppaosf.em $(srcdir)/scripttempl/hppaosf.sc ${GEN_DEPENDS}
226 ${GENSCRIPTS} hppaosf.sh
227 em_i386aout.c: $(srcdir)/emulparams/i386aout.sh \
228 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
229 ${GENSCRIPTS} i386aout.sh
230 em_ebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
231 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
232 ${GENSCRIPTS} ebmon29k.sh
233 em_sa29200.c: $(srcdir)/emulparams/sa29200.sh \
234 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
235 ${GENSCRIPTS} sa29200.sh
236 em_a29k.c: $(srcdir)/emulparams/a29k.sh \
237 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
238 ${GENSCRIPTS} a29k.sh
239 em_m88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
240 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
241 ${GENSCRIPTS} m88kbcs.sh
242 em_h8300.c: $(srcdir)/emulparams/h8300.sh \
243 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
244 ${GENSCRIPTS} h8300.sh
245 em_h8500.c: $(srcdir)/emulparams/h8500.sh \
246 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
247 ${GENSCRIPTS} h8500.sh
248 em_sh.c: $(srcdir)/emulparams/sh.sh \
249 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
251 em_st2000.c: $(srcdir)/emulparams/st2000.sh \
252 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
253 ${GENSCRIPTS} st2000.sh
254 em_z8ksim.c: $(srcdir)/emulparams/z8ksim.sh \
255 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8ksim.sc ${GEN_DEPENDS}
256 ${GENSCRIPTS} z8ksim.sh
257 em_vanilla.c: $(srcdir)/emulparams/vanilla.sh \
258 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
259 ${GENSCRIPTS} vanilla.sh
260 em_lnk960.c: $(srcdir)/emulparams/lnk960.sh \
261 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
262 ${GENSCRIPTS} lnk960.sh
263 em_gld960.c: $(srcdir)/emulparams/gld960.sh \
264 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
265 ${GENSCRIPTS} gld960.sh
266 em_m68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
267 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
268 ${GENSCRIPTS} m68kcoff.sh
269 em_i386coff.c: $(srcdir)/emulparams/i386coff.sh \
270 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
271 ${GENSCRIPTS} i386coff.sh
272 em_mipslit.c: $(srcdir)/emulparams/mipslit.sh \
273 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
274 ${GENSCRIPTS} mipslit.sh
275 em_i386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
276 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
277 ${GENSCRIPTS} i386bsd.sh
278 em_mipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
279 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
280 ${GENSCRIPTS} mipsbig.sh
281 em_mipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
282 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
283 ${GENSCRIPTS} mipsbsd.sh
284 em_mipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
285 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
286 ${GENSCRIPTS} mipsidt.sh
287 em_mipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
288 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
289 ${GENSCRIPTS} mipsidtl.sh
291 $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
292 $(CC) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES) $(CFLAGS)
297 check: bootstrap check-cdtest
300 # Rules for testing by relinking ld itself.
303 ./ld.new -Lemulations $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
305 ./ld.new -Lemulations $(HOSTING_EMU) -o ld1 $(HOSTING_CRT0) ld-partial.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
308 ./ld.new -Lemulations $(HOSTING_EMU) -o ld1-full $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
311 ./ld1 -Lemulations $(HOSTING_EMU) -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
314 ./ld2 -Lemulations $(HOSTING_EMU) -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
319 # A test program for C++ constructors and destructors.
321 cdtest: cdtest-main.o cdtest-func.o cdtest-foo.o ld.new
322 ./ld.new -Lemulations $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
323 cdtest-main.o cdtest-func.o cdtest-foo.o $(HOSTING_LIBS)
325 check-cdtest: cdtest $(srcdir)/cdtest.exp
327 diff $(srcdir)/cdtest.exp cdtest.out
329 # DOCUMENTATION TARGETS
330 # Manual configuration file; not usually attached to normal configuration,
331 # because almost all configs use "gen" version of manual.
332 # Set DOCVER above to change.
333 configdoc.texi: ${DOCVER}-doc.texi
334 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
335 ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
336 cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
340 ld.dvi: $(srcdir)/ld.texinfo
341 $(TEXI2DVI) $(srcdir)/ld.texinfo
343 ldint.dvi: $(srcdir)/ldint.texinfo
344 $(TEXI2DVI) $(srcdir)/ldint.texinfo
346 # info file for online browsing
347 ld.info: $(srcdir)/ld.texinfo configdoc.texi
348 $(MAKEINFO) -o ld.info $(srcdir)/ld.texinfo
350 ldint.info: $(srcdir)/ldint.texinfo
351 $(MAKEINFO) -o ldint.info $(srcdir)/ldint.texinfo
353 #separate targets for "ms", "me", and "mm" forms of roff doc
354 # Try to use a recent texi2roff. v2 was put on prep in jan91.
355 # If you want an index, see texi2roff doc for postprocessing
356 # and add -i to texi2roff invocations below.
357 # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
358 # correspondint -e lines when later texi2roff's are current)
359 # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
360 # + @c's deleted explicitly because texi2roff sees texinfo commands in them
361 # + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
362 # + @alphaenumerate is ridiculously new, turned into @enumerate
364 ld.ms: $(srcdir)/ld.texinfo
365 sed -e '/\\input texinfo/d' \
366 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
367 -e '/^@ifinfo/,/^@end ifinfo/d' \
371 -e 's/^@alphaenumerate/@enumerate/g' \
372 -e 's/^@end alphaenumerate/@end enumerate/g' \
373 $(srcdir)/ld.texinfo | \
374 $(TEXI2ROFF) $(TEXI2OPT) -ms | \
375 sed -e 's/---/\\(em/g' \
378 # index for roff output
380 $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
381 sed -e '/: warning:/d' | \
382 texi2index >ld-index.ms
385 ld.mm: $(srcdir)/ld.texinfo
386 sed -e '/\\input texinfo/d' \
387 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
388 -e '/^@ifinfo/,/^@end ifinfo/d' \
393 -e 's/^@alphaenumerate/@enumerate/g' \
394 -e 's/^@end alphaenumerate/@end enumerate/g' \
395 $(srcdir)/ld.texinfo | \
396 $(TEXI2ROFF) $(TEXI2OPT) -mm | \
397 sed -e 's/---/\\(em/g' \
400 # index for roff output
402 $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
403 sed -e '/: warning:/d' | \
404 texi2index >ld-index.mm
407 ld.me: $(srcdir)/ld.texinfo
408 sed -e '/\\input texinfo/d' \
409 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
410 -e '/^@ifinfo/,/^@end ifinfo/d' \
414 -e 's/^@alphaenumerate/@enumerate/g' \
415 -e 's/^@end alphaenumerate/@end enumerate/g' \
416 $(srcdir)/ld.texinfo | \
417 $(TEXI2ROFF) $(TEXI2OPT) -me | \
418 sed -e 's/---/\\(em/g' \
421 # index for roff output
423 $(ROFF) -me ld.me 2>&1 1>/dev/null | \
424 sed -e '/: warning:/d' | \
425 texi2index >ld-index.me
428 ldlex.o: ldlex.c ldgram.h
431 ldexp.o: ldexp.c ldgram.h
432 ldctor.o: ldctor.c ldgram.h
433 ldlang.o: ldlang.c ldgram.h
434 ldmain.o: ldmain.c ldgram.h
435 ldwrite.o: ldwrite.c ldgram.h
436 lexsup.o: lexsup.c ldgram.h
437 mri.o: mri.c ldgram.h
438 relax.o: relax.c ldgram.h
441 h8300xray.o:h8300xray.c
447 -mv -f $(STAGESTUFF) $(LD_PROG) stage1
448 -(cd stage1 ; ln -s $(LD_PROG) ld)
452 -mv -f $(STAGESTUFF) $(LD_PROG) stage2
453 -(cd stage2 ; ln -s $(LD_PROG) ld)
457 -mv -f $(STAGESTUFF) $(LD_PROG) stage3
458 -(cd stage3 ; ln -s $(LD_PROG) ld)
463 for i in $(STAGESTUFF) $(LD_PROG) ; do cmp $$i $(against)/$$i ; done
466 -(cd stage1 ; mv -f * ..)
471 -(cd stage2 ; mv -f * ..)
476 -(cd stage3 ; mv -f * ..)
480 # Stuff that should be included in a distribution:
481 LDDISTSTUFF=ldgram.c ldgram.h ldlex.c
482 diststuff: $(LDDISTSTUFF)
485 -rm -f $(STAGESTUFF) ld.?? ld.??? ldlex.[qp]
486 -rm -f ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out
490 -rm -f Makefile config.status TAGS sysdep.h
492 -rm -f $(LDDISTSTUFF)
494 lintlog:$(SOURCES) Makefile
495 $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \
496 | grep -v "pointer casts may be troublesome" \
497 | grep -v "possible pointer alignment problem" \
499 | grep -v "conversion from long may lose accuracy" \
500 | grep -v "warning: constant argument to NOT" \
501 | grep -v "enumeration type clash, operator CAST" \
502 | grep -v "warning: constant in conditional context"\
503 | grep -v "archive\.c"
506 tags TAGS:$(SOURCES) $(HEADERS)
514 $(INSTALL_XFORM) ld.new $(bindir)/ld
515 $(INSTALL_XFORM1) $(srcdir)/ld.1 $(man1dir)/ld.1
516 cd emulations; for f in *; do $(INSTALL_DATA) $$f $(scriptdir)/$$f; done
517 -n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
518 rm -f $(tooldir)/bin/ld; \
519 ln $(bindir)/$$n $(tooldir)/bin/ld \
520 || $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld; \
521 rm -f $(tooldir)/bin/gld; \
522 ln $(tooldir)/bin/ld $(tooldir)/bin/gld; \
525 for i in ld.info* ; do \
526 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
532 #-----------------------------------------------------------------------------
533 # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
535 # 'VERSION' file must be present and contain a string of the form "x.y"
536 #-----------------------------------------------------------------------------
540 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
543 # This target should be invoked before building a new release.
544 # 'VERSION' file must be present and contain a string of the form "x.y"
548 MAJ=`sed 's/\..*//' VERSION` ; \
549 MIN=`sed 's/.*\.//' VERSION` ; \
550 V=$$MAJ.`expr $$MIN + 1` ; \
552 echo $$V >VERSION ; \
559 # Dummy target to force execution of dependent targets.
563 # Target to uncomment host-specific lines in this makefile. Such lines must
564 # have the following string beginning in column 1: #__<hostname>__#
565 # Original Makefile is backed up as 'Makefile.old'.
567 # Invoke with: make make HOST=xxx
570 -@if test $(HOST)x = x ; then \
571 echo '
\aSpecify "make make HOST=???"'; \
574 grep -s "^#The next line was generated by 'make make'" Makefile; \
575 if test $$? = 0 ; then \
576 echo "
\aMakefile has already been processed with 'make make'";\
579 mv -f Makefile Makefile.old; \
580 echo "#The next line was generated by 'make make'" >Makefile ; \
581 echo "HOST=$(HOST)" >>Makefile ; \
583 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
587 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
588 $(SHELL) ./config.status
590 ### mode:fundamental ***
591 ### Local Variables: ***
592 ### page-delimiter: "^#
\f" ***
597 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY