New stuff for 29200
[deliverable/binutils-gdb.git] / ld / Makefile.dos
1 # This file was generated automatically by configure. Do not edit.
2 target_makefile_frag = ./config/mt-coff-h8300
3 host_makefile_frag = ./config/mh-sparc
4 CROSS=-DCROSS_COMPILE
5 ALL=all.cross
6 host_alias = sun4
7 host_cpu = sparc
8 host_vendor = sun
9 host_os = sunos411
10 version_path =
11 target_alias = h8300hms
12 target_cpu = h8300
13 target_vendor = hitachi
14 target_os = hms
15 subdir =
16 unsubdir = .
17 VPATH = .
18 # Makefile for the GNU linker ld (version 2)
19 # Copyright (C) 1989-1991 Free Software Foundation, Inc.
20
21 # This file is part of GNU ld..
22
23 # This program is free software; you can redistribute it and/or modify
24 # it under the terms of the GNU General Public License as published by
25 # the Free Software Foundation; either version 2 of the License, or
26 # (at your option) any later version.
27 #
28 # This program is distributed in the hope that it will be useful,
29 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 # GNU General Public License for more details.
32 #
33 # You should have received a copy of the GNU General Public License
34 # along with this program; if not, write to the Free Software
35 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
36
37 #
38 # $Id$
39 #
40
41 srcdir = .
42
43 prefix = /usr/local
44
45 bindir = $(prefix)/bin
46 datadir = $(prefix)/lib
47 libdir = $(prefix)/lib
48 mandir = $(datadir)/man
49 man1dir = $(mandir)/man1
50 man2dir = $(mandir)/man2
51 man3dir = $(mandir)/man3
52 man4dir = $(mandir)/man4
53 man5dir = $(mandir)/man5
54 man6dir = $(mandir)/man6
55 man7dir = $(mandir)/man7
56 man8dir = $(mandir)/man8
57 man9dir = $(mandir)/man9
58 infodir = $(datadir)/info
59 includedir = $(prefix)/include
60 docdir = $(datadir)/doc
61
62 SHELL = /bin/sh
63
64 INSTALL = install -c
65 INSTALL_PROGRAM = $(INSTALL)
66 INSTALL_DATA = $(INSTALL)
67
68 AR = ar
69 AR_FLAGS = qv
70 BISON = bison -y
71 MAKEINFO = makeinfo
72 RANLIB = ranlib
73
74 #version=/`$(unsubdir)/../gcc$(subdir)/gcc -dumpversion`
75 version=
76
77 # Seach path to override the default search path for -lfoo libraries.
78 # If LIB_PATH is empty, the ones in the script (if any) are left alone.
79 # Otherwise, they are replaced with the ones given in LIB_PATH,
80 # which may have the form: LIB_PATH=/lib:/usr/local/lib
81 LIB_PATH =
82
83 BASEDIR = ../..
84 INCLUDE = $(srcdir)/../include
85 INCLUDES = -I. -I$(srcdir) -I$(INCLUDE)
86 MINUS_G =
87
88 # Where to find texinfo.tex to format docn with TeX
89 TEXIDIR = $(srcdir)/../texinfo/fsf
90
91 # Whether to get roff to put indexing entries on stderr
92 TEXI2OPT =
93 # You neeed this to generate ld-index.ms (or .mm or .me)
94 # TEXI2OPT = -i
95
96 TEXI2ROFF=texi2roff
97
98 # Which roff program to use to generate index for texi2roff'd doc
99 ROFF = groff
100
101 SCRIPTS = ldgld68k.sc ldgld.sc \
102 ldlnk960.sc ldlnk960r.sc ldgld960.sc \
103 i386aout.sc ldm88k.sc ldglda29k.sc news.sc h8300hms.sc ebmon29k.sc
104
105 #### Host, target, and site specific Makefile fragments come in here.
106 HDEFINES = -O -D__MSDOS__ -D__GO32__
107 TDEFINES = -DDEFAULT_EMULATION=H8300HMS_EMULATION_NAME
108 YACC=yacc -tvd
109 #CC=gcc -Wall -ansi
110 #stuff for self hosting
111 HOSTING_CRT0=/lib/crt0.o
112 HOSTING_LIBS=/usr/latest/lib/gcc/sun4/libgnu.a -lc
113 HOSTING_EMU=LDEMULATION=gld; export LDEMULATION
114
115 ###
116
117 CFLAGS = $(INCLUDES) $(MINUS_G) $(HDEFINES) $(TDEFINES) $(CDEFINES)
118 LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
119
120 .SUFFIXES: .y .x .xr .xu .xn .xN .sc .scu .scr .scn $(SUFFIXES)
121
122 # go directly to ld.new in case this ld isn't capable of
123 # linking native object on this host. It can be renamed on
124 # install.
125 LD_PROG = ld.new
126
127 # A .sc script file is needed for each emulation mode.
128 # sed is used to transform this script into two variant forms:
129 # A .scr script is for linking without relocation (-r flag).
130 # A .scu script is like .scr, but *do* create constructors.
131 # A .scn script is for linking with -N flag (mix text and data on same page).
132 # A .scN script is for linking with -N flag (mix text and data on same page).
133 # The diference is that segments should (need) not be page aligned.
134
135 # A sed pattern to translate .sc to .scu:
136 SED_MAKE_RELOC_WITH_CONSTRUCTORS=\
137 -e "/If relocating/,/End if relocating/d" \
138 -e "/=/s/[_a-zA-Z.]* *= .*//g" \
139 -e '/>/s/} *> *[a-zA-Z]*/}/' \
140 -e "/text/s/[.]text .*:/.text :/" \
141 -e "/data/s/[.]data .*:/.data :/"
142 # A sed pattern to translate .scu to .scr:
143 SED_REMOVE_CONSTRUCTORS= -e /CONSTRUCTORS/d
144
145 .sc.scu:
146 sed $(SED_MAKE_RELOC_WITH_CONSTRUCTORS) $< >$*.scu
147 .scu.scr:
148 sed $(SED_REMOVE_CONSTRUCTORS) < $< >$*.scr
149
150 # Each builtin script file is included as a C string literal.
151 # These are generated by the mkscript filter.
152 .sc.x:
153 go32 mkscript < $< >$*.x
154
155 # if [ "x"$(LIB_PATH) = "x" ]; then mkscript < $< >$*.x ; \
156 # else \
157 # (sed <$< -e '/SEARCH_DIR(.*)/d' ; \
158 # echo $(LIB_PATH) | tr ':' ' ' | sed -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\1);/g';) | mkscript >$*.x;\
159 # fi
160
161 # The .xn script is used if the -n flag is given (write-protect text)..
162 # Sunos starts the text segment for demand-paged binaries at 0x2020
163 # and other binaries at 0x2000, since the exec header is paged in
164 # with the text. Some other Unix variants do the same.
165 # For -n and -N flags the offset of the exec header must be removed.
166 # This sed script does this if the master script contains
167 # a line of the form ".text 0xAAAA BLOCK(0xBBBB):" - the
168 # output will contain ".text 0xBBBB:". (For Sunos AAAA=2020 and BBBB=2000.)
169 .x.xn:
170 sed -e '/text/s/\.text .* BLOCK(\([^)]*\)):/.text \1:/' < $< >$*.xn
171
172 # The .xN script is used if the -N flag is given (don't write-protect text).
173 # This is like -n, except that the data segment need not be page-aligned.
174 # So get rid of commands for page-alignment: We assume these use ALIGN
175 # with a hex constant that end with 00, since any normal page size is be
176 # at least divisible by 256. We use the 00 to avoid matching
177 # anything that tries to align of (say) 8-byte boundaries.
178 .xn.xnn:
179 sed -e '/ALIGN/s/ALIGN( *0x[0-9a-fA-F]*00 *)/./' < $< >$*.xnn
180
181 # The xu and xr scripts don't search libraries, so LIB_PATH doesn't matter.
182 .sc.xu:
183 sed $(SED_MAKE_RELOC_WITH_CONSTRUCTORS) < $< | mkscript >$*.xu
184 .sc.xr:
185 sed $(SED_MAKE_RELOC_WITH_CONSTRUCTORS) $(SED_REMOVE_CONSTRUCTORS) \
186 < $< | mkscript >$*.xr
187
188 # for self hosting
189 BFDLIB=$(unsubdir)/../bfd$(subdir)/libbfd.a
190 LIBIBERTY=$(unsubdir)/../libiberty$(subdir)/libiberty.a
191
192 OFILES= ldgram.o ldlex.o ldlang.o ldctor.o ldmain.o ldindr.o \
193 ldwarn.o ldwrite.o ldexp.o ldlnk960.o ld__gld68k.o ld__i386aout.o \
194 ld__m88k.o ld__glda29k.o ld__news.o h8300hms.o ld__ebmon29k.o \
195 ld__gld.o ldgld960.o ldemul.o ldver.o ldmisc.o ldsym.o \
196 ldvanilla.o ldfile.o \
197 relax.o ../bfd/seclet.o lderror.o
198
199 HEADERS=config.h ldmain.h ldmain.h ldwarn.h ldmisc.h ldindr.h \
200 ldsym.h ldctor.h ldlang.h ldexp.h \
201 ldlex.h ldwrite.h ldver.h ldemul.h ldfile.h ldgram.h ld.h
202
203 MANSOURCES=ld.tex
204
205 LDCSOURCES=ldlang.c ldctor.c ldindr.c ldmain.c ldwrite.c ldwarn.c ldlnk960.c \
206 ld__gld.c ld__gld68k.c ld__m88k.c ld__ebmon29k.c \
207 ldgld960.c ldemul.c ldver.c ldmisc.c ldexp.c ldsym.c ldfile.c \
208 ldvanilla.c relax.c ../bfd/seclet.c lderror.c
209
210 GENERATED_SOURCES=ldgram.c ldlex.c ldgram.h ld__*.c
211 GENERATED_HEADERS=ldgram.h
212
213 LDSOURCES=$(LDCSOURCES) ldgram.y ldlex.l ldgram.h
214
215 BFDSOURCES=../../bfd/common/*.c
216
217 SOURCES= $(LDSOURCES) $(BFDSOURCES)
218 LINTSOURCES= $(LDCSOURCES) $(BFDSOURCES) $(GENERATED_SOURCES)
219
220 STAGESTUFF = *.x *.x[ru] *.sc[ru] $(GENERATED_SOURCES) $(GENERATED_HEADERS) $(OFILES) $(LD_PROG) mkscript
221
222 all: $(LD_PROG)
223
224 info: ld.info
225
226 ldgram.h ldgram.c: ldgram.y
227 $(BISON) $(BISONFLAGS) -d -o ldgram.c $(VPATH)/ldgram.y
228
229 ldlex.c: ldlex.l
230 lex -t $(VPATH)/ldlex.l >ldlex.c
231
232 # These all start with ld__ so 'make clean' can find them.
233
234 ld__gld.c: $(srcdir)/ldtemplate
235 sed -e s/"<ldtarget>"/ldgld/g -e s/"<arch>"/m68k/g \
236 -e s/"<target>"//g -e s/"<TARGET>"//g <$(srcdir)/ldtemplate >$@
237 ld__news.c: $(srcdir)/ldtemplate
238 sed -e s/"<ldtarget>"/news/g -e s/"<arch>"/m68k/g \
239 -e s/"<target>"/news/g -e s/"<TARGET>"/NEWS/g <$(srcdir)/ldtemplate >$@
240
241 ld__i386aout.c: $(srcdir)/ldtemplate
242 sed -e s/"<ldtarget>"/i386aout/g -e s/"<arch>"/i386/g \
243 -e s/"<target>"/i386aout/g -e s/"<TARGET>"/I386AOUT/g <$(srcdir)/ldtemplate >$@
244
245
246 ld__ebmon29k.c: $(srcdir)/ldtemplate
247 sed -e s/"<ldtarget>"/ebmon29k/g -e s/"<arch>"/a29k/g \
248 -e s/"gld<target>"/ebmon29k/g -e s/"GLD<TARGET>"/EBMON29K/g \
249 -e s/"<ldtarget>.x"/ebmon.x/ <$(srcdir)/ldtemplate >$@
250
251 ld__gld68k.c: $(srcdir)/ldtemplate
252 sed -e s/"<ldtarget>"/ldgld68k/g -e s/"<arch>"/m68k/g \
253 -e s/"<target>"/68k/g -e s/"<TARGET>"/68K/g <$(srcdir)/ldtemplate >$@
254 ld__glda29k.c: $(srcdir)/ldtemplate
255 sed -e s/"<ldtarget>"/ldglda29k/g -e s/"<arch>"/a29k/g \
256 -e s/"<target>"/29k/g -e s/"<TARGET>"/29K/g <$(srcdir)/ldtemplate >$@
257 ld__m88k.c: $(srcdir)/ldtemplate
258 sed -e s/"<ldtarget>"/ldm88k/g -e s/"<arch>"/m88k/g \
259 -e s/"<target>"/m88kbcs/g -e s/"<TARGET>"/M88KBCS/g <$(srcdir)/ldtemplate >$@
260
261 # The .c files for these are generated from ldtemplete.
262 ld__gld.o: mkscript ldgld.x ldgld.xr ldgld.xu ldgld.xn ldgld.xnn
263 ld__news.o: mkscript news.x news.xr news.xu news.xn news.xnn
264 ld__i386aout.o: mkscript i386aout.x i386aout.xr i386aout.xu i386aout.xn i386aout.xnn
265 ld__ebmon29k.o: mkscript ebmon29k.x ebmon29k.xr ebmon29k.xu \
266 ebmon29k.xn ebmon29k.xnn
267 ld__gld68k.o: mkscript ldgld68k.x ldgld68k.xr ldgld68k.xu \
268 ldgld68k.xn ldgld68k.xnn
269 ld__glda29k.o: mkscript ldglda29k.x ldglda29k.xr ldglda29k.xu \
270 ldglda29k.xn ldglda29k.xnn
271 ld__m88k.o: mkscript ldm88k.x ldm88k.xr ldm88k.xu ldm88k.xn ldm88k.xnn
272
273 # The .c files for these are (for now) specially written (not ldtemplete).
274 ldgld960.o: mkscript ldgld960.x
275 ldlnk960.o: mkscript ldlnk960.x ldlnk960.xr
276 h8300hms.o: mkscript h8300hms.x
277
278
279 #$(BFDLIB): $(BFDSOURCES)
280 # (cd ../bfd; make)
281
282 $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
283 >ld.rf $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES)
284 $(CC) @ld.rf
285
286 # (cd ../bfd; make)
287 # LDEMULATION=gld; export LDEMULATION; GNUTARGET=a.out-sunos-big;./ldok -format a.out-sunos-big -o ld /lib/crt0.o $(OFILES) $(BFDLIB) $(LIBIBERTY) -lc /usr/local/lib/gcc/sparc/1.91/gnulib
288 # gld -o ld /lib/crt0.o $(OFILES) $(BFDLIB) $(LIBIBERTY) -lc /usr/local/lib/gcc/sparc/1.91/gnulib
289 # $(CC) -Bstatic -o ld.new $(OFILES) $(BFDLIB) $(LIBIBERTY)
290
291
292 ld1: ld.new
293 $(HOSTING_EMU); ./ld.new -o ld1 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
294
295 ld2: ld1
296 $(HOSTING_EMU); ./ld1 -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
297
298 ld3: ld2
299 $(HOSTING_EMU); ./ld2 -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
300
301 ######################################################################
302 TDEFINES = -DDEFAULT_EMULATION=H8300HMS_EMULATION_NAME
303 YACC=yacc -tvd
304 #CC=gcc -Wall -ansi
305 #stuff for self hosting
306 HOSTING_CRT0=/lib/crt0.o
307 HOSTING_LIBS=/usr/latest/lib/gcc/sun4/libgnu.a -lc
308 HOSTING_EMU=LDEMULATION=gld; export LDEMULATION
309
310 # DOCUMENTATION TARGETS
311 # TeX output
312 ld.dvi: $(srcdir)/ld.texinfo
313 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/ld.texinfo
314 texindex ld.??
315 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/ld.texinfo
316
317 # info file for online browsing
318 ld.info: $(srcdir)/ld.texinfo
319 $(MAKEINFO) -o ld.info $(srcdir)/ld.texinfo
320
321 #separate targets for "ms", "me", and "mm" forms of roff doc
322 # Try to use a recent texi2roff. v2 was put on prep in jan91.
323 # If you want an index, see texi2roff doc for postprocessing
324 # and add -i to texi2roff invocations below.
325 # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
326 # correspondint -e lines when later texi2roff's are current)
327 # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
328 # + @c's deleted explicitly because texi2roff sees texinfo commands in them
329 # + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
330 # + @alphaenumerate is ridiculously new, turned into @enumerate
331
332 ld.ms: $(srcdir)/ld.texinfo
333 sed -e '/\\input texinfo/d' \
334 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
335 -e '/^@ifinfo/,/^@end ifinfo/d' \
336 -e '/^@c/d' \
337 -e 's/{.*,,/{/' \
338 -e 's/@ / /g' \
339 -e 's/^@alphaenumerate/@enumerate/g' \
340 -e 's/^@end alphaenumerate/@end enumerate/g' \
341 $(srcdir)/ld.texinfo | \
342 $(TEXI2ROFF) $(TEXI2OPT) -ms | \
343 sed -e 's/---/\\(em/g' \
344 >>ld.ms
345
346 # index for roff output
347 ld-index.ms: ld.ms
348 $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
349 sed -e '/: warning:/d' | \
350 texi2index >ld-index.ms
351
352 # roff output (-mm)
353 ld.mm: $(srcdir)/ld.texinfo
354 sed -e '/\\input texinfo/d' \
355 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
356 -e '/^@ifinfo/,/^@end ifinfo/d' \
357 -e '/^@c/d' \
358 -e 's/{.*,,/{/' \
359 -e '/@noindent/d' \
360 -e 's/@ / /g' \
361 -e 's/^@alphaenumerate/@enumerate/g' \
362 -e 's/^@end alphaenumerate/@end enumerate/g' \
363 $(srcdir)/ld.texinfo | \
364 $(TEXI2ROFF) $(TEXI2OPT) -mm | \
365 sed -e 's/---/\\(em/g' \
366 >ld.mm
367
368 # index for roff output
369 ld-index.mm: ld.mm
370 $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
371 sed -e '/: warning:/d' | \
372 texi2index >ld-index.mm
373
374 # roff output (-me)
375 ld.me: $(srcdir)/ld.texinfo
376 sed -e '/\\input texinfo/d' \
377 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
378 -e '/^@ifinfo/,/^@end ifinfo/d' \
379 -e '/^@c/d' \
380 -e 's/{.*,,/{/' \
381 -e 's/@ / /g' \
382 -e 's/^@alphaenumerate/@enumerate/g' \
383 -e 's/^@end alphaenumerate/@end enumerate/g' \
384 $(srcdir)/ld.texinfo | \
385 $(TEXI2ROFF) $(TEXI2OPT) -me | \
386 sed -e 's/---/\\(em/g' \
387 >>ld.me
388
389 # index for roff output
390 ld-index.me: ld.me
391 $(ROFF) -me ld.me 2>&1 1>/dev/null | \
392 sed -e '/: warning:/d' | \
393 texi2index >ld-index.me
394
395
396 ######################################################################
397 TDEFINES = -DDEFAULT_EMULATION=H8300HMS_EMULATION_NAME
398 YACC=yacc -tvd
399 #CC=gcc -Wall -ansi
400 #stuff for self hosting
401 HOSTING_CRT0=/lib/crt0.o
402 HOSTING_LIBS=/usr/latest/lib/gcc/sun4/libgnu.a -lc
403 HOSTING_EMU=LDEMULATION=gld; export LDEMULATION
404
405
406 mkscript: $(srcdir)/mkscript.c
407 $(CC) $(CFLAGS) $(LDFLAGS) -o mkscript $(srcdir)/mkscript.c $(LOADLIBES)
408
409 ldlex.c: ldlex.l ldgram.h
410 ldlex.o: ldlex.c ldgram.h
411 ldgram.o: ldgram.c
412 ldgram.c: ldgram.y
413
414 ldgld68k.x : ldgld68k.sc
415 ldgld68kUr.x : ldgld68kUr.sc
416 ldgld68kr.x : ldgld68kr.sc
417 h8300hms.x: h8300hms.sc
418 ldgld.x : ldgld.sc
419 ldgldUr.x : ldgldUr.sc
420 ldgldr.x : ldgldr.sc
421 ldlnk960.x : ldlnk960.sc
422 ldlnk960r.x : ldlnk960r.sc
423 ldgld960.x : ldgld960.sc
424 ldgldm88k.x : ldgldm88k.sc
425 ldm88kUr.x : ldm88kUr.sc
426 ldm88kr.x: ldm88kr.sc
427 ldm88k.x: ldm88k.sc
428 news.x: news.sc
429 i386aout.x: i386aout.sc
430 h8300hms.x: h8300hms.sc
431 h8300hms.o: h8300hms.c
432 ldgld68k.x: ldgld68k.sc
433 ldglda29k.x : ldglda29k.sc
434 ldglda29kr.x : ldglda29kr.sc
435 ldglda29kUr.x : ldglda29kUr.sc
436
437 ebmon29k.x : ebmon29k.sc
438 ebmon29kr.x : ebmon29kr.sc
439 ebmon29kUr.x : ebmon29kUr.sc
440
441 stage1: force
442 -mkdir stage1
443 -mv -f $(STAGESTUFF) stage1
444 -(cd stage1 ; ln -s $(LD_PROG) ld)
445
446 stage2: force
447 -mkdir stage2
448 -mv -f $(STAGESTUFF) stage2
449 -(cd stage2 ; ln -s $(LD_PROG) ld)
450
451 stage3: force
452 -mkdir stage3
453 -mv -f $(STAGESTUFF) stage3
454 -(cd stage3 ; ln -s $(LD_PROG) ld)
455
456 against=stage2
457
458 comparison: force
459 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
460
461 de-stage1: force
462 -(cd stage1 ; mv -f * ..)
463 -rm ld
464 -rmdir stage1
465
466 de-stage2: force
467 -(cd stage2 ; mv -f * ..)
468 -rm ld
469 -rmdir stage2
470
471 de-stage3: force
472 -(cd stage3 ; mv -f * ..)
473 -rm ld
474 -rmdir stage3
475
476 clean:
477 -rm -f TAGS $(OFILES) $(GENERATED_SOURCES) $(GENERATED_HEADERS)
478 -rm -f *.x *.x[runN] *.sc[runN]
479 -rm -f ld.?? ld.???
480 -rm -f ld ld1 ld2 ld3 ld.new mkscript *.o y.output
481
482 lintlog: $(SOURCES) Makefile
483 $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \
484 | grep -v "pointer casts may be troublesome" \
485 | grep -v "possible pointer alignment problem" \
486 | grep -v "ignore" \
487 | grep -v "conversion from long may lose accuracy" \
488 | grep -v "warning: constant argument to NOT" \
489 | grep -v "enumeration type clash, operator CAST" \
490 | grep -v "warning: constant in conditional context"\
491 | grep -v "archive\.c"
492
493
494 tags TAGS: $(SOURCES) $(HEADERS)
495 etags -t $?
496
497
498 objdump: objdump.c
499
500 install: $(LD_PROG)
501 $(INSTALL_PROGRAM) ld.new $(bindir)/ld
502 # $(INSTALL_PROGRAM) ld.new $(gcclibdir)/ld
503
504 install-info: info
505 for i in ld.info* ; do \
506 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
507 done
508
509 # Something like the following might make sense for install, but doesn't work
510 # - it is too fragile, depending on a gcc binary int the right place.
511 # Perhaps using gcc/version.c might work?
512 # # If $(gcclibdir) exists, install ld there, and put a link to it
513 # # from $(bindir); otherwise put ld in $(bindir).
514 # if ([ -x $(unsubdir)/../gcc$(subdir)/gcc -a -d $(gcclibdir) ]); then \
515 # $(INSTALL_PROGRAM) ld.new $(gcclibdir)/ld; \
516 # cd $(bindir); rm -f ld; ln -s $(gcclibdir)/ld ld; \
517 # else \
518 # $(INSTALL_PROGRAM) ld.new $(bindir)/ld; \
519 # fi
520
521 #-----------------------------------------------------------------------------
522 # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
523 #
524 # 'VERSION' file must be present and contain a string of the form "x.y"
525 #-----------------------------------------------------------------------------
526
527 ver960.c: FORCE
528 rm -f ver960.c
529 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
530
531
532 # This target should be invoked before building a new release.
533 # 'VERSION' file must be present and contain a string of the form "x.y"
534 #
535 roll:
536 @V=`cat VERSION` ; \
537 MAJ=`sed 's/\..*//' VERSION` ; \
538 MIN=`sed 's/.*\.//' VERSION` ; \
539 V=$$MAJ.`expr $$MIN + 1` ; \
540 rm -f VERSION ; \
541 echo $$V >VERSION ; \
542 echo Version $$V
543
544
545 dep: $(LDSOURCES)
546 mkdep $(CFLAGS) $?
547
548 # Dummy target to force execution of dependent targets.
549 #
550 force:
551
552 # Target to uncomment host-specific lines in this makefile. Such lines must
553 # have the following string beginning in column 1: #__<hostname>__#
554 # Original Makefile is backed up as 'Makefile.old'.
555 #
556 # Invoke with: make make HOST=xxx
557 #
558 make:
559 -@if test $(HOST)x = x ; then \
560 echo '\aSpecify "make make HOST=???"'; \
561 exit 1; \
562 fi ; \
563 grep -s "^#The next line was generated by 'make make'" Makefile; \
564 if test $$? = 0 ; then \
565 echo "\aMakefile has already been processed with 'make make'";\
566 exit 1; \
567 fi ; \
568 mv -f Makefile Makefile.old; \
569 echo "#The next line was generated by 'make make'" >Makefile ; \
570 echo "HOST=$(HOST)" >>Makefile ; \
571 echo >>Makefile ; \
572 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
573
574 #
575
576 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
577 $(SHELL) ./config.status
578
579 ### mode:fundamental ***
580 ### Local Variables: ***
581 ### page-delimiter: "^#" ***
582 ### End: ***
583 ### end of file
584
585
586 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.040724 seconds and 4 git commands to generate.