Minor changes, plus definitions for Sparc Lynx host.
[deliverable/binutils-gdb.git] / ld / Makefile.in
CommitLineData
ce4d59e2 1# Makefile for the GNU linker ld (version 2)
3a9149a7 2# Copyright (C) 1989-1993 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 = .
3a9149a7 22objdir = .
eb02fd64 23
e06ba18d
PB
24prefix = /usr/local
25
0bb95ac8 26program_transform_name =
12fa72d4
SC
27exec_prefix = $(prefix)
28bindir = $(exec_prefix)/bin
29libdir = $(exec_prefix)/lib
034351e3 30tooldir = $(exec_prefix)/$(target_alias)
e06ba18d 31datadir = $(prefix)/lib
12fa72d4 32mandir = $(prefix)/man
e06ba18d
PB
33man1dir = $(mandir)/man1
34man2dir = $(mandir)/man2
35man3dir = $(mandir)/man3
36man4dir = $(mandir)/man4
37man5dir = $(mandir)/man5
38man6dir = $(mandir)/man6
39man7dir = $(mandir)/man7
40man8dir = $(mandir)/man8
41man9dir = $(mandir)/man9
12fa72d4 42infodir = $(prefix)/info
e06ba18d
PB
43includedir = $(prefix)/include
44docdir = $(datadir)/doc
173a0c3d 45# We put the scripts in the directory $(scriptdir)/ldscripts.
559d7baf
RP
46# We can't put the scripts in $(datadir) because the SEARCH_DIR
47# directives need to be different for native and cross linkers.
173a0c3d 48scriptdir = $(tooldir)/lib
e06ba18d 49
2cbe4c5f
HS
50gcclibdir = $(libdir)/gcc/$(target_alias)
51
e06ba18d
PB
52SHELL = /bin/sh
53
e0d005f2 54INSTALL = `cd $(srcdir); pwd`/../install.sh -c
e06ba18d
PB
55INSTALL_PROGRAM = $(INSTALL)
56INSTALL_DATA = $(INSTALL)
5ebaf24b 57INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
c97b9003
DZ
58INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
59
e06ba18d
PB
60AR = ar
61AR_FLAGS = qv
77b19d3d 62CFLAGS = -g
e06ba18d 63MAKEINFO = makeinfo
2412a768 64TEXI2DVI = texi2dvi
e06ba18d 65RANLIB = ranlib
2412a768 66CC_FOR_BUILD=$(CC)
bf3acf44 67BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
2df68136 68LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
8c32cf6e 69
12fa72d4 70#version=/`./../gcc/gcc -dumpversion`
092df318 71version=
8c32cf6e 72
ee17cac9
PB
73# Seach path to override the default search path for -lfoo libraries.
74# If LIB_PATH is empty, the ones in the script (if any) are left alone.
917bffa7
PB
75# (The default is usually /lib:usr/lib:/usr/local/lib, unless building
76# a cross-linker, in which case the default is empty. See genscripts.sh.)
ee17cac9
PB
77# Otherwise, they are replaced with the ones given in LIB_PATH,
78# which may have the form: LIB_PATH=/lib:/usr/local/lib
79LIB_PATH =
80
d17eb3db
ILT
81# Additional libraries which are used when ld is built native. This
82# is set by some host makefile fragments.
83NATIVE_LIB_DIRS =
84
959eba20
JO
85BASEDIR = $(srcdir)/..
86BFDDIR = $(BASEDIR)/bfd
87INCDIR = $(BASEDIR)/include
88INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR)
2ee11735 89
2412a768
RP
90# What version of the manual to build
91DOCVER = gen
92
8073190b 93# Where to find texinfo.tex to format docn with TeX
d17eb3db 94TEXIDIR = $(srcdir)/../texinfo
8d317d2a 95
959eba20
JO
96# Where to find other docs needed to format with TeX
97TEXINPUTS = $(TEXIDIR):$(BFDDIR)/doc:$(srcdir)
98
10a69a37 99# Whether to get roff to put indexing entries on stderr
954ac2ea
RP
100TEXI2OPT =
101# You neeed this to generate ld-index.ms (or .mm or .me)
102# TEXI2OPT = -i
8073190b 103
e06ba18d
PB
104TEXI2ROFF=texi2roff
105
8073190b
RP
106# Which roff program to use to generate index for texi2roff'd doc
107ROFF = groff
108
5cdea2ac
SC
109#stuff for self hosting (can be overridden in config file).
110HOSTING_CRT0=/lib/crt0.o
8ddef552
DM
111HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc
112HOSTING_EMU=-m $(EMUL)
5cdea2ac 113
3a9149a7
JW
114CXX = `if [ -f ../gcc/xgcc ] ; then \
115 echo ../gcc/xgcc -B../gcc/; \
116 else echo gcc; \
117 fi`
118CXXFLAGS = -fgnu-linker
119
8a6665ae
JW
120# FIX_ME: using ../gcc/xgcc breaks the cdtest.
121CXX= g++
122
3a9149a7
JW
123# Setup the testing framework, if you have one
124RUNTEST = runtest
125RUNTEST_FLAGS =
126RUNTEST_CC = `if [ -f ../gcc/xgcc ] ; then \
127 echo ../gcc/xgcc -B../gcc/; \
128 else echo gcc; \
129 fi`
130RUNTEST_CFLAGS = $(CFLAGS)
131RUNTEST_CXX = `if [ -f ../gcc/xgcc ] ; then \
132 echo ../gcc/xgcc -B../gcc/; \
133 else echo gcc; \
134 fi`
108f145b 135# FIX_ME: using ../gcc/xgcc breaks the cdtest.
d17eb3db 136RUNTEST_CXX = $(CXX)
3a9149a7 137RUNTEST_CXXFLAGS = $(CXXFLAGS)
c97b9003 138
58bf66f9
KR
139all:
140
7e5c1057 141### Host, target, and site specific Makefile fragments come in here.
63545898 142####
2ee11735 143
2ee11735
RP
144LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
145
565c93e9
DM
146# The .cc suffix is used by `make check'.
147
148.SUFFIXES: .y $(SUFFIXES) .cc
149
173a0c3d
DM
150# Suppress smart makes who think they know how to automake Yacc files
151.y.c:
152
565c93e9 153.cc.o:
3a9149a7 154 $(CXX) -c -I$(srcdir) $(CXXFLAGS) $(CFLAGS) $<
565c93e9 155
77b19d3d 156.c.o:
8ddef552 157 $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS) $<
c97b9003 158
eb02fd64
RP
159# go directly to ld.new in case this ld isn't capable of
160# linking native object on this host. It can be renamed on
161# install.
e7921bd4 162LD_PROG = ld.new
f78e2569 163
eb02fd64 164# for self hosting
959eba20
JO
165BFDLIB = ../bfd/libbfd.a
166LIBIBERTY = ../libiberty/libiberty.a
eb02fd64 167
0750b974 168ALL_EMULATIONS=em_lnk960.o em_sun3.o em_i386aout.o em_go32.o \
63545898 169 em_m88kbcs.o em_a29k.o em_news.o em_hp300bsd.o em_hp3hpux.o \
4ab3a31f 170 em_h8300.o em_h8300h.o em_ebmon29k.o em_sun4.o em_gld960.o \
034351e3 171 em_m68kcoff.o em_st2000.o em_sa29200.o \
e637dcf0 172 em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o em_i386bsd.o \
8ddef552 173 em_mipsbig.o em_mipsbsd.o em_mipsidt.o em_vax.o em_h8500.o \
d17eb3db 174 em_hppaosf.o em_mipsidtl.o em_sh.o em_elf_i386.o em_alpha.o \
58bf66f9 175 $(OTHER_EMULATIONS)
7e5c1057 176
959eba20
JO
177# This is now set by configure.in.
178#EMULATION_OFILES=${ALL_EMULATIONS}
7e5c1057 179
119afd7b 180OFILES= ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldindr.o \
7e5c1057 181 ldwarn.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldsym.o \
fc60e4f7 182 ldfile.o relax.o lderror.o ${EMULATION_OFILES}
eb02fd64 183
ce4d59e2
SC
184HEADERS=config.h ldmain.h ldmain.h ldwarn.h ldmisc.h ldindr.h \
185 ldsym.h ldctor.h ldlang.h ldexp.h \
239d28f3 186 ldlex.h ldwrite.h ldver.h ldemul.h ldfile.h ldgram.h ld.h
eb02fd64
RP
187
188MANSOURCES=ld.tex
189
119afd7b 190LDCSOURCES=ldlang.c lexsup.c ldctor.c mri.c ldindr.c ldmain.c ldwrite.c ldwarn.c ldlnk960.c \
63545898 191 em_gld.c em_sun3.c em_go32.c em_m88k.c em_ebmon29k.c em_hppaosf.c \
2e2bf962 192 ldgld960.c ldemul.c ldver.c ldmisc.c ldexp.c ldsym.c ldfile.c \
fc60e4f7 193 relax.c lderror.c
eb02fd64 194
ab57b174 195GENERATED_SOURCES=ldgram.c ldlex.c em_*.c ldemul-list.h
7e5c1057 196GENERATED_HEADERS=ldgram.h ldemul-list.h
eb02fd64 197
cc964c6f 198LDSOURCES=$(LDCSOURCES) ldgram.y ldlex.l ldgram.h
eb02fd64 199
2ee11735 200BFDSOURCES=../../bfd/common/*.c
eb02fd64
RP
201
202SOURCES= $(LDSOURCES) $(BFDSOURCES)
203LINTSOURCES= $(LDCSOURCES) $(BFDSOURCES) $(GENERATED_SOURCES)
204
959eba20 205STAGESTUFF = *.o ldscripts/* $(GENERATED_SOURCES) $(GENERATED_HEADERS)
2ee11735 206
42b5c739 207all: $(LD_PROG)
e06ba18d
PB
208
209info: ld.info
2ee11735 210
173a0c3d 211ldgram.h ldgram.c: ldgram.y
5ff21fa5 212 $(BISON) $(BISONFLAGS) -d $(srcdir)/ldgram.y
31e54f5d
RP
213 mv -f y.tab.c ldgram.c
214 mv -f y.tab.h ldgram.h
cc964c6f 215
a6152e39 216# EMUL is the name of a file in the emulparams subdir, without the .sh.
42b5c739
ILT
217DEF_EMUL = ` if [ -z "$(EMUL)" ] ; then \
218 echo "you must set a default emulation" 1>&2 ; \
219 exit 1 ; \
220 else \
221 echo -DDEFAULT_EMULATION='"$(EMUL)"' ; \
222 fi`
42b5c739 223
959eba20
JO
224ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
225 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
226 $(INCDIR)/fopen-same.h config.h ld.h \
227 ldmain.h ldmisc.h ldwrite.h ./ldgram.h \
228 ldsym.h ldlang.h ldemul.h ldlex.h \
229 ldfile.h ldindr.h ldwarn.h ldctor.h \
230 lderror.h
ff76a7db 231 $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(DEF_EMUL) -DSCRIPTDIR='"$(scriptdir)"' $(CFLAGS) $<
7e5c1057 232
820c446c 233ldemul-list.h: Makefile
7e5c1057
PB
234 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
235 for f in `echo " " ${EMULATION_OFILES} "" \
ab57b174 236 | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
237 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
238 done;\
239 echo "";\
240 echo "#define EMULATION_LIST \\";\
241 for f in `echo " " ${EMULATION_OFILES} "" \
ab57b174 242 | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
243 echo " &ld_$${f}_emulation, \\"; \
244 done;\
245 echo " 0") >ldemul-list.h
246
42b5c739 247ldlex.c: ldlex.l ldgram.h
5ff21fa5
PB
248 $(LEX) -I -Cem $(srcdir)/ldlex.l
249 mv lex.yy.c ldlex.c
19b03b7a 250
ab57b174 251# These all start with em_ so 'make clean' can find them.
c61b4184 252
d17eb3db 253GENSCRIPTS=$(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} ${host_alias} ${target_alias} ${EMUL} "$(NATIVE_LIB_DIRS)"
8ddef552 254GEN_DEPENDS=$(srcdir)/genscripts.sh
7e5c1057 255
8ddef552
DM
256em_sun4.c: $(srcdir)/emulparams/sun4.sh \
257 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 258 ${GENSCRIPTS} sun4
8ddef552
DM
259em_sun3.c: $(srcdir)/emulparams/sun3.sh \
260 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 261 ${GENSCRIPTS} sun3
8ddef552
DM
262em_go32.c: $(srcdir)/emulparams/go32.sh \
263 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 264 ${GENSCRIPTS} go32
8ddef552
DM
265em_news.c: $(srcdir)/emulparams/news.sh \
266 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 267 ${GENSCRIPTS} news
8ddef552
DM
268em_vax.c: $(srcdir)/emulparams/vax.sh \
269 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 270 ${GENSCRIPTS} vax
8ddef552
DM
271em_hp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
272 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 273 ${GENSCRIPTS} hp300bsd
8ddef552
DM
274em_hp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
275 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 276 ${GENSCRIPTS} hp3hpux
8ddef552
DM
277em_hppaosf.c: $(srcdir)/emulparams/hppaosf.sh \
278 $(srcdir)/emultempl/hppaosf.em $(srcdir)/scripttempl/hppaosf.sc ${GEN_DEPENDS}
a6152e39 279 ${GENSCRIPTS} hppaosf
8ddef552
DM
280em_i386aout.c: $(srcdir)/emulparams/i386aout.sh \
281 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 282 ${GENSCRIPTS} i386aout
8ddef552
DM
283em_ebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
284 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
a6152e39 285 ${GENSCRIPTS} ebmon29k
8ddef552
DM
286em_sa29200.c: $(srcdir)/emulparams/sa29200.sh \
287 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
a6152e39 288 ${GENSCRIPTS} sa29200
8ddef552
DM
289em_a29k.c: $(srcdir)/emulparams/a29k.sh \
290 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
a6152e39 291 ${GENSCRIPTS} a29k
8ddef552 292em_m88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
d301e438 293 $(srcdir)/emultempl/m88kbcs.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
a6152e39 294 ${GENSCRIPTS} m88kbcs
8ddef552
DM
295em_h8300.c: $(srcdir)/emulparams/h8300.sh \
296 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
a6152e39 297 ${GENSCRIPTS} h8300
4ab3a31f
DE
298em_h8300h.c: $(srcdir)/emulparams/h8300h.sh \
299 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
a6152e39 300 ${GENSCRIPTS} h8300h
8ddef552
DM
301em_h8500.c: $(srcdir)/emulparams/h8500.sh \
302 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
a6152e39 303 ${GENSCRIPTS} h8500
8ddef552
DM
304em_sh.c: $(srcdir)/emulparams/sh.sh \
305 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
a6152e39 306 ${GENSCRIPTS} sh
8ddef552
DM
307em_st2000.c: $(srcdir)/emulparams/st2000.sh \
308 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
a6152e39 309 ${GENSCRIPTS} st2000
8ddef552
DM
310em_z8ksim.c: $(srcdir)/emulparams/z8ksim.sh \
311 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8ksim.sc ${GEN_DEPENDS}
a6152e39 312 ${GENSCRIPTS} z8ksim
8ddef552
DM
313em_vanilla.c: $(srcdir)/emulparams/vanilla.sh \
314 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
a6152e39 315 ${GENSCRIPTS} vanilla
8ddef552
DM
316em_lnk960.c: $(srcdir)/emulparams/lnk960.sh \
317 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
a6152e39 318 ${GENSCRIPTS} lnk960
8ddef552
DM
319em_gld960.c: $(srcdir)/emulparams/gld960.sh \
320 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
a6152e39 321 ${GENSCRIPTS} gld960
8ddef552
DM
322em_m68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
323 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
a6152e39 324 ${GENSCRIPTS} m68kcoff
d17eb3db
ILT
325em_m68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
326 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
327 ${GENSCRIPTS} m68klynx
8ddef552
DM
328em_i386coff.c: $(srcdir)/emulparams/i386coff.sh \
329 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
a6152e39 330 ${GENSCRIPTS} i386coff
d17eb3db
ILT
331em_i386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
332 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
333 ${GENSCRIPTS} i386lynx
8ddef552
DM
334em_mipslit.c: $(srcdir)/emulparams/mipslit.sh \
335 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 336 ${GENSCRIPTS} mipslit
8ddef552
DM
337em_i386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
338 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 339 ${GENSCRIPTS} i386bsd
8ddef552
DM
340em_mipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
341 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 342 ${GENSCRIPTS} mipsbig
8ddef552
DM
343em_mipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
344 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 345 ${GENSCRIPTS} mipsbsd
8ddef552
DM
346em_mipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
347 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 348 ${GENSCRIPTS} mipsidt
8ddef552
DM
349em_mipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
350 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 351 ${GENSCRIPTS} mipsidtl
d17eb3db
ILT
352em_elf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
353 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
354 ${GENSCRIPTS} elf_i386
355em_elf32mipb.c: $(srcdir)/emulparams/elf32mipb.sh \
356 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
357 ${GENSCRIPTS} elf32mipb
358em_alpha.c: $(srcdir)/emulparams/alpha.sh \
359 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
360 ${GENSCRIPTS} alpha
eb02fd64 361
e77463a1 362$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
d17eb3db
ILT
363 $(CC) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES)
364
365# The generated emulation files mostly have the same dependencies.
366$(EMULATION_OFILES): ../bfd/bfd.h ../bfd/sysdep.h ld.h ldemul.h \
367 ldfile.h ldmisc.h config.h
959eba20
JO
368
369# This list of dependencies was generated by doing a make with gcc -MM
370# saving the output in a file and removing the gcc commands
371# changing "../../devo/ld/../bfd" to "$(BFDDIR)"
372# removing "../../devo/ld/"
373# changing "../include" to "$(INCDIR)"
374
375ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h \
376 ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h $(INCDIR)/fopen-same.h \
377 ld.h ldexp.h ldver.h ldlang.h \
378 ldemul.h ldfile.h ldmisc.h mri.h
379ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/obstack.h ./ldgram.h
380lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
381 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
382 $(INCDIR)/fopen-same.h ldlex.h ld.h \
383 ldexp.h ./ldgram.h ldmisc.h
384ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
385 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
386 $(INCDIR)/fopen-same.h ld.h ldmain.h \
387 ldsym.h ./ldgram.h ldwarn.h ldlang.h \
388 ldexp.h ldemul.h ldlex.h ldmisc.h \
389 ldindr.h ldctor.h
390mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
391 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
392 $(INCDIR)/fopen-same.h ld.h ldlang.h \
393 mri.h ./ldgram.h ldexp.h
394ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
395 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
396 $(INCDIR)/fopen-same.h ld.h ldlang.h \
397 ldsym.h ldmisc.h ldexp.h ./ldgram.h
398ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
399 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
400 $(INCDIR)/fopen-same.h config.h ld.h \
401 ldmain.h ldmisc.h ldwrite.h ./ldgram.h \
402 ldsym.h ldlang.h ldemul.h ldlex.h \
403 ldfile.h ldindr.h ldwarn.h ldctor.h \
404 lderror.h
405ldindr.o: ldindr.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
406 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
407 $(INCDIR)/fopen-same.h ld.h ldsym.h \
408 ldmisc.h
409ldwarn.o: ldwarn.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
410 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
411 $(INCDIR)/fopen-same.h ldsym.h ldwarn.h \
412 ldmisc.h
413ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
414 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
415 $(INCDIR)/fopen-same.h ldlang.h ld.h \
416 ldwrite.h ldmisc.h ldsym.h ./ldgram.h \
417 relax.h
418ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
419 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
420 $(INCDIR)/fopen-same.h ld.h ldmain.h \
421 ldmisc.h ldexp.h ./ldgram.h ldsym.h \
422 ldlang.h
423ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
424 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
425 $(INCDIR)/fopen-same.h config.h ld.h \
426 ldemul.h ldmisc.h ./ldemul-list.h
427ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
428 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
429 $(INCDIR)/fopen-same.h ldver.h ldemul.h
430ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
431 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
432 $(INCDIR)/fopen-same.h ld.h ldmisc.h \
433 ldlang.h ldlex.h
434ldsym.o: ldsym.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
435 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
436 $(INCDIR)/fopen-same.h ld.h ldsym.h \
437 ldmisc.h ldlang.h
438ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
439 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
440 $(INCDIR)/fopen-same.h ldmisc.h ldlang.h \
441 ldfile.h
442relax.o: relax.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
443 $(INCDIR)/obstack.h $(BFDDIR)/seclet.h $(INCDIR)/coff/internal.h \
444 ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h $(INCDIR)/fopen-same.h \
445 ldlang.h ld.h ldwrite.h ldmisc.h \
446 ldsym.h ./ldgram.h relax.h
447lderror.o: lderror.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
448 $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
449 $(INCDIR)/fopen-same.h $(BFDDIR)/seclet.h ld.h \
450 ldmisc.h
8ddef552 451
3a9149a7
JW
452# CYGNUS LOCAL targets.
453# These targets are for the dejagnu testsuites. The file site.exp
454# contains global variables that all the testsuites will use.
455# There is a current debate as to how and where to generate test
456# outputs. Rob feels each test should be built in $(objdir) with
457# a unique name. Cassidy feels that we should create a directory
458# called $(objdir)/tmpdir and do the work there. This way, there
459# is no potential conflict with existing objects, ie: as there
460# was in the past with loop.o and flow.o, and, there is no chance
461# of filling /tmp, which would cause other problems. Lastly, this
462# allow retention of the testcase name making debugging easier.
463#
464testdir = $(objdir)/tmpdir
465
d301e438 466site.exp: ./config.status Makefile
3a9149a7 467 @if [ -d $(testdir) ]; then true; else mkdir $(testdir); fi
d301e438 468 @echo "Making a new config file..."
3a9149a7 469 @rm -f ./tmp?
d301e438 470 @touch site.exp
3a9149a7 471 @mv site.exp site.bak
d301e438
JW
472 @echo "## variables are automatically generated by make ##" > ./tmp0
473 @echo "# Do not edit here. If you wish to override these" >> ./tmp0
474 @echo "# values, add them to the last section" >> ./tmp0
3a9149a7
JW
475 @echo "# HOST AND TARGET INFO" >> ./tmp0
476 @echo "set host_os $(host_os)" >> ./tmp0
477 @echo "set host_alias $(host_alias)" >> ./tmp0
478 @echo "set host_cpu $(host_cpu)" >> ./tmp0
479 @echo "set host_vendor $(host_vendor)" >> ./tmp0
480 @echo "set target_os $(target_os)" >> ./tmp0
481 @echo "set target_alias $(target_alias)" >> ./tmp0
482 @echo "set target_cpu $(target_cpu)" >> ./tmp0
483 @echo "set target_vendor $(target_vendor)" >> ./tmp0
484 @echo "set host_triplet $(host_canonical)" >> ./tmp0
485 @echo "set target_triplet $(target_canonical)" >> ./tmp0
486 @echo "# DIRECTORY INFO" >> ./tmp0
d301e438 487 @echo "set objdir `pwd`" >> ./tmp0
3a9149a7 488 @echo "set tmpdir `cd $(testdir); pwd`" >> ./tmp0
d301e438
JW
489 @echo "" >> ./tmp0
490 @echo "# LD DEPENDANCIES" >> ./tmp0
3a9149a7
JW
491 @echo "set OFILES \"$(OFILES)\"" >> ./tmp0
492 @echo "set BFDLIB \"$(BFDLIB)\"" >> ./tmp0
493 @echo "set LIBIBERTY \"$(LIBIBERTY)\"" >> ./tmp0
494 @echo "set HOSTING_EMU \"$(HOSTING_EMU)\"" >> ./tmp0
495 @echo "set HOSTING_CRT0 \"$(HOSTING_CRT0)\"" >> ./tmp0
496 @echo "set HOSTING_LIBS \"$(HOSTING_LIBS)\"" >> ./tmp0
d301e438
JW
497 @echo "" >> ./tmp0
498 @echo "## Variables generated by configure. Do Not Edit ##" >> ./tmp0
499 @cat ./tmp0 > site.exp
500 @cat site.bak | sed \
501 -e '1,/^## Variables generated by.*##/ d' >> site.exp
502 -@rm -f ./tmp?
8ddef552 503
959eba20 504check: ld.new site.exp
3a9149a7
JW
505 $(RUNTEST) --tool ld \
506 --srcdir $(srcdir)/testsuite $(RUNTEST_FLAGS) \
507 CC="$(RUNTEST_CC)" CFLAGS="$(RUNTEST_CFLAGS)" \
508 CXX="$(RUNTEST_CXX)" CXXFLAGS="$(RUNTEST_CXXFLAGS)"
d301e438 509
8ddef552 510installcheck:
e7921bd4 511
7e5c1057 512# Rules for testing by relinking ld itself.
eb02fd64 513
7e5c1057 514ld-partial.o: ld.new
a04f1d00 515 ./ld.new $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
7e5c1057 516ld1: ld-partial.o
a04f1d00 517 ./ld.new $(HOSTING_EMU) -o ld1 $(HOSTING_CRT0) ld-partial.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 518
7e5c1057 519ld1-full: ld.new
a04f1d00 520 ./ld.new $(HOSTING_EMU) -o ld1-full $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 521
d20fb445 522ld2: ld1
a04f1d00 523 ./ld1 $(HOSTING_EMU) -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
60048a2c 524
eb02fd64 525ld3: ld2
a04f1d00 526 ./ld2 $(HOSTING_EMU) -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 527
d20fb445
SC
528bootstrap: ld3
529 cmp ld2 ld3
530
8ddef552
DM
531# A test program for C++ constructors and destructors.
532
ef868186 533cdtest: cdtest-main.o cdtest-func.o cdtest-foo.o ld.new
a04f1d00 534 ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
917bffa7
PB
535 cdtest-main.o cdtest-func.o cdtest-foo.o $(HOSTING_LIBS)
536
537check-cdtest: cdtest $(srcdir)/cdtest.exp
538 ./cdtest >cdtest.out
539 diff $(srcdir)/cdtest.exp cdtest.out
d301e438 540# END OF CHECK TARGETS
917bffa7 541
8073190b 542# DOCUMENTATION TARGETS
2412a768
RP
543# Manual configuration file; not usually attached to normal configuration,
544# because almost all configs use "gen" version of manual.
545# Set DOCVER above to change.
546configdoc.texi: ${DOCVER}-doc.texi
034351e3
PB
547 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
548 ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
549 cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
2412a768 550
8073190b 551# TeX output
2412a768 552dvi: ld.dvi
959eba20 553ld.dvi: $(srcdir)/ld.texinfo $(srcdir)/configdoc.texi
2412a768
RP
554 $(TEXI2DVI) $(srcdir)/ld.texinfo
555
4b91c519 556ldint.dvi: $(srcdir)/ldint.texinfo
2412a768 557 $(TEXI2DVI) $(srcdir)/ldint.texinfo
8d317d2a 558
8073190b 559# info file for online browsing
2412a768 560ld.info: $(srcdir)/ld.texinfo configdoc.texi
959eba20 561 $(MAKEINFO) -I$(BFDDIR)/doc -o ld.info $(srcdir)/ld.texinfo
eb02fd64 562
4b91c519
PB
563ldint.info: $(srcdir)/ldint.texinfo
564 $(MAKEINFO) -o ldint.info $(srcdir)/ldint.texinfo
565
954ac2ea 566#separate targets for "ms", "me", and "mm" forms of roff doc
e06ba18d
PB
567# Try to use a recent texi2roff. v2 was put on prep in jan91.
568# If you want an index, see texi2roff doc for postprocessing
569# and add -i to texi2roff invocations below.
570# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
571# correspondint -e lines when later texi2roff's are current)
572# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
573# + @c's deleted explicitly because texi2roff sees texinfo commands in them
574# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
575# + @alphaenumerate is ridiculously new, turned into @enumerate
576
9c7810d6 577ld.ms: $(srcdir)/ld.texinfo
8073190b
RP
578 sed -e '/\\input texinfo/d' \
579 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
580 -e '/^@ifinfo/,/^@end ifinfo/d' \
581 -e '/^@c/d' \
582 -e 's/{.*,,/{/' \
583 -e 's/@ / /g' \
584 -e 's/^@alphaenumerate/@enumerate/g' \
585 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 586 $(srcdir)/ld.texinfo | \
e06ba18d
PB
587 $(TEXI2ROFF) $(TEXI2OPT) -ms | \
588 sed -e 's/---/\\(em/g' \
589 >>ld.ms
8073190b
RP
590
591# index for roff output
592ld-index.ms: ld.ms
593 $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
594 sed -e '/: warning:/d' | \
595 texi2index >ld-index.ms
596
954ac2ea 597# roff output (-mm)
9c7810d6 598ld.mm: $(srcdir)/ld.texinfo
954ac2ea
RP
599 sed -e '/\\input texinfo/d' \
600 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
601 -e '/^@ifinfo/,/^@end ifinfo/d' \
602 -e '/^@c/d' \
9c7810d6
RP
603 -e 's/{.*,,/{/' \
604 -e '/@noindent/d' \
e06ba18d
PB
605 -e 's/@ / /g' \
606 -e 's/^@alphaenumerate/@enumerate/g' \
607 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 608 $(srcdir)/ld.texinfo | \
e06ba18d 609 $(TEXI2ROFF) $(TEXI2OPT) -mm | \
9c7810d6
RP
610 sed -e 's/---/\\(em/g' \
611 >ld.mm
954ac2ea
RP
612
613# index for roff output
614ld-index.mm: ld.mm
615 $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
616 sed -e '/: warning:/d' | \
617 texi2index >ld-index.mm
618
619# roff output (-me)
9c7810d6 620ld.me: $(srcdir)/ld.texinfo
954ac2ea
RP
621 sed -e '/\\input texinfo/d' \
622 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
623 -e '/^@ifinfo/,/^@end ifinfo/d' \
624 -e '/^@c/d' \
625 -e 's/{.*,,/{/' \
626 -e 's/@ / /g' \
627 -e 's/^@alphaenumerate/@enumerate/g' \
628 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 629 $(srcdir)/ld.texinfo | \
e06ba18d
PB
630 $(TEXI2ROFF) $(TEXI2OPT) -me | \
631 sed -e 's/---/\\(em/g' \
632 >>ld.me
954ac2ea
RP
633
634# index for roff output
635ld-index.me: ld.me
636 $(ROFF) -me ld.me 2>&1 1>/dev/null | \
637 sed -e '/: warning:/d' | \
638 texi2index >ld-index.me
639
e7921bd4 640stage1: force
e06ba18d 641 -mkdir stage1
ab57b174 642 -mv -f $(STAGESTUFF) $(LD_PROG) stage1
e06ba18d 643 -(cd stage1 ; ln -s $(LD_PROG) ld)
f78e2569 644
e7921bd4 645stage2: force
e06ba18d 646 -mkdir stage2
ab57b174 647 -mv -f $(STAGESTUFF) $(LD_PROG) stage2
e06ba18d 648 -(cd stage2 ; ln -s $(LD_PROG) ld)
f78e2569 649
e7921bd4 650stage3: force
e06ba18d 651 -mkdir stage3
ab57b174 652 -mv -f $(STAGESTUFF) $(LD_PROG) stage3
e06ba18d 653 -(cd stage3 ; ln -s $(LD_PROG) ld)
eb02fd64 654
e46cdcdd
RP
655against=stage2
656
657comparison: force
ab57b174 658 for i in $(STAGESTUFF) $(LD_PROG) ; do cmp $$i $(against)/$$i ; done
e46cdcdd 659
e7921bd4 660de-stage1: force
e06ba18d
PB
661 -(cd stage1 ; mv -f * ..)
662 -rm ld
663 -rmdir stage1
e7921bd4
RP
664
665de-stage2: force
e06ba18d
PB
666 -(cd stage2 ; mv -f * ..)
667 -rm ld
668 -rmdir stage2
e7921bd4
RP
669
670de-stage3: force
e06ba18d
PB
671 -(cd stage3 ; mv -f * ..)
672 -rm ld
673 -rmdir stage3
e7921bd4 674
ab57b174 675# Stuff that should be included in a distribution:
63545898 676LDDISTSTUFF=ldgram.c ldgram.h ldlex.c
ab57b174
ILT
677diststuff: $(LDDISTSTUFF)
678
679mostlyclean:
680 -rm -f $(STAGESTUFF) ld.?? ld.??? ldlex.[qp]
917bffa7 681 -rm -f ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out
ab57b174
ILT
682clean: mostlyclean
683 -rm -f $(LD_PROG)
684distclean: clean
d301e438 685 -rm -fr Makefile config.status TAGS sysdep.h ldscripts site.exp
ab57b174
ILT
686realclean: distclean
687 -rm -f $(LDDISTSTUFF)
eb02fd64
RP
688
689lintlog:$(SOURCES) Makefile
2ee11735 690 $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \
eb02fd64
RP
691| grep -v "pointer casts may be troublesome" \
692| grep -v "possible pointer alignment problem" \
693| grep -v "ignore" \
694| grep -v "conversion from long may lose accuracy" \
695| grep -v "warning: constant argument to NOT" \
696| grep -v "enumeration type clash, operator CAST" \
697| grep -v "warning: constant in conditional context"\
698| grep -v "archive\.c"
699
700
cbb5c2d1
DM
701TAGS:
702 etags -t $(srcdir)/*.[chly] *.[chly]
eb02fd64 703
eb02fd64 704
12fa72d4 705.PHONY: install
91b3a2b6 706install:
8ddef552
DM
707 $(INSTALL_XFORM) ld.new $(bindir)/ld
708 $(INSTALL_XFORM1) $(srcdir)/ld.1 $(man1dir)/ld.1
173a0c3d
DM
709 for f in ldscripts/*; do \
710 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
d360d135 711 done
9cd039e7 712 -n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
56409445
ILT
713 rm -f $(tooldir)/bin/ld; \
714 ln $(bindir)/$$n $(tooldir)/bin/ld \
e357065c 715 || $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld
e06ba18d 716
91b3a2b6 717install-info:
afe3aa73 718 for i in ld.info* ; do \
e06ba18d 719 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
afe3aa73
RP
720 done
721
12fa72d4
SC
722clean-info:
723 -rm -rf *.info*
724
eb02fd64
RP
725#-----------------------------------------------------------------------------
726# 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
727#
728# 'VERSION' file must be present and contain a string of the form "x.y"
729#-----------------------------------------------------------------------------
730
731ver960.c: FORCE
732 rm -f ver960.c
733 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
734
735
736# This target should be invoked before building a new release.
737# 'VERSION' file must be present and contain a string of the form "x.y"
738#
739roll:
740 @V=`cat VERSION` ; \
741 MAJ=`sed 's/\..*//' VERSION` ; \
742 MIN=`sed 's/.*\.//' VERSION` ; \
743 V=$$MAJ.`expr $$MIN + 1` ; \
744 rm -f VERSION ; \
745 echo $$V >VERSION ; \
746 echo Version $$V
747
239d28f3 748
e1e5fbfc 749dep: $(LDSOURCES)
239d28f3
SC
750 mkdep $(CFLAGS) $?
751
eb02fd64
RP
752# Dummy target to force execution of dependent targets.
753#
e7921bd4 754force:
eb02fd64
RP
755
756# Target to uncomment host-specific lines in this makefile. Such lines must
757# have the following string beginning in column 1: #__<hostname>__#
758# Original Makefile is backed up as 'Makefile.old'.
759#
760# Invoke with: make make HOST=xxx
761#
762make:
763 -@if test $(HOST)x = x ; then \
764 echo '\aSpecify "make make HOST=???"'; \
765 exit 1; \
766 fi ; \
767 grep -s "^#The next line was generated by 'make make'" Makefile; \
768 if test $$? = 0 ; then \
769 echo "\aMakefile has already been processed with 'make make'";\
770 exit 1; \
771 fi ; \
772 mv -f Makefile Makefile.old; \
773 echo "#The next line was generated by 'make make'" >Makefile ; \
774 echo "HOST=$(HOST)" >>Makefile ; \
775 echo >>Makefile ; \
776 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
777
778#\f
779
f1eb48b6 780Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 781 $(SHELL) ./config.status
eb02fd64 782
eb02fd64 783### mode:fundamental ***
e06ba18d 784### Local Variables: ***
eb02fd64
RP
785### page-delimiter: "^#\f" ***
786### End: ***
787### end of file
239d28f3
SC
788
789
790# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.130448 seconds and 4 git commands to generate.