new configure triple work, added solaris 2 & irix host support, fix FLEX definition
[deliverable/binutils-gdb.git] / ld / Makefile.in
CommitLineData
ce4d59e2 1# Makefile for the GNU linker ld (version 2)
12fa72d4 2# Copyright (C) 1989-1992 Free Software Foundation, Inc.
ce4d59e2
SC
3
4# This file is part of GNU ld..
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.
19
eb02fd64
RP
20
21srcdir = .
22
e06ba18d
PB
23prefix = /usr/local
24
0bb95ac8 25program_transform_name =
12fa72d4
SC
26exec_prefix = $(prefix)
27bindir = $(exec_prefix)/bin
28libdir = $(exec_prefix)/lib
5cdea2ac 29tooldir = $(bindir)
e06ba18d 30datadir = $(prefix)/lib
12fa72d4 31mandir = $(prefix)/man
e06ba18d
PB
32man1dir = $(mandir)/man1
33man2dir = $(mandir)/man2
34man3dir = $(mandir)/man3
35man4dir = $(mandir)/man4
36man5dir = $(mandir)/man5
37man6dir = $(mandir)/man6
38man7dir = $(mandir)/man7
39man8dir = $(mandir)/man8
40man9dir = $(mandir)/man9
12fa72d4 41infodir = $(prefix)/info
e06ba18d
PB
42includedir = $(prefix)/include
43docdir = $(datadir)/doc
44
2cbe4c5f
HS
45gcclibdir = $(libdir)/gcc/$(target_alias)
46
e06ba18d
PB
47SHELL = /bin/sh
48
49INSTALL = install -c
50INSTALL_PROGRAM = $(INSTALL)
51INSTALL_DATA = $(INSTALL)
e06ba18d
PB
52AR = ar
53AR_FLAGS = qv
77b19d3d 54CFLAGS = -g
e06ba18d
PB
55MAKEINFO = makeinfo
56RANLIB = ranlib
5ff21fa5 57HOST_CC=$(CC)
bf3acf44 58BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
2df68136 59LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
8c32cf6e 60
12fa72d4 61#version=/`./../gcc/gcc -dumpversion`
092df318 62version=
8c32cf6e 63
ee17cac9
PB
64# Seach path to override the default search path for -lfoo libraries.
65# If LIB_PATH is empty, the ones in the script (if any) are left alone.
917bffa7
PB
66# (The default is usually /lib:usr/lib:/usr/local/lib, unless building
67# a cross-linker, in which case the default is empty. See genscripts.sh.)
ee17cac9
PB
68# Otherwise, they are replaced with the ones given in LIB_PATH,
69# which may have the form: LIB_PATH=/lib:/usr/local/lib
70LIB_PATH =
71
2ee11735 72BASEDIR = ../..
d6e467b4 73INCLUDE = $(srcdir)/../include
2ee11735 74INCLUDES = -I. -I$(srcdir) -I$(INCLUDE)
2ee11735 75
8073190b 76# Where to find texinfo.tex to format docn with TeX
8d317d2a
RP
77TEXIDIR = $(srcdir)/../texinfo/fsf
78
10a69a37 79# Whether to get roff to put indexing entries on stderr
954ac2ea
RP
80TEXI2OPT =
81# You neeed this to generate ld-index.ms (or .mm or .me)
82# TEXI2OPT = -i
8073190b 83
e06ba18d
PB
84TEXI2ROFF=texi2roff
85
8073190b
RP
86# Which roff program to use to generate index for texi2roff'd doc
87ROFF = groff
88
5cdea2ac
SC
89#stuff for self hosting (can be overridden in config file).
90HOSTING_CRT0=/lib/crt0.o
91HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else echo $(libdir)/libgcc.a; fi` -lc
92HOSTING_EMU=LDEMULATION=$(EMUL); export LDEMULATION
93
917bffa7
PB
94C++ = g++ -fgnu-linker
95
7e5c1057 96### Host, target, and site specific Makefile fragments come in here.
2ee11735
RP
97###
98
2ee11735
RP
99LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
100
917bffa7 101.SUFFIXES: .y .x .xr .xu .xn .xbn .sc .scu .scr .scn $(SUFFIXES) .cc
2ee11735 102
77b19d3d
RP
103.c.o:
104 $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $<
105
917bffa7
PB
106.cc.o:
107 $(C++) -c $(CFLAGS) -I$(srcdir) $<
108
eb02fd64
RP
109# go directly to ld.new in case this ld isn't capable of
110# linking native object on this host. It can be renamed on
111# install.
e7921bd4 112LD_PROG = ld.new
f78e2569 113
eb02fd64 114# for self hosting
12fa72d4
SC
115BFDLIB=./../bfd/libbfd.a
116LIBIBERTY=./../libiberty/libiberty.a
eb02fd64 117
7e5c1057 118ALL_EMULATIONS=ld__lnk960.o ld__sun3.o ld__i386aout.o \
9d1fe8a4 119 ld__go32.o ld__m88kbcs.o ld__a29k.o ld__news.o ld__hp300bsd.o ld__h8300hms.o ld__ebmon29k.o \
fe3e4dfc 120 ld__sun4.o ld__gld960.o ld__vanilla.o ld__h8300xray.o ld__st2000.o ld__sa29200.o
7e5c1057
PB
121
122EMULATION_OFILES=${ALL_EMULATIONS}
123#EMULATION_OFILES=ld__${EMUL}.o ${OTHER_EMULATIONS}
124
119afd7b 125OFILES= ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldindr.o \
7e5c1057 126 ldwarn.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldsym.o \
fc60e4f7 127 ldfile.o relax.o lderror.o ${EMULATION_OFILES}
eb02fd64 128
ce4d59e2
SC
129HEADERS=config.h ldmain.h ldmain.h ldwarn.h ldmisc.h ldindr.h \
130 ldsym.h ldctor.h ldlang.h ldexp.h \
239d28f3 131 ldlex.h ldwrite.h ldver.h ldemul.h ldfile.h ldgram.h ld.h
eb02fd64
RP
132
133MANSOURCES=ld.tex
134
119afd7b 135LDCSOURCES=ldlang.c lexsup.c ldctor.c mri.c ldindr.c ldmain.c ldwrite.c ldwarn.c ldlnk960.c \
9d1fe8a4 136 ld__gld.c ld__sun3.c ld__go32.c ld__m88k.c ld__ebmon29k.c \
2e2bf962 137 ldgld960.c ldemul.c ldver.c ldmisc.c ldexp.c ldsym.c ldfile.c \
fc60e4f7 138 relax.c lderror.c
eb02fd64 139
7e5c1057
PB
140GENERATED_SOURCES=ldgram.c ldlex.c ld__*.c ldemul-list.h
141GENERATED_HEADERS=ldgram.h ldemul-list.h
eb02fd64 142
cc964c6f 143LDSOURCES=$(LDCSOURCES) ldgram.y ldlex.l ldgram.h
eb02fd64 144
2ee11735 145BFDSOURCES=../../bfd/common/*.c
eb02fd64
RP
146
147SOURCES= $(LDSOURCES) $(BFDSOURCES)
148LINTSOURCES= $(LDCSOURCES) $(BFDSOURCES) $(GENERATED_SOURCES)
149
7e5c1057 150STAGESTUFF = *.x *.x[runN] *.sc[runN] $(GENERATED_SOURCES) $(GENERATED_HEADERS) $(OFILES) $(LD_PROG) mkscript
2ee11735 151
e06ba18d
PB
152all: Makefile $(LD_PROG)
153
917bffa7 154check: bootstrap check-cdtest
e06ba18d 155info: ld.info
2ee11735 156
4976e6ab 157ldgram.h ldgram.c: ldgram.y
5ff21fa5 158 $(BISON) $(BISONFLAGS) -d $(srcdir)/ldgram.y
31e54f5d
RP
159 mv -f y.tab.c ldgram.c
160 mv -f y.tab.h ldgram.h
cc964c6f 161
d20fb445 162ldmain.o: ldmain.c
77b19d3d 163 $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) -DDEFAULT_EMULATION='"$(EMUL)"' -c $<
7e5c1057
PB
164
165ldemul-list.h: Makefile
166 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
167 for f in `echo " " ${EMULATION_OFILES} "" \
168 | sed -e 's/ld__/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
169 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
170 done;\
171 echo "";\
172 echo "#define EMULATION_LIST \\";\
173 for f in `echo " " ${EMULATION_OFILES} "" \
174 | sed -e 's/ld__/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
175 echo " &ld_$${f}_emulation, \\"; \
176 done;\
177 echo " 0") >ldemul-list.h
178
179ldemul.o: ldemul-list.h
d20fb445 180
4976e6ab 181ldlex.c: ldlex.l
5ff21fa5
PB
182 $(LEX) -I -Cem $(srcdir)/ldlex.l
183 mv lex.yy.c ldlex.c
19b03b7a 184
c61b4184
PB
185# These all start with ld__ so 'make clean' can find them.
186
7e5c1057
PB
187GENSCRIPTS=sh $(srcdir)/genscripts.sh ${srcdir} ${host_alias} ${target_alias}
188GEN_DEPENDS=./mkscript $(srcdir)/genscripts.sh
189
190ld__sun4.c: $(srcdir)/sun4.sh \
191 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
192 ${GENSCRIPTS} sun4.sh
193ld__sun3.c: $(srcdir)/sun3.sh \
194 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
195 ${GENSCRIPTS} sun3.sh
9d1fe8a4
SC
196ld__go32.c: $(srcdir)/go32.sh \
197 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
198 ${GENSCRIPTS} go32.sh
7e5c1057
PB
199ld__news.c: $(srcdir)/news.sh \
200 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
201 ${GENSCRIPTS} news.sh
1584d069
PB
202ld__hp300bsd.c: $(srcdir)/hp300bsd.sh \
203 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
204 ${GENSCRIPTS} hp300bsd.sh
7e5c1057
PB
205ld__i386aout.c: $(srcdir)/i386aout.sh \
206 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
207 ${GENSCRIPTS} i386aout.sh
208ld__ebmon29k.c: $(srcdir)/ebmon29k.sh \
209 $(srcdir)/generic.em $(srcdir)/ebmon29k.sc-sh ${GEN_DEPENDS}
210 ${GENSCRIPTS} ebmon29k.sh
fe3e4dfc
SC
211ld__sa29200.c: $(srcdir)/sa29200.sh \
212 $(srcdir)/generic.em $(srcdir)/sa29200.sc-sh ${GEN_DEPENDS}
213 ${GENSCRIPTS} sa29200.sh
7e5c1057
PB
214ld__a29k.c: $(srcdir)/a29k.sh \
215 $(srcdir)/generic.em $(srcdir)/a29k.sc-sh ${GEN_DEPENDS}
216 ${GENSCRIPTS} a29k.sh
217ld__m88kbcs.c: $(srcdir)/m88kbcs.sh \
218 $(srcdir)/generic.em $(srcdir)/h8300hms.sc-sh ${GEN_DEPENDS}
219 ${GENSCRIPTS} m88kbcs.sh
220ld__h8300hms.c: $(srcdir)/h8300hms.sh \
221 $(srcdir)/h8300hms.em $(srcdir)/h8300hms.sc-sh ${GEN_DEPENDS}
222 ${GENSCRIPTS} h8300hms.sh
9d1fe8a4
SC
223ld__h8300xray.c: $(srcdir)/h8300xray.sh \
224 $(srcdir)/h8300xray.em $(srcdir)/h8300xray.sc-sh ${GEN_DEPENDS}
225 ${GENSCRIPTS} h8300xray.sh
119afd7b
RP
226ld__st2000.c: $(srcdir)/st2000.sh \
227 $(srcdir)/st2000.em $(srcdir)/st2000.sc-sh ${GEN_DEPENDS}
228 ${GENSCRIPTS} st2000.sh
7e5c1057
PB
229ld__vanilla.c: $(srcdir)/vanilla.sh \
230 $(srcdir)/vanilla.em $(srcdir)/vanilla.sc-sh ${GEN_DEPENDS}
231 ${GENSCRIPTS} vanilla.sh
232ld__lnk960.c: $(srcdir)/lnk960.sh \
233 $(srcdir)/lnk960.em $(srcdir)/i960.sc-sh ${GEN_DEPENDS}
234 ${GENSCRIPTS} lnk960.sh
235ld__gld960.c: $(srcdir)/gld960.sh \
236 $(srcdir)/gld960.em $(srcdir)/i960.sc-sh ${GEN_DEPENDS}
237 ${GENSCRIPTS} gld960.sh
eb02fd64 238
e77463a1 239$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
77b19d3d 240 $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES)
e7921bd4 241
7e5c1057 242# Rules for testing by relinking ld itself.
eb02fd64 243
7e5c1057
PB
244ld-partial.o: ld.new
245 $(HOSTING_EMU); ./ld.new -o ld-partial.o -r $(OFILES)
246ld1: ld-partial.o
247 $(HOSTING_EMU); ./ld.new -o ld1 $(HOSTING_CRT0) ld-partial.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 248
7e5c1057
PB
249ld1-full: ld.new
250 $(HOSTING_EMU); ./ld.new -o ld1-full $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 251
d20fb445
SC
252ld2: ld1
253 $(HOSTING_EMU); ./ld1 -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
60048a2c 254
eb02fd64 255ld3: ld2
e77463a1 256 $(HOSTING_EMU); ./ld2 -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 257
d20fb445
SC
258bootstrap: ld3
259 cmp ld2 ld3
260
917bffa7
PB
261cdtest: cdtest-main.o cdtest-func.o cdtest-foo.o
262 $(HOSTING_EMU); ./ld.new -o cdtest $(HOSTING_CRT0) \
263 cdtest-main.o cdtest-func.o cdtest-foo.o $(HOSTING_LIBS)
264
265check-cdtest: cdtest $(srcdir)/cdtest.exp
266 ./cdtest >cdtest.out
267 diff $(srcdir)/cdtest.exp cdtest.out
268
8073190b
RP
269######################################################################
270# DOCUMENTATION TARGETS
271# TeX output
9c7810d6
RP
272ld.dvi: $(srcdir)/ld.texinfo
273 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/ld.texinfo
8d317d2a 274 texindex ld.??
9c7810d6 275 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/ld.texinfo
4b91c519
PB
276ldint.dvi: $(srcdir)/ldint.texinfo
277 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/ldint.texinfo
278 texindex ldint.??
279 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/ldint.texinfo
8d317d2a 280
8073190b 281# info file for online browsing
9c7810d6 282ld.info: $(srcdir)/ld.texinfo
e06ba18d 283 $(MAKEINFO) -o ld.info $(srcdir)/ld.texinfo
eb02fd64 284
4b91c519
PB
285ldint.info: $(srcdir)/ldint.texinfo
286 $(MAKEINFO) -o ldint.info $(srcdir)/ldint.texinfo
287
954ac2ea 288#separate targets for "ms", "me", and "mm" forms of roff doc
e06ba18d
PB
289# Try to use a recent texi2roff. v2 was put on prep in jan91.
290# If you want an index, see texi2roff doc for postprocessing
291# and add -i to texi2roff invocations below.
292# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
293# correspondint -e lines when later texi2roff's are current)
294# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
295# + @c's deleted explicitly because texi2roff sees texinfo commands in them
296# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
297# + @alphaenumerate is ridiculously new, turned into @enumerate
298
9c7810d6 299ld.ms: $(srcdir)/ld.texinfo
8073190b
RP
300 sed -e '/\\input texinfo/d' \
301 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
302 -e '/^@ifinfo/,/^@end ifinfo/d' \
303 -e '/^@c/d' \
304 -e 's/{.*,,/{/' \
305 -e 's/@ / /g' \
306 -e 's/^@alphaenumerate/@enumerate/g' \
307 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 308 $(srcdir)/ld.texinfo | \
e06ba18d
PB
309 $(TEXI2ROFF) $(TEXI2OPT) -ms | \
310 sed -e 's/---/\\(em/g' \
311 >>ld.ms
8073190b
RP
312
313# index for roff output
314ld-index.ms: ld.ms
315 $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
316 sed -e '/: warning:/d' | \
317 texi2index >ld-index.ms
318
954ac2ea 319# roff output (-mm)
9c7810d6 320ld.mm: $(srcdir)/ld.texinfo
954ac2ea
RP
321 sed -e '/\\input texinfo/d' \
322 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
323 -e '/^@ifinfo/,/^@end ifinfo/d' \
324 -e '/^@c/d' \
9c7810d6
RP
325 -e 's/{.*,,/{/' \
326 -e '/@noindent/d' \
e06ba18d
PB
327 -e 's/@ / /g' \
328 -e 's/^@alphaenumerate/@enumerate/g' \
329 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 330 $(srcdir)/ld.texinfo | \
e06ba18d 331 $(TEXI2ROFF) $(TEXI2OPT) -mm | \
9c7810d6
RP
332 sed -e 's/---/\\(em/g' \
333 >ld.mm
954ac2ea
RP
334
335# index for roff output
336ld-index.mm: ld.mm
337 $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
338 sed -e '/: warning:/d' | \
339 texi2index >ld-index.mm
340
341# roff output (-me)
9c7810d6 342ld.me: $(srcdir)/ld.texinfo
954ac2ea
RP
343 sed -e '/\\input texinfo/d' \
344 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
345 -e '/^@ifinfo/,/^@end ifinfo/d' \
346 -e '/^@c/d' \
347 -e 's/{.*,,/{/' \
348 -e 's/@ / /g' \
349 -e 's/^@alphaenumerate/@enumerate/g' \
350 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 351 $(srcdir)/ld.texinfo | \
e06ba18d
PB
352 $(TEXI2ROFF) $(TEXI2OPT) -me | \
353 sed -e 's/---/\\(em/g' \
354 >>ld.me
954ac2ea
RP
355
356# index for roff output
357ld-index.me: ld.me
358 $(ROFF) -me ld.me 2>&1 1>/dev/null | \
359 sed -e '/: warning:/d' | \
360 texi2index >ld-index.me
361
362
8073190b
RP
363######################################################################
364
12fa72d4 365./mkscript: $(srcdir)/mkscript.c
5ff21fa5 366 $(HOST_CC) -o mkscript $(srcdir)/mkscript.c
f78e2569 367
cc964c6f
SC
368ldlex.c: ldlex.l ldgram.h
369ldlex.o: ldlex.c ldgram.h
370ldgram.o: ldgram.c
371ldgram.c:ldgram.y
eb02fd64 372
7e5c1057 373h8300hms.o:h8300hms.c
9d1fe8a4 374h8300xray.o:h8300xray.c
119afd7b 375st2000.o:st2000.c
565a4c76 376
e7921bd4 377stage1: force
e06ba18d
PB
378 -mkdir stage1
379 -mv -f $(STAGESTUFF) stage1
380 -(cd stage1 ; ln -s $(LD_PROG) ld)
f78e2569 381
e7921bd4 382stage2: force
e06ba18d
PB
383 -mkdir stage2
384 -mv -f $(STAGESTUFF) stage2
385 -(cd stage2 ; ln -s $(LD_PROG) ld)
f78e2569 386
e7921bd4 387stage3: force
e06ba18d
PB
388 -mkdir stage3
389 -mv -f $(STAGESTUFF) stage3
390 -(cd stage3 ; ln -s $(LD_PROG) ld)
eb02fd64 391
e46cdcdd
RP
392against=stage2
393
394comparison: force
395 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
396
e7921bd4 397de-stage1: force
e06ba18d
PB
398 -(cd stage1 ; mv -f * ..)
399 -rm ld
400 -rmdir stage1
e7921bd4
RP
401
402de-stage2: force
e06ba18d
PB
403 -(cd stage2 ; mv -f * ..)
404 -rm ld
405 -rmdir stage2
e7921bd4
RP
406
407de-stage3: force
e06ba18d
PB
408 -(cd stage3 ; mv -f * ..)
409 -rm ld
410 -rmdir stage3
e7921bd4
RP
411
412clean:
7e5c1057
PB
413 -rm -f TAGS $(STAGESTUFF)
414 -rm -f ld.?? ld.??? ldlex.[qp]
917bffa7 415 -rm -f ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out
eb02fd64
RP
416
417lintlog:$(SOURCES) Makefile
2ee11735 418 $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \
eb02fd64
RP
419| grep -v "pointer casts may be troublesome" \
420| grep -v "possible pointer alignment problem" \
421| grep -v "ignore" \
422| grep -v "conversion from long may lose accuracy" \
423| grep -v "warning: constant argument to NOT" \
424| grep -v "enumeration type clash, operator CAST" \
425| grep -v "warning: constant in conditional context"\
426| grep -v "archive\.c"
427
428
429tags TAGS:$(SOURCES) $(HEADERS)
19b03b7a 430 etags -t $?
eb02fd64 431
eb02fd64
RP
432
433objdump:objdump.c
434
12fa72d4 435.PHONY: install
e7921bd4 436install: $(LD_PROG)
b189e892
ILT
437 -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
438 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
439 -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
440 -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
441 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
442 -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
0bb95ac8
ILT
443 -n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
444 rm -f $(bindir)/$$n; \
445 $(INSTALL_PROGRAM) ld.new $(bindir)/$$n; \
446 $(INSTALL_DATA) $(srcdir)/ld.1 $(man1dir)/$$n.1
447 -if [ -d $(tooldir) ]; then rm -f $(tooldir)/ld; $(INSTALL_PROGRAM) ld.new $(tooldir)/ld; else true; fi
e06ba18d
PB
448
449install-info: info
b189e892
ILT
450 -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
451 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
452 -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
afe3aa73 453 for i in ld.info* ; do \
e06ba18d 454 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
afe3aa73
RP
455 done
456
12fa72d4
SC
457clean-info:
458 -rm -rf *.info*
459
eb02fd64
RP
460#-----------------------------------------------------------------------------
461# 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
462#
463# 'VERSION' file must be present and contain a string of the form "x.y"
464#-----------------------------------------------------------------------------
465
466ver960.c: FORCE
467 rm -f ver960.c
468 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
469
470
471# This target should be invoked before building a new release.
472# 'VERSION' file must be present and contain a string of the form "x.y"
473#
474roll:
475 @V=`cat VERSION` ; \
476 MAJ=`sed 's/\..*//' VERSION` ; \
477 MIN=`sed 's/.*\.//' VERSION` ; \
478 V=$$MAJ.`expr $$MIN + 1` ; \
479 rm -f VERSION ; \
480 echo $$V >VERSION ; \
481 echo Version $$V
482
239d28f3 483
e1e5fbfc 484dep: $(LDSOURCES)
239d28f3
SC
485 mkdep $(CFLAGS) $?
486
eb02fd64
RP
487# Dummy target to force execution of dependent targets.
488#
e7921bd4 489force:
eb02fd64
RP
490
491# Target to uncomment host-specific lines in this makefile. Such lines must
492# have the following string beginning in column 1: #__<hostname>__#
493# Original Makefile is backed up as 'Makefile.old'.
494#
495# Invoke with: make make HOST=xxx
496#
497make:
498 -@if test $(HOST)x = x ; then \
499 echo '\aSpecify "make make HOST=???"'; \
500 exit 1; \
501 fi ; \
502 grep -s "^#The next line was generated by 'make make'" Makefile; \
503 if test $$? = 0 ; then \
504 echo "\aMakefile has already been processed with 'make make'";\
505 exit 1; \
506 fi ; \
507 mv -f Makefile Makefile.old; \
508 echo "#The next line was generated by 'make make'" >Makefile ; \
509 echo "HOST=$(HOST)" >>Makefile ; \
510 echo >>Makefile ; \
511 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
512
513#\f
514
f1eb48b6 515Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 516 $(SHELL) ./config.status
eb02fd64 517
eb02fd64 518### mode:fundamental ***
e06ba18d 519### Local Variables: ***
eb02fd64
RP
520### page-delimiter: "^#\f" ***
521### End: ***
522### end of file
239d28f3
SC
523
524
525# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.078202 seconds and 4 git commands to generate.