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
45 gcclibdir
= $(libdir)/gcc
/$(target_alias
)
50 INSTALL_PROGRAM
= $(INSTALL
)
51 INSTALL_DATA
= $(INSTALL
)
59 BISON
= `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
60 LEX
= `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
62 #version=/`./../gcc/gcc -dumpversion`
65 # Seach path to override the default search path for -lfoo libraries.
66 # If LIB_PATH is empty, the ones in the script (if any) are left alone.
67 # (The default is usually /lib:usr/lib:/usr/local/lib, unless building
68 # a cross-linker, in which case the default is empty. See genscripts.sh.)
69 # Otherwise, they are replaced with the ones given in LIB_PATH,
70 # which may have the form: LIB_PATH=/lib:/usr/local/lib
74 INCLUDE
= $(srcdir)/..
/include
75 INCLUDES
= -I.
-I
$(srcdir) -I
$(srcdir)/..
/bfd
-I
$(INCLUDE
)
77 # What version of the manual to build
80 # Where to find texinfo.tex to format docn with TeX
81 TEXIDIR
= $(srcdir)/..
/texinfo
/fsf
83 # Whether to get roff to put indexing entries on stderr
85 # You neeed this to generate ld-index.ms (or .mm or .me)
90 # Which roff program to use to generate index for texi2roff'd doc
93 #stuff for self hosting (can be overridden in config file).
94 HOSTING_CRT0
=/lib
/crt0.o
95 HOSTING_LIBS
=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else echo $(libdir)/libgcc.a; fi` -lc
96 HOSTING_EMU
=LDEMULATION
=$(EMUL
); export LDEMULATION
98 C
++ = g
++ -fgnu-linker
100 ### Host, target, and site specific Makefile fragments come in here.
103 LINTFLAGS
= $(INCLUDES
) $(EXTRA_DEF
)
105 .SUFFIXES
: .y .x .xr .xu .xn .xbn .sc .scu .scr .scn
$(SUFFIXES
) .
cc
108 $(CC
) -c
$(CFLAGS
) $(INCLUDES
) $(HDEFINES
) $(TDEFINES
) $(CDEFINES
) $<
111 $(C
++) -c
$(CFLAGS
) -I
$(srcdir) $<
113 # go directly to ld.new in case this ld isn't capable of
114 # linking native object on this host. It can be renamed on
119 BFDLIB
=.
/..
/bfd
/libbfd.a
120 LIBIBERTY
=.
/..
/libiberty
/libiberty.a
122 ALL_EMULATIONS
=em_lnk960.o em_sun3.o em_i386aout.o em_go32.o \
123 em_m88kbcs.o em_a29k.o em_news.o em_hp300bsd.o em_hp3hpux.o \
124 em_h8300hms.o em_ebmon29k.o em_sun4.o em_gld960.o \
125 em_m68kcoff.o em_st2000.o em_sa29200.o \
126 em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o em_i386bsd.o \
127 em_mipsbig.o em_mipsbsd.o em_mipsidt.o em_vax.o em_h8500hms.o \
131 OTHER_EMULATIONS
=em_sh.o
134 #EMULATION_OFILES=${ALL_EMULATIONS}
135 EMULATION_OFILES
=${ALL_EMULATIONS} ${OTHER_EMULATIONS}
137 OFILES
= ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldindr.o \
138 ldwarn.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldsym.o \
139 ldfile.o relax.o lderror.o
${EMULATION_OFILES}
141 HEADERS
=config.h ldmain.h ldmain.h ldwarn.h ldmisc.h ldindr.h \
142 ldsym.h ldctor.h ldlang.h ldexp.h \
143 ldlex.h ldwrite.h ldver.h ldemul.h ldfile.h ldgram.h
ld.h
147 LDCSOURCES
=ldlang.c lexsup.c ldctor.c mri.c ldindr.c ldmain.c ldwrite.c ldwarn.c ldlnk960.c \
148 em_gld.c em_sun3.c em_go32.c em_m88k.c em_ebmon29k.c em_hppaosf.c \
149 ldgld960.c ldemul.c ldver.c ldmisc.c ldexp.c ldsym.c ldfile.c \
152 GENERATED_SOURCES
=ldgram.c ldlex.c em_
*.c ldemul-list.h
153 GENERATED_HEADERS
=ldgram.h ldemul-list.h
155 LDSOURCES
=$(LDCSOURCES
) ldgram.y ldlex.l ldgram.h
157 BFDSOURCES
=..
/..
/bfd
/common
/*.c
159 SOURCES
= $(LDSOURCES
) $(BFDSOURCES
)
160 LINTSOURCES
= $(LDCSOURCES
) $(BFDSOURCES
) $(GENERATED_SOURCES
)
162 STAGESTUFF
= *.x
*.x
[runN
] *.sc
[runN
] $(GENERATED_SOURCES
) $(GENERATED_HEADERS
) $(OFILES
) mkscript
166 check: bootstrap check-cdtest
170 ldgram.h ldgram.c
: ldgram.y
171 $(BISON
) $(BISONFLAGS
) -d
$(srcdir)/ldgram.y
172 mv
-f y.tab.c ldgram.c
173 mv
-f y.tab.h ldgram.h
176 DEF_EMUL
= ` if [ -z "$(EMUL)" ] ; then \
177 echo "you must set a default emulation" 1>&2 ; \
180 echo -DDEFAULT_EMULATION='"$(EMUL)"' ; \
184 $(CC
) $(CFLAGS
) $(INCLUDES
) $(HDEFINES
) $(TDEFINES
) $(CDEFINES
) $(DEF_EMUL
) -c
$<
187 (echo
"/* This file is automatically generated. DO NOT EDIT! */";\
188 for f in
`echo " " ${EMULATION_OFILES} "" \
189 | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
190 echo
"extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
193 echo
"#define EMULATION_LIST \\";\
194 for f in
`echo " " ${EMULATION_OFILES} "" \
195 | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
196 echo
" &ld_$${f}_emulation, \\"; \
198 echo
" 0") >ldemul-list.h
200 ldemul.o
: ldemul-list.h
202 ldlex.c
: ldlex.l ldgram.h
203 $(LEX
) -I
-Cem
$(srcdir)/ldlex.l
206 # These all start with em_ so 'make clean' can find them.
208 GENSCRIPTS
=sh
$(srcdir)/genscripts.sh
${srcdir} ${host_alias} ${target_alias}
209 GEN_DEPENDS
=mkscript
$(srcdir)/genscripts.sh
211 em_sun4.c
: $(srcdir)/sun4.sh \
212 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
213 ${GENSCRIPTS} sun4.sh
214 em_sun3.c
: $(srcdir)/sun3.sh \
215 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
216 ${GENSCRIPTS} sun3.sh
217 em_go32.c
: $(srcdir)/go32.sh \
218 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
219 ${GENSCRIPTS} go32.sh
220 em_news.c
: $(srcdir)/news.sh \
221 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
222 ${GENSCRIPTS} news.sh
223 em_vax.c
: $(srcdir)/vax.sh \
224 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
226 em_hp300bsd.c
: $(srcdir)/hp300bsd.sh \
227 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
228 ${GENSCRIPTS} hp300bsd.sh
229 em_hp3hpux.c
: $(srcdir)/hp3hpux.sh \
230 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
231 ${GENSCRIPTS} hp3hpux.sh
232 em_hppaosf.c
: $(srcdir)/hppaosf.sh \
233 $(srcdir)/hppaosf.em
$(srcdir)/hppaosf.sc-sh
${GEN_DEPENDS}
234 ${GENSCRIPTS} hppaosf.sh
235 em_i386aout.c
: $(srcdir)/i386aout.sh \
236 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
237 ${GENSCRIPTS} i386aout.sh
238 em_ebmon29k.c
: $(srcdir)/ebmon29k.sh \
239 $(srcdir)/generic.em
$(srcdir)/ebmon29k.sc-sh
${GEN_DEPENDS}
240 ${GENSCRIPTS} ebmon29k.sh
241 em_sa29200.c
: $(srcdir)/sa29200.sh \
242 $(srcdir)/generic.em
$(srcdir)/sa29200.sc-sh
${GEN_DEPENDS}
243 ${GENSCRIPTS} sa29200.sh
244 em_a29k.c
: $(srcdir)/a29k.sh \
245 $(srcdir)/generic.em
$(srcdir)/a29k.sc-sh
${GEN_DEPENDS}
246 ${GENSCRIPTS} a29k.sh
247 em_m88kbcs.c
: $(srcdir)/m88kbcs.sh \
248 $(srcdir)/generic.em
$(srcdir)/h8300hms.sc-sh
${GEN_DEPENDS}
249 ${GENSCRIPTS} m88kbcs.sh
250 em_h8300hms.c
: $(srcdir)/h8300hms.sh \
251 $(srcdir)/h8300hms.em
$(srcdir)/h8300hms.sc-sh
${GEN_DEPENDS}
252 ${GENSCRIPTS} h8300hms.sh
253 em_h8500hms.c
: $(srcdir)/h8500hms.sh \
254 $(srcdir)/h8500hms.em
$(srcdir)/h8500hms.sc-sh
${GEN_DEPENDS}
255 ${GENSCRIPTS} h8500hms.sh
257 em_sh.c
: $(srcdir)/sh.sh \
258 $(srcdir)/sh.em
$(srcdir)/sh.sc-sh
${GEN_DEPENDS}
261 em_st2000.c
: $(srcdir)/st2000.sh \
262 $(srcdir)/st2000.em
$(srcdir)/st2000.sc-sh
${GEN_DEPENDS}
263 ${GENSCRIPTS} st2000.sh
264 em_z8ksim.c
: $(srcdir)/z8ksim.sh \
265 $(srcdir)/z8ksim.em
$(srcdir)/z8ksim.sc-sh
${GEN_DEPENDS}
266 ${GENSCRIPTS} z8ksim.sh
267 em_vanilla.c
: $(srcdir)/vanilla.sh \
268 $(srcdir)/vanilla.em
$(srcdir)/vanilla.sc-sh
${GEN_DEPENDS}
269 ${GENSCRIPTS} vanilla.sh
270 em_lnk960.c
: $(srcdir)/lnk960.sh \
271 $(srcdir)/lnk960.em
$(srcdir)/i960.sc-sh
${GEN_DEPENDS}
272 ${GENSCRIPTS} lnk960.sh
273 em_gld960.c
: $(srcdir)/gld960.sh \
274 $(srcdir)/gld960.em
$(srcdir)/i960.sc-sh
${GEN_DEPENDS}
275 ${GENSCRIPTS} gld960.sh
276 em_m68kcoff.c
: $(srcdir)/m68kcoff.sh \
277 $(srcdir)/generic.em
$(srcdir)/m68kcoff.sc-sh
${GEN_DEPENDS}
278 ${GENSCRIPTS} m68kcoff.sh
279 em_i386coff.c
: $(srcdir)/i386coff.sh \
280 $(srcdir)/generic.em
$(srcdir)/i386coff.sc-sh
${GEN_DEPENDS}
281 ${GENSCRIPTS} i386coff.sh
282 em_mipslit.c
: $(srcdir)/mipslit.sh \
283 $(srcdir)/generic.em
$(srcdir)/mips.sc-sh
${GEN_DEPENDS}
284 ${GENSCRIPTS} mipslit.sh
285 em_i386bsd.c
: $(srcdir)/i386bsd.sh \
286 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
287 ${GENSCRIPTS} i386bsd.sh
288 em_mipsbig.c
: $(srcdir)/mipsbig.sh \
289 $(srcdir)/generic.em
$(srcdir)/mips.sc-sh
${GEN_DEPENDS}
290 ${GENSCRIPTS} mipsbig.sh
291 em_mipsbsd.c
: $(srcdir)/mipsbsd.sh \
292 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
293 ${GENSCRIPTS} mipsbsd.sh
294 em_mipsidt.c
: $(srcdir)/mipsidt.sh \
295 $(srcdir)/generic.em
$(srcdir)/mips.sc-sh
${GEN_DEPENDS}
296 ${GENSCRIPTS} mipsidt.sh
298 $(LD_PROG
): $(OFILES
) $(BFDLIB
) $(LIBIBERTY
)
299 $(CC
) $(CFLAGS
) $(INCLUDES
) $(HDEFINES
) $(TDEFINES
) $(CDEFINES
) $(LDFLAGS
) -o
$(LD_PROG
) $(OFILES
) $(BFDLIB
) $(LIBIBERTY
) $(LOADLIBES
)
301 # Rules for testing by relinking ld itself.
304 $(HOSTING_EMU
); .
/ld.new
-o ld-partial.o
-r
$(OFILES
)
306 $(HOSTING_EMU
); .
/ld.new
-o ld1
$(HOSTING_CRT0
) ld-partial.o
$(BFDLIB
) $(LIBIBERTY
) $(HOSTING_LIBS
)
309 $(HOSTING_EMU
); .
/ld.new
-o ld1-full
$(HOSTING_CRT0
) $(OFILES
) $(BFDLIB
) $(LIBIBERTY
) $(HOSTING_LIBS
)
312 $(HOSTING_EMU
); .
/ld1
-o ld2
$(HOSTING_CRT0
) $(OFILES
) $(BFDLIB
) $(LIBIBERTY
) $(HOSTING_LIBS
)
315 $(HOSTING_EMU
); .
/ld2
-o ld3
$(HOSTING_CRT0
) $(OFILES
) $(BFDLIB
) $(LIBIBERTY
) $(HOSTING_LIBS
)
320 cdtest
: cdtest-main.o cdtest-func.o cdtest-foo.o
ld.new
321 $(HOSTING_EMU
); .
/ld.new
-o cdtest
$(HOSTING_CRT0
) \
322 cdtest-main.o cdtest-func.o cdtest-foo.o
$(HOSTING_LIBS
)
324 check-cdtest
: cdtest
$(srcdir)/cdtest.exp
326 diff
$(srcdir)/cdtest.exp cdtest.out
328 # DOCUMENTATION TARGETS
329 # Manual configuration file; not usually attached to normal configuration,
330 # because almost all configs use "gen" version of manual.
331 # Set DOCVER above to change.
332 configdoc.texi
: ${DOCVER}-doc.texi
333 ln
-s
${srcdir}/${DOCVER}-doc.texi .
/configdoc.texi || \
334 ln
${srcdir}/${DOCVER}-doc.texi .
/configdoc.texi || \
335 cp
${srcdir}/${DOCVER}-doc.texi .
/configdoc.texi
339 ld.
dvi: $(srcdir)/ld.texinfo
340 $(TEXI2DVI
) $(srcdir)/ld.texinfo
342 ldint.
dvi: $(srcdir)/ldint.texinfo
343 $(TEXI2DVI
) $(srcdir)/ldint.texinfo
345 # info file for online browsing
346 ld.
info: $(srcdir)/ld.texinfo configdoc.texi
347 $(MAKEINFO
) -o
ld.
info $(srcdir)/ld.texinfo
349 ldint.
info: $(srcdir)/ldint.texinfo
350 $(MAKEINFO
) -o ldint.
info $(srcdir)/ldint.texinfo
352 #separate targets for "ms", "me", and "mm" forms of roff doc
353 # Try to use a recent texi2roff. v2 was put on prep in jan91.
354 # If you want an index, see texi2roff doc for postprocessing
355 # and add -i to texi2roff invocations below.
356 # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
357 # correspondint -e lines when later texi2roff's are current)
358 # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
359 # + @c's deleted explicitly because texi2roff sees texinfo commands in them
360 # + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
361 # + @alphaenumerate is ridiculously new, turned into @enumerate
363 ld.ms
: $(srcdir)/ld.texinfo
364 sed
-e
'/\\input texinfo/d' \
365 -e
'/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
366 -e
'/^@ifinfo/,/^@end ifinfo/d' \
370 -e
's/^@alphaenumerate/@enumerate/g' \
371 -e
's/^@end alphaenumerate/@end enumerate/g' \
372 $(srcdir)/ld.texinfo | \
373 $(TEXI2ROFF
) $(TEXI2OPT
) -ms | \
374 sed
-e
's/---/\\(em/g' \
377 # index for roff output
379 $(ROFF
) -ms
ld.ms
2>&1 1>/dev
/null | \
380 sed
-e
'/: warning:/d' | \
381 texi2index
>ld-index.ms
384 ld.mm
: $(srcdir)/ld.texinfo
385 sed
-e
'/\\input texinfo/d' \
386 -e
'/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
387 -e
'/^@ifinfo/,/^@end ifinfo/d' \
392 -e
's/^@alphaenumerate/@enumerate/g' \
393 -e
's/^@end alphaenumerate/@end enumerate/g' \
394 $(srcdir)/ld.texinfo | \
395 $(TEXI2ROFF
) $(TEXI2OPT
) -mm | \
396 sed
-e
's/---/\\(em/g' \
399 # index for roff output
401 $(ROFF
) -mm
ld.mm
2>&1 1>/dev
/null | \
402 sed
-e
'/: warning:/d' | \
403 texi2index
>ld-index.mm
406 ld.me
: $(srcdir)/ld.texinfo
407 sed
-e
'/\\input texinfo/d' \
408 -e
'/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
409 -e
'/^@ifinfo/,/^@end ifinfo/d' \
413 -e
's/^@alphaenumerate/@enumerate/g' \
414 -e
's/^@end alphaenumerate/@end enumerate/g' \
415 $(srcdir)/ld.texinfo | \
416 $(TEXI2ROFF
) $(TEXI2OPT
) -me | \
417 sed
-e
's/---/\\(em/g' \
420 # index for roff output
422 $(ROFF
) -me
ld.me
2>&1 1>/dev
/null | \
423 sed
-e
'/: warning:/d' | \
424 texi2index
>ld-index.me
427 mkscript.o
: $(srcdir)/mkscript.c
428 $(CC_FOR_BUILD
) -c
$(srcdir)/mkscript.c
431 $(CC_FOR_BUILD
) -o mkscript mkscript.o
433 ldlex.o
: ldlex.c ldgram.h
436 ldexp.o
: ldexp.c ldgram.h
437 ldctor.o
: ldctor.c ldgram.h
438 ldlang.o
: ldlang.c ldgram.h
439 ldmain.o
: ldmain.c ldgram.h
440 ldwrite.o
: ldwrite.c ldgram.h
441 lexsup.o
: lexsup.c ldgram.h
442 mri.o
: mri.c ldgram.h
443 relax.o
: relax.c ldgram.h
445 h8300hms.o
:h8300hms.c
446 h8300xray.o
:h8300xray.c
452 -mv
-f
$(STAGESTUFF
) $(LD_PROG
) stage1
453 -(cd stage1
; ln
-s
$(LD_PROG
) ld)
457 -mv
-f
$(STAGESTUFF
) $(LD_PROG
) stage2
458 -(cd stage2
; ln
-s
$(LD_PROG
) ld)
462 -mv
-f
$(STAGESTUFF
) $(LD_PROG
) stage3
463 -(cd stage3
; ln
-s
$(LD_PROG
) ld)
468 for i in
$(STAGESTUFF
) $(LD_PROG
) ; do cmp
$$i $(against
)/$$i ; done
471 -(cd stage1
; mv
-f
* ..
)
476 -(cd stage2
; mv
-f
* ..
)
481 -(cd stage3
; mv
-f
* ..
)
485 # Stuff that should be included in a distribution:
486 LDDISTSTUFF
=ldgram.c ldgram.h ldlex.c
487 diststuff
: $(LDDISTSTUFF
)
490 -rm -f
$(STAGESTUFF
) ld.??
ld.??? ldlex.
[qp
]
491 -rm -f
ld ld1 ld2 ld3
*.o y.output cdtest cdtest.out
495 -rm -f Makefile config.status TAGS sysdep.h
497 -rm -f
$(LDDISTSTUFF
)
499 lintlog
:$(SOURCES
) Makefile
500 $(LINT
) -abhxzn
$(LINTFLAGS
) $(LINTSOURCES
) \
501 | grep
-v
"pointer casts may be troublesome" \
502 | grep
-v
"possible pointer alignment problem" \
504 | grep
-v
"conversion from long may lose accuracy" \
505 | grep
-v
"warning: constant argument to NOT" \
506 | grep
-v
"enumeration type clash, operator CAST" \
507 | grep
-v
"warning: constant in conditional context"\
508 | grep
-v
"archive\.c"
511 tags TAGS
:$(SOURCES
) $(HEADERS
)
519 -parent
=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
520 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
521 -if
[ -d
$(bindir) ] ; then true
; else mkdir
$(bindir) ; fi
522 -parent
=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
523 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
524 -if
[ -d
$(man1dir) ] ; then true
; else mkdir
$(man1dir) ; fi
525 -n
=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
526 rm -f
$(bindir)/$$n; \
527 $(INSTALL_PROGRAM
) ld.new
$(bindir)/$$n; \
528 $(INSTALL_DATA
) $(srcdir)/ld.1 $(man1dir)/$$n.1; \
529 if
[ -d
$(tooldir
) ]; then \
530 if
[ -d
$(tooldir
)/bin
] ; then true
; else mkdir
$(tooldir
)/bin
; fi
; \
531 rm -f
$(tooldir
)/bin
/ld; \
532 ln
$(bindir)/$$n $(tooldir
)/bin
/ld \
533 ||
$(INSTALL_PROGRAM
) ld.new
$(tooldir
)/bin
/ld; \
534 rm -f
$(tooldir
)/bin
/gld
; \
535 ln
$(tooldir
)/bin
/ld $(tooldir
)/bin
/gld
; \
539 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
540 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
541 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
542 for i in
ld.
info* ; do \
543 $(INSTALL_DATA
) $$i $(infodir)/$$i ; \
549 #-----------------------------------------------------------------------------
550 # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
552 # 'VERSION' file must be present and contain a string of the form "x.y"
553 #-----------------------------------------------------------------------------
557 echo
"char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
560 # This target should be invoked before building a new release.
561 # 'VERSION' file must be present and contain a string of the form "x.y"
565 MAJ
=`sed 's/\..*//' VERSION` ; \
566 MIN
=`sed 's/.*\.//' VERSION` ; \
567 V
=$$MAJ.
`expr $$MIN + 1` ; \
569 echo
$$V >VERSION
; \
576 # Dummy target to force execution of dependent targets.
580 # Target to uncomment host-specific lines in this makefile. Such lines must
581 # have the following string beginning in column 1: #__<hostname>__#
582 # Original Makefile is backed up as 'Makefile.old'.
584 # Invoke with: make make HOST=xxx
587 -@if
test $(HOST
)x
= x
; then \
588 echo
'\aSpecify "make make HOST=???"'; \
591 grep
-s
"^#The next line was generated by 'make make'" Makefile
; \
592 if
test $$?
= 0 ; then \
593 echo
"\aMakefile has already been processed with 'make make'";\
596 mv
-f Makefile Makefile.old
; \
597 echo
"#The next line was generated by 'make make'" >Makefile
; \
598 echo
"HOST=$(HOST)" >>Makefile
; \
600 sed
"s/^#__$(HOST)__#//" < Makefile.old
>>Makefile
604 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
605 $(SHELL
) .
/config.status
607 ### mode:fundamental ***
608 ### Local Variables: ***
609 ### page-delimiter: "^#\f" ***
614 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY