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