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
= $(bindir)/$(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 \
124 em_h8300hms.o em_ebmon29k.o em_sun4.o em_gld960.o \
125 em_m68kcoff.o em_h8300xray.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
129 EMULATION_OFILES
=${ALL_EMULATIONS}
130 #EMULATION_OFILES=em_${EMUL}.o ${OTHER_EMULATIONS}
132 OFILES
= ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldindr.o \
133 ldwarn.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldsym.o \
134 ldfile.o relax.o lderror.o
${EMULATION_OFILES}
136 HEADERS
=config.h ldmain.h ldmain.h ldwarn.h ldmisc.h ldindr.h \
137 ldsym.h ldctor.h ldlang.h ldexp.h \
138 ldlex.h ldwrite.h ldver.h ldemul.h ldfile.h ldgram.h
ld.h
142 LDCSOURCES
=ldlang.c lexsup.c ldctor.c mri.c ldindr.c ldmain.c ldwrite.c ldwarn.c ldlnk960.c \
143 em_gld.c em_sun3.c em_go32.c em_m88k.c em_ebmon29k.c \
144 ldgld960.c ldemul.c ldver.c ldmisc.c ldexp.c ldsym.c ldfile.c \
147 GENERATED_SOURCES
=ldgram.c ldlex.c em_
*.c ldemul-list.h
148 GENERATED_HEADERS
=ldgram.h ldemul-list.h
150 LDSOURCES
=$(LDCSOURCES
) ldgram.y ldlex.l ldgram.h
152 BFDSOURCES
=..
/..
/bfd
/common
/*.c
154 SOURCES
= $(LDSOURCES
) $(BFDSOURCES
)
155 LINTSOURCES
= $(LDCSOURCES
) $(BFDSOURCES
) $(GENERATED_SOURCES
)
157 STAGESTUFF
= *.x
*.x
[runN
] *.sc
[runN
] $(GENERATED_SOURCES
) $(GENERATED_HEADERS
) $(OFILES
) mkscript
161 check: bootstrap check-cdtest
165 ldgram.h ldgram.c
: ldgram.y
166 $(BISON
) $(BISONFLAGS
) -d
$(srcdir)/ldgram.y
167 mv
-f y.tab.c ldgram.c
168 mv
-f y.tab.h ldgram.h
171 DEF_EMUL
= ` if [ -z "$(EMUL)" ] ; then \
172 echo "you must set a default emulation" 1>&2 ; \
175 echo -DDEFAULT_EMULATION='"$(EMUL)"' ; \
179 $(CC
) $(CFLAGS
) $(INCLUDES
) $(HDEFINES
) $(TDEFINES
) $(CDEFINES
) $(DEF_EMUL
) -c
$<
182 (echo
"/* This file is automatically generated. DO NOT EDIT! */";\
183 for f in
`echo " " ${EMULATION_OFILES} "" \
184 | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
185 echo
"extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
188 echo
"#define EMULATION_LIST \\";\
189 for f in
`echo " " ${EMULATION_OFILES} "" \
190 | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
191 echo
" &ld_$${f}_emulation, \\"; \
193 echo
" 0") >ldemul-list.h
195 ldemul.o
: ldemul-list.h
197 ldlex.c
: ldlex.l ldgram.h
198 $(LEX
) -I
-Cem
$(srcdir)/ldlex.l
201 # These all start with em_ so 'make clean' can find them.
203 GENSCRIPTS
=sh
$(srcdir)/genscripts.sh
${srcdir} ${host_alias} ${target_alias}
204 GEN_DEPENDS
=.
/mkscript
$(srcdir)/genscripts.sh
206 em_sun4.c
: $(srcdir)/sun4.sh \
207 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
208 ${GENSCRIPTS} sun4.sh
209 em_sun3.c
: $(srcdir)/sun3.sh \
210 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
211 ${GENSCRIPTS} sun3.sh
212 em_go32.c
: $(srcdir)/go32.sh \
213 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
214 ${GENSCRIPTS} go32.sh
215 em_news.c
: $(srcdir)/news.sh \
216 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
217 ${GENSCRIPTS} news.sh
218 em_hp300bsd.c
: $(srcdir)/hp300bsd.sh \
219 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
220 ${GENSCRIPTS} hp300bsd.sh
221 em_i386aout.c
: $(srcdir)/i386aout.sh \
222 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
223 ${GENSCRIPTS} i386aout.sh
224 em_ebmon29k.c
: $(srcdir)/ebmon29k.sh \
225 $(srcdir)/generic.em
$(srcdir)/ebmon29k.sc-sh
${GEN_DEPENDS}
226 ${GENSCRIPTS} ebmon29k.sh
227 em_sa29200.c
: $(srcdir)/sa29200.sh \
228 $(srcdir)/generic.em
$(srcdir)/sa29200.sc-sh
${GEN_DEPENDS}
229 ${GENSCRIPTS} sa29200.sh
230 em_a29k.c
: $(srcdir)/a29k.sh \
231 $(srcdir)/generic.em
$(srcdir)/a29k.sc-sh
${GEN_DEPENDS}
232 ${GENSCRIPTS} a29k.sh
233 em_m88kbcs.c
: $(srcdir)/m88kbcs.sh \
234 $(srcdir)/generic.em
$(srcdir)/h8300hms.sc-sh
${GEN_DEPENDS}
235 ${GENSCRIPTS} m88kbcs.sh
236 em_h8300hms.c
: $(srcdir)/h8300hms.sh \
237 $(srcdir)/h8300hms.em
$(srcdir)/h8300hms.sc-sh
${GEN_DEPENDS}
238 ${GENSCRIPTS} h8300hms.sh
239 em_h8300xray.c
: $(srcdir)/h8300xray.sh \
240 $(srcdir)/h8300xray.em
$(srcdir)/h8300xray.sc-sh
${GEN_DEPENDS}
241 ${GENSCRIPTS} h8300xray.sh
242 em_st2000.c
: $(srcdir)/st2000.sh \
243 $(srcdir)/st2000.em
$(srcdir)/st2000.sc-sh
${GEN_DEPENDS}
244 ${GENSCRIPTS} st2000.sh
245 em_z8ksim.c
: $(srcdir)/z8ksim.sh \
246 $(srcdir)/z8ksim.em
$(srcdir)/z8ksim.sc-sh
${GEN_DEPENDS}
247 ${GENSCRIPTS} z8ksim.sh
248 em_vanilla.c
: $(srcdir)/vanilla.sh \
249 $(srcdir)/vanilla.em
$(srcdir)/vanilla.sc-sh
${GEN_DEPENDS}
250 ${GENSCRIPTS} vanilla.sh
251 em_lnk960.c
: $(srcdir)/lnk960.sh \
252 $(srcdir)/lnk960.em
$(srcdir)/i960.sc-sh
${GEN_DEPENDS}
253 ${GENSCRIPTS} lnk960.sh
254 em_gld960.c
: $(srcdir)/gld960.sh \
255 $(srcdir)/gld960.em
$(srcdir)/i960.sc-sh
${GEN_DEPENDS}
256 ${GENSCRIPTS} gld960.sh
257 em_m68kcoff.c
: $(srcdir)/m68kcoff.sh \
258 $(srcdir)/generic.em
$(srcdir)/m68kcoff.sc-sh
${GEN_DEPENDS}
259 ${GENSCRIPTS} m68kcoff.sh
260 em_i386coff.c
: $(srcdir)/i386coff.sh \
261 $(srcdir)/generic.em
$(srcdir)/i386coff.sc-sh
${GEN_DEPENDS}
262 ${GENSCRIPTS} i386coff.sh
263 em_mipslit.c
: $(srcdir)/mipslit.sh \
264 $(srcdir)/generic.em
$(srcdir)/mips.sc-sh
${GEN_DEPENDS}
265 ${GENSCRIPTS} mipslit.sh
266 em_i386bsd.c
: $(srcdir)/i386bsd.sh \
267 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
268 ${GENSCRIPTS} i386bsd.sh
269 em_mipsbig.c
: $(srcdir)/mipsbig.sh \
270 $(srcdir)/generic.em
$(srcdir)/mips.sc-sh
${GEN_DEPENDS}
271 ${GENSCRIPTS} mipsbig.sh
272 em_mipsbsd.c
: $(srcdir)/mipsbsd.sh \
273 $(srcdir)/generic.em
$(srcdir)/aout.sc-sh
${GEN_DEPENDS}
274 ${GENSCRIPTS} mipsbsd.sh
275 em_mipsidt.c
: $(srcdir)/mipsidt.sh \
276 $(srcdir)/generic.em
$(srcdir)/mips.sc-sh
${GEN_DEPENDS}
277 ${GENSCRIPTS} mipsidt.sh
279 $(LD_PROG
): $(OFILES
) $(BFDLIB
) $(LIBIBERTY
)
280 $(CC
) $(CFLAGS
) $(INCLUDES
) $(HDEFINES
) $(TDEFINES
) $(CDEFINES
) $(LDFLAGS
) -o
$(LD_PROG
) $(OFILES
) $(BFDLIB
) $(LIBIBERTY
) $(LOADLIBES
)
282 # Rules for testing by relinking ld itself.
285 $(HOSTING_EMU
); .
/ld.new
-o ld-partial.o
-r
$(OFILES
)
287 $(HOSTING_EMU
); .
/ld.new
-o ld1
$(HOSTING_CRT0
) ld-partial.o
$(BFDLIB
) $(LIBIBERTY
) $(HOSTING_LIBS
)
290 $(HOSTING_EMU
); .
/ld.new
-o ld1-full
$(HOSTING_CRT0
) $(OFILES
) $(BFDLIB
) $(LIBIBERTY
) $(HOSTING_LIBS
)
293 $(HOSTING_EMU
); .
/ld1
-o ld2
$(HOSTING_CRT0
) $(OFILES
) $(BFDLIB
) $(LIBIBERTY
) $(HOSTING_LIBS
)
296 $(HOSTING_EMU
); .
/ld2
-o ld3
$(HOSTING_CRT0
) $(OFILES
) $(BFDLIB
) $(LIBIBERTY
) $(HOSTING_LIBS
)
301 cdtest
: cdtest-main.o cdtest-func.o cdtest-foo.o
302 $(HOSTING_EMU
); .
/ld.new
-o cdtest
$(HOSTING_CRT0
) \
303 cdtest-main.o cdtest-func.o cdtest-foo.o
$(HOSTING_LIBS
)
305 check-cdtest
: cdtest
$(srcdir)/cdtest.exp
307 diff
$(srcdir)/cdtest.exp cdtest.out
309 ######################################################################
310 # DOCUMENTATION TARGETS
311 # Manual configuration file; not usually attached to normal configuration,
312 # because almost all configs use "gen" version of manual.
313 # Set DOCVER above to change.
314 configdoc.texi
: ${DOCVER}-doc.texi
315 ln
-s
${DOCVER}-doc.texi configdoc.texi || \
316 ln
${DOCVER}-doc.texi configdoc.texi || \
317 cp
${DOCVER}-doc.texi configdoc.texi
321 ld.
dvi: $(srcdir)/ld.texinfo
322 $(TEXI2DVI
) $(srcdir)/ld.texinfo
324 ldint.
dvi: $(srcdir)/ldint.texinfo
325 $(TEXI2DVI
) $(srcdir)/ldint.texinfo
327 # info file for online browsing
328 ld.
info: $(srcdir)/ld.texinfo configdoc.texi
329 $(MAKEINFO
) -o
ld.
info $(srcdir)/ld.texinfo
331 ldint.
info: $(srcdir)/ldint.texinfo
332 $(MAKEINFO
) -o ldint.
info $(srcdir)/ldint.texinfo
334 #separate targets for "ms", "me", and "mm" forms of roff doc
335 # Try to use a recent texi2roff. v2 was put on prep in jan91.
336 # If you want an index, see texi2roff doc for postprocessing
337 # and add -i to texi2roff invocations below.
338 # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
339 # correspondint -e lines when later texi2roff's are current)
340 # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
341 # + @c's deleted explicitly because texi2roff sees texinfo commands in them
342 # + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
343 # + @alphaenumerate is ridiculously new, turned into @enumerate
345 ld.ms
: $(srcdir)/ld.texinfo
346 sed
-e
'/\\input texinfo/d' \
347 -e
'/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
348 -e
'/^@ifinfo/,/^@end ifinfo/d' \
352 -e
's/^@alphaenumerate/@enumerate/g' \
353 -e
's/^@end alphaenumerate/@end enumerate/g' \
354 $(srcdir)/ld.texinfo | \
355 $(TEXI2ROFF
) $(TEXI2OPT
) -ms | \
356 sed
-e
's/---/\\(em/g' \
359 # index for roff output
361 $(ROFF
) -ms
ld.ms
2>&1 1>/dev
/null | \
362 sed
-e
'/: warning:/d' | \
363 texi2index
>ld-index.ms
366 ld.mm
: $(srcdir)/ld.texinfo
367 sed
-e
'/\\input texinfo/d' \
368 -e
'/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
369 -e
'/^@ifinfo/,/^@end ifinfo/d' \
374 -e
's/^@alphaenumerate/@enumerate/g' \
375 -e
's/^@end alphaenumerate/@end enumerate/g' \
376 $(srcdir)/ld.texinfo | \
377 $(TEXI2ROFF
) $(TEXI2OPT
) -mm | \
378 sed
-e
's/---/\\(em/g' \
381 # index for roff output
383 $(ROFF
) -mm
ld.mm
2>&1 1>/dev
/null | \
384 sed
-e
'/: warning:/d' | \
385 texi2index
>ld-index.mm
388 ld.me
: $(srcdir)/ld.texinfo
389 sed
-e
'/\\input texinfo/d' \
390 -e
'/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
391 -e
'/^@ifinfo/,/^@end ifinfo/d' \
395 -e
's/^@alphaenumerate/@enumerate/g' \
396 -e
's/^@end alphaenumerate/@end enumerate/g' \
397 $(srcdir)/ld.texinfo | \
398 $(TEXI2ROFF
) $(TEXI2OPT
) -me | \
399 sed
-e
's/---/\\(em/g' \
402 # index for roff output
404 $(ROFF
) -me
ld.me
2>&1 1>/dev
/null | \
405 sed
-e
'/: warning:/d' | \
406 texi2index
>ld-index.me
409 ######################################################################
411 .
/mkscript
: $(srcdir)/mkscript.c
412 $(CC_FOR_BUILD
) -o mkscript
$(srcdir)/mkscript.c
414 ldlex.o
: ldlex.c ldgram.h
417 ldexp.o
: ldexp.c ldgram.h
418 ldctor.o
: ldctor.c ldgram.h
419 ldlang.o
: ldlang.c ldgram.h
420 ldmain.o
: ldmain.c ldgram.h
421 ldwrite.o
: ldwrite.c ldgram.h
422 lexsup.o
: lexsup.c ldgram.h
423 mri.o
: mri.c ldgram.h
424 relax.o
: relax.c ldgram.h
426 h8300hms.o
:h8300hms.c
427 h8300xray.o
:h8300xray.c
433 -mv
-f
$(STAGESTUFF
) $(LD_PROG
) stage1
434 -(cd stage1
; ln
-s
$(LD_PROG
) ld)
438 -mv
-f
$(STAGESTUFF
) $(LD_PROG
) stage2
439 -(cd stage2
; ln
-s
$(LD_PROG
) ld)
443 -mv
-f
$(STAGESTUFF
) $(LD_PROG
) stage3
444 -(cd stage3
; ln
-s
$(LD_PROG
) ld)
449 for i in
$(STAGESTUFF
) $(LD_PROG
) ; do cmp
$$i $(against
)/$$i ; done
452 -(cd stage1
; mv
-f
* ..
)
457 -(cd stage2
; mv
-f
* ..
)
462 -(cd stage3
; mv
-f
* ..
)
466 # Stuff that should be included in a distribution:
467 LDDISTSTUFF
=ldgram.c ldgram.h ldlex.c
ld.mm
468 diststuff
: $(LDDISTSTUFF
)
471 -rm -f
$(STAGESTUFF
) ld.??
ld.??? ldlex.
[qp
]
472 -rm -f
ld ld1 ld2 ld3
*.o y.output cdtest cdtest.out
476 -rm -f Makefile config.status TAGS sysdep.h
478 -rm -f
$(LDDISTSTUFF
)
480 lintlog
:$(SOURCES
) Makefile
481 $(LINT
) -abhxzn
$(LINTFLAGS
) $(LINTSOURCES
) \
482 | grep
-v
"pointer casts may be troublesome" \
483 | grep
-v
"possible pointer alignment problem" \
485 | grep
-v
"conversion from long may lose accuracy" \
486 | grep
-v
"warning: constant argument to NOT" \
487 | grep
-v
"enumeration type clash, operator CAST" \
488 | grep
-v
"warning: constant in conditional context"\
489 | grep
-v
"archive\.c"
492 tags TAGS
:$(SOURCES
) $(HEADERS
)
500 -parent
=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
501 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
502 -if
[ -d
$(bindir) ] ; then true
; else mkdir
$(bindir) ; fi
503 -parent
=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
504 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
505 -if
[ -d
$(man1dir) ] ; then true
; else mkdir
$(man1dir) ; fi
506 -n
=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
507 rm -f
$(bindir)/$$n; \
508 $(INSTALL_PROGRAM
) ld.new
$(bindir)/$$n; \
509 $(INSTALL_DATA
) $(srcdir)/ld.1 $(man1dir)/$$n.1; \
510 if
[ -d
$(tooldir
) ]; then \
511 if
[ -d
$(tooldir
)/bin
] ; then true
; else mkdir
$(tooldir
)/bin
; fi
; \
512 rm -f
$(tooldir
)/bin
/ld; \
513 ln
$(bindir)/$$n $(tooldir
)/bin
/ld \
514 ||
$(INSTALL_PROGRAM
) ld.new
$(tooldir
)/bin
/ld; \
515 rm -f
$(tooldir
)/bin
/gld
; \
516 ln
$(tooldir
)/bin
/ld $(tooldir
)/bin
/gld
; \
520 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
521 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
522 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
523 for i in
ld.
info* ; do \
524 $(INSTALL_DATA
) $$i $(infodir)/$$i ; \
530 #-----------------------------------------------------------------------------
531 # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
533 # 'VERSION' file must be present and contain a string of the form "x.y"
534 #-----------------------------------------------------------------------------
538 echo
"char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
541 # This target should be invoked before building a new release.
542 # 'VERSION' file must be present and contain a string of the form "x.y"
546 MAJ
=`sed 's/\..*//' VERSION` ; \
547 MIN
=`sed 's/.*\.//' VERSION` ; \
548 V
=$$MAJ.
`expr $$MIN + 1` ; \
550 echo
$$V >VERSION
; \
557 # Dummy target to force execution of dependent targets.
561 # Target to uncomment host-specific lines in this makefile. Such lines must
562 # have the following string beginning in column 1: #__<hostname>__#
563 # Original Makefile is backed up as 'Makefile.old'.
565 # Invoke with: make make HOST=xxx
568 -@if
test $(HOST
)x
= x
; then \
569 echo
'\aSpecify "make make HOST=???"'; \
572 grep
-s
"^#The next line was generated by 'make make'" Makefile
; \
573 if
test $$?
= 0 ; then \
574 echo
"\aMakefile has already been processed with 'make make'";\
577 mv
-f Makefile Makefile.old
; \
578 echo
"#The next line was generated by 'make make'" >Makefile
; \
579 echo
"HOST=$(HOST)" >>Makefile
; \
581 sed
"s/^#__$(HOST)__#//" < Makefile.old
>>Makefile
585 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
586 $(SHELL
) .
/config.status
588 ### mode:fundamental ***
589 ### Local Variables: ***
590 ### page-delimiter: "^#\f" ***
595 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY