1 # Makefile for GNU Assembler
2 # Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 1997
3 # Free Software Foundation, Inc.
5 # This file is part of GNU GAS.
7 # GNU GAS is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
12 # GNU GAS is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU GAS; see the file COPYING. If not, write to the Free
19 # Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 # The targets for external use include:
23 # all, doc, proto, install, uninstall, includes, TAGS,
24 # clean, mostlyclean, distclean, realclean, stage1, stage2, stage3, stage4.
26 # Variables that exist for you to override.
27 # See below for how to change them for certain systems.
31 srcroot
= $(srcdir)/..
33 target_alias
= @target_alias@
36 program_transform_name
= @program_transform_name@
37 exec_prefix = @
exec_prefix@
40 tooldir
= $(exec_prefix)/$(target_alias
)
44 man1dir = $(mandir)/man1
45 man2dir = $(mandir)/man2
46 man3dir = $(mandir)/man3
47 man4dir = $(mandir)/man4
48 man5dir = $(mandir)/man5
49 man6dir = $(mandir)/man6
50 man7dir = $(mandir)/man7
51 man8dir = $(mandir)/man8
52 man9dir = $(mandir)/man9
54 includedir = @
includedir@
60 INSTALL
= $${srcroot}/install.sh
-c
61 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
62 INSTALL_DATA
= @INSTALL_DATA@
63 INSTALL_XFORM
= $(INSTALL
) -t
='$(program_transform_name)'
64 INSTALL_XFORM1
= $(INSTALL_XFORM
) -b
=.1
66 DISTSTUFF
= make-gas.com m68k-parse.c itbl-parse.c itbl-lex.c
70 BISON
= `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
72 LEX
= `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
80 RPATH_ENVVAR
= @RPATH_ENVVAR@
86 EXPECT
= `if [ -f $${rootme}/../expect/expect ] ; then \
87 echo $${rootme}/../expect/expect ; \
88 else echo expect ; fi`
92 "exec_prefix=$(exec_prefix)" \
93 "tooldir=$(tooldir)" \
95 "AR_FLAGS=$(AR_FLAGS)" \
99 "LOADLIBES=$(LOADLIBES)" \
100 "LDFLAGS=$(LDFLAGS)" \
103 "MAKEINFO=$(MAKEINFO)" \
104 "INSTALL=$(INSTALL)" \
105 "INSTALL_DATA=$(INSTALL_DATA)" \
106 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
108 RUNTEST
= `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
109 echo $${srcdir}/../dejagnu/runtest ; else echo runtest; \
113 # use @target_cpu_type@ for refering to configured target name
114 IT_HDRS
=itbl-parse.h
$(srcdir)/itbl-ops.h
115 IT_SRCS
=itbl-parse.c itbl-lex.c
$(srcdir)/itbl-ops.c
116 IT_DEPS
=$(srcdir)/itbl-parse.y
$(srcdir)/itbl-lex.l
$(srcdir)/config
/itbl-@target_cpu_type@.h
117 IT_OBJS
=itbl-parse.o itbl-lex.o itbl-ops.o
119 # Lists of files for various purposes.
124 $(srcdir)/atof-generic.c \
125 $(srcdir)/bignum-copy.c \
128 $(srcdir)/flonum-konst.c \
129 $(srcdir)/flonum-copy.c \
130 $(srcdir)/flonum-mult.c \
133 $(srcdir)/input-file.c \
134 $(srcdir)/input-scrub.c \
135 $(srcdir)/itbl-ops.c \
136 $(srcdir)/literal.c \
137 $(srcdir)/messages.c \
138 $(srcdir)/output-file.c \
140 $(srcdir)/subsegs.c \
141 $(srcdir)/symbols.c \
143 $(srcdir)/listing.c \
147 # in an expedient order
153 SOURCES
= $(LINKED_SOURCES
) $(REAL_SOURCES
)
162 $(srcdir)/input-file.h \
163 $(srcdir)/itbl-ops.h \
164 $(srcdir)/listing.h \
168 $(srcdir)/struc-symbol.h \
169 $(srcdir)/subsegs.h \
170 $(srcdir)/symbols.h \
180 HEADERS
= $(LINKED_HEADERS
) $(REAL_HEADERS
)
224 all: .gdbinit
as.new gasp.new
225 @srcroot
=`cd $(srcroot); pwd`; export srcroot
; \
226 (cd doc
; $(MAKE
) $(FLAGS_TO_PASS
) all)
228 dvi info install-info clean-info
:
229 @srcroot
=`cd $(srcroot); pwd`; export srcroot
; \
230 (cd doc
; $(MAKE
) $(FLAGS_TO_PASS
) $@
)
232 make-gas.com
: stamp-mk.com
233 stamp-mk.com
: vmsconf.sh Makefile
234 sh
$(srcdir)/vmsconf.sh
$(OBJS
) > new-make.com
235 $(srcdir)/..
/move-if-change new-make.com
$(srcdir)/make-gas.com
238 # Now figure out from those variables how to compile and link.
240 # This is the variable actually used when we compile.
241 ALL_CFLAGS
= -D_GNU_SOURCE
$(INTERNAL_CFLAGS
) $(CROSS
) $(CFLAGS
) $(HDEFINES
) $(TDEFINES
)
243 # How to link with both our special library facilities
244 # and the system's installed libraries.
246 LIBDEPS
= @OPCODES_DEP@ @BFDDEP@
$(LOCAL_LOADLIBES
) ..
/libiberty
/libiberty.a
247 LIBS
= @OPCODES_LIB@ @BFDLIB@
$(LOCAL_LOADLIBES
) ..
/libiberty
/libiberty.a
249 # Specify the directories to be searched for header files.
250 # Both . and srcdir are used, in that order,
251 # so that tm.h and config.h will be found in the compilation
252 # subdirectory rather than in the source directory.
253 INCLUDES
= -I.
-I
$(srcdir) -I..
/bfd
-I
$(srcdir)/config
-I
$(srcdir)/..
/include -I
$(srcdir)/..
-I
$(srcdir)/..
/bfd
255 # Always use -I$(srcdir)/config when compiling.
257 $(CC
) -c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) $<
259 # This tells GNU make version 3 not to export all the variables
260 # defined in this file into the environment.
263 # Files to be copied away after each stage in building.
264 STAGESTUFF
= *.o
as.new gasp.new
266 $(OBJS
): @ALL_OBJ_DEPS@
268 as.new
: $(OBJS
) $(LIBDEPS
)
269 $(HLDENV
) $(CC
) $(HLDFLAGS
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
as.new
$(OBJS
) $(LIBS
) $(LOADLIBES
)
271 $(OBJS
): config.h
as.h targ-env.h obj-format.h targ-cpu.h flonum.h expr.h \
272 struc-symbol.h write.h frags.h hash.h read.h symbols.h tc.h obj.h \
273 listing.h bignum.h
$(srcdir)/..
/include/libiberty.h
275 gasp.new
: $(GASPOBJS
) ..
/libiberty
/libiberty.a
276 $(CC
) $(ALL_CFLAGS
) $(LDFLAGS
) -o gasp.new
$(GASPOBJS
) ..
/libiberty
/libiberty.a
$(LOADLIBES
)
279 @echo No
installcheck target is available yet for the GNU assembler.
282 @echo
"Making a new config file..."
285 -@mv site.exp site.bak
286 @echo
"## these variables are automatically generated by make ##" > .
/tmp0
287 @echo
"# Do not edit here. If you wish to override these values," >> .
/tmp0
288 @echo
"# do so in the last section." >> .
/tmp0
289 @echo set host_os @host_os@
>> .
/tmp0
290 @echo set host_alias @host_alias@
>> .
/tmp0
291 @echo set host_cpu @host_cpu@
>> .
/tmp0
292 @echo set host_vendor @host_vendor@
>> .
/tmp0
293 @echo set target_os @target_os@
>> .
/tmp0
294 @echo set target_alias @target_alias@
>> .
/tmp0
295 @echo set target_cpu @target_cpu@
>> .
/tmp0
296 @echo set target_vendor @target_vendor@
>> .
/tmp0
297 @echo set host_triplet @host@
>> .
/tmp0
298 @echo set target_triplet @target@
>> .
/tmp0
299 @echo set target_canonical @target@
>> .
/tmp0
300 @echo set
srcdir ${srcdir}/testsuite
>> .
/tmp0
301 @echo set
exec_prefix ${exec_prefix} >> .
/tmp0
302 @echo set objdir
`pwd` >> .
/tmp0
303 @echo
"## All variables above are generated by configure. Do Not Edit ##" >> .
/tmp0
304 @sed
-e
'1,/^## All variables above are.*##/ d' < site.bak
>> .
/tmp0
305 @mv
-f .
/tmp0 site.exp
308 if
[ -d testsuite
]; then \
313 rm -f testsuite
/site.exp
314 cp site.exp testsuite
/site.exp
315 rootme
=`pwd`; export rootme
; \
316 srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
317 $(RPATH_ENVVAR
)=$$rootme/..
/bfd
:$$rootme/..
/opcodes
:$$$(RPATH_ENVVAR
); \
318 export $(RPATH_ENVVAR
); \
320 EXPECT
=${EXPECT} ; export EXPECT
; \
321 if
[ -f
$${rootme}/..
/expect
/expect
] ; then \
322 TCL_LIBRARY
=$${srcdir}/..
/tcl
/library
; \
323 export TCL_LIBRARY
; fi
; \
324 $(RUNTEST
) --tool gas
--srcdir $${srcdir}/testsuite
$(RUNTESTFLAGS
)
326 config.status
: configure
327 $(SHELL
) config.status
--recheck
329 config.h
: config-stamp
; @true
330 config-stamp
: Makefile conf
331 -rm -f config.new config-stamp
332 echo
'/* config.h. Generated automatically by make. */' > config.new
333 echo
'#ifndef GAS_VERSION' >> config.new
334 echo
'#define GAS_VERSION "$(VERSION)"' >> config.new
335 echo
'' >> config.new
336 cat conf
>> config.new
337 echo
'#endif /* GAS_VERSION */' >> config.new
338 $(srcdir)/..
/move-if-change config.new config.h
341 # Compiling object files from source files.
344 TARG_CPU_DEP_alpha
= $(srcdir)/..
/include/opcode
/alpha.h subsegs.h
346 TARG_CPU_DEP_arc
= $(srcdir)/..
/include/opcode
/arc.h subsegs.h
348 TARG_CPU_DEP_arm
= subsegs.h
349 TARG_CPU_DEP_generic
=
350 TARG_CPU_DEP_h8300
= $(srcdir)/..
/include/opcode
/h8300.h
351 TARG_CPU_DEP_h8500
= $(srcdir)/..
/opcodes
/h8500-opc.h subsegs.h
352 TARG_CPU_DEP_hppa
= subsegs.h
353 TARG_CPU_DEP_i386
= $(srcdir)/..
/include/opcode
/i386.h subsegs.h
356 TARG_CPU_DEP_m68k
= $(srcdir)/..
/include/opcode
/m68k.h \
357 $(srcdir)/config
/m68k-parse.h subsegs.h
358 TARG_CPU_DEP_m88k
= $(srcdir)/config
/m88k-opcode.h subsegs.h
359 TARG_CPU_DEP_mips
= $(srcdir)/..
/include/opcode
/mips.h subsegs.h \
360 $(srcdir)/config
/itbl-mips.h
$(srcdir)/itbl-ops.h
362 TARG_CPU_DEP_ppc
= subsegs.h
363 TARG_CPU_DEP_sh
= $(srcdir)/..
/opcodes
/sh-opc.h subsegs.h
364 TARG_CPU_DEP_sparc
= subsegs.h
$(srcdir)/..
/include/opcode
/sparc.h
367 TARG_CPU_DEP_w65
= $(srcdir)/..
/opcodes
/w65-opc.h subsegs.h
368 TARG_CPU_DEP_z8k
= $(srcdir)/..
/opcodes
/z8k-opc.h
370 gasp.o
: gasp.c sb.h macro.h config.h
371 sb.o
: sb.c sb.h config.h
372 macro.o
: macro.c macro.h sb.h hash.h config.h
373 app.o
: app.c write.h
374 as.o
: as.c output-file.h write.h subsegs.h sb.h macro.h
375 atof-generic.o
: atof-generic.c
376 bignum-copy.o
: bignum-copy.c
378 debug.o
: debug.c subsegs.h
380 flonum-konst.o
: flonum-konst.c
381 flonum-copy.o
: flonum-copy.c
382 flonum-mult.o
: flonum-mult.c
383 frags.o
: frags.c subsegs.h
385 input-file.o
: input-file.c input-file.h
386 input-scrub.o
: input-scrub.c input-file.h sb.h
387 listing.o
: listing.c input-file.h subsegs.h
388 literal.o
: literal.c subsegs.h
389 messages.o
: messages.c
390 output-file.o
: output-file.c output-file.h
391 read.o
: read.c sb.h macro.h
392 subsegs.o
: subsegs.c subsegs.h
393 symbols.o
: symbols.c subsegs.h
394 write.o
: write.c subsegs.h output-file.h
395 ecoff.o
: ecoff.c ecoff.h \
396 $(srcdir)/..
/include/coff
/internal.h
$(srcdir)/..
/include/coff
/sym.h \
397 $(srcdir)/..
/include/coff
/ecoff.h \
398 $(srcdir)/..
/include/coff
/symconst.h \
399 $(srcdir)/..
/include/aout
/stab_gnu.h
400 stabs.o
: stabs.c subsegs.h
$(srcdir)/..
/include/aout
/stab_gnu.h
401 atof-targ.o
: atof-targ.c
402 obj-format.o
: obj-format.c
403 targ-cpu.o
: targ-cpu.c
$(TARG_CPU_DEP_@target_cpu_type@
) $(IT_HDRS
)
405 obj-elf.o
: $(srcdir)/config
/obj-elf.c
406 $(CC
) -c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) $(srcdir)/config
/obj-elf.c
407 obj-ecoff.o
: $(srcdir)/config
/obj-ecoff.c
408 $(CC
) -c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) $(srcdir)/config
/obj-ecoff.c
409 obj-coff.o
: $(srcdir)/config
/obj-coff.c
410 $(CC
) -c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) $(srcdir)/config
/obj-coff.c
412 e-mipself.o
: $(srcdir)/config
/e-mipself.c
413 $(CC
) -c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) $(srcdir)/config
/e-mipself.c
414 e-mipsecoff.o
: $(srcdir)/config
/e-mipsecoff.c
415 $(CC
) -c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) $(srcdir)/config
/e-mipsecoff.c
416 e-i386coff.o
: $(srcdir)/config
/e-i386coff.c
417 $(CC
) -c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) $(srcdir)/config
/e-i386coff.c
418 e-i386elf.o
: $(srcdir)/config
/e-i386elf.c
419 $(CC
) -c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) $(srcdir)/config
/e-i386elf.c
421 # The m68k operand parser.
423 m68k-parse.c
: $(srcdir)/config
/m68k-parse.y
424 $(BISON
) $(BISONFLAGS
) $(srcdir)/config
/m68k-parse.y
425 mv
-f y.tab.c m68k-parse.c
426 m68k-parse.o
: m68k-parse.c
$(srcdir)/config
/m68k-parse.h
429 # The instruction table specification lexical analyzer and parser.
431 itbl-cpu.h
: $(srcdir)/config
/itbl-@target_cpu_type@.h
432 itbl-parse.h
: $(srcdir)/itbl-parse.y
433 itbl-parse.c
: $(srcdir)/itbl-parse.y
434 itbl-lex.c
: $(srcdir)/itbl-lex.l
436 itbl-lex.c
: $(srcdir)/itbl-lex.l
437 $(LEX
) $(LEXFLAGS
) $(srcdir)/itbl-lex.l
438 mv
-f
lex.yy.c itbl-lex.c
440 itbl-lex.o
: itbl-lex.c itbl-parse.h
441 $(CC
) -c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) itbl-lex.c
443 itbl-parse.c itbl-parse.h
: $(srcdir)/itbl-parse.y
444 $(BISON
) -d
$(BISONFLAGS
) $(srcdir)/itbl-parse.y
445 mv
-f y.tab.c itbl-parse.c
446 mv
-f y.tab.h itbl-parse.h
448 itbl-parse.o
: itbl-parse.c itbl-parse.h
$(srcdir)/itbl-ops.h
449 $(CC
) -c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) itbl-parse.c
451 itbl-ops.o
: $(srcdir)/itbl-ops.c
$(srcdir)/itbl-ops.h itbl-parse.h
452 $(CC
) -c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) $(srcdir)/itbl-ops.c
454 # stand-alone itbl assembler & disassembler
455 itbl-test-ops.o
: $(srcdir)/itbl-ops.c \
456 $(srcdir)/itbl-ops.h itbl-parse.h
457 $(CC
) -o itbl-test-ops.o
-DSTAND_ALONE
-c
$(ALL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) $(srcdir)/itbl-ops.c
459 itbl-test.o
: $(srcdir)/testsuite
/gas
/all/itbl-test.c
$(srcdir)/itbl-ops.h
460 $(CC
) -c
-DSTAND_ALONE
$(ALL_CFLAGS
) $(INCLUDES
)\
461 $(srcdir)/testsuite
/gas
/all/itbl-test.c
463 IT_TEST_OBJS
= itbl-parse.o itbl-lex.o itbl-test-ops.o
464 itbl-test
: $(IT_TEST_OBJS
) itbl-test.o
$(LIBDEPS
)
465 $(CC
) $(ALL_CFLAGS
) $(LDFLAGS
) -o itbl-test itbl-test.o
$(IT_TEST_OBJS
) $(LIBS
)
467 # target itbl definitions for configuring coprocessor itbl support.
468 # configure should have taken care of this for us...
469 itbl-cpu.h
: $(srcdir)/config
/itbl-@target_cpu_type@.h
470 ln
-s
$(srcdir)/config
/itbl-@target_cpu_type@.h itbl-cpu.h
473 # Remake the info files.
475 doc
: $(srcdir)/as.
info
477 $(srcdir)/as.
info: $(srcdir)/doc
/as.texinfo
478 @
(cd doc
; $(MAKE
) $(FLAGS_TO_PASS
) as.
info; mv
as.
info $srcdir)
480 diststuff
: $(DISTSTUFF
) info
483 -rm -f
$(STAGESTUFF
) core stamp-mk.com
484 -rm -f testsuite
/*.o testsuite
/*.out \
485 testsuite
/gas.log testsuite
/gas.sum testsuite
/site.exp
487 clean mostlyclean: clean-here
488 @cd doc
; $(MAKE
) $(FLAGS_TO_PASS
) $@
490 # Like clean but also delete the links made to configure gas.
492 DISTCLEAN_HERE
= config.status Makefile targ-env.h targ-cpu.h \
493 targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS \
494 atof-targ.h itbl-cpu.h \
495 config-stamp config.h conf config.log config.cache .gdbinit \
496 testsuite
/Makefile testsuite
/config.status
498 distclean: clean-here
499 @cd doc
; $(MAKE
) $(FLAGS_TO_PASS
) $@
500 -rm -f
$(DISTCLEAN_HERE
)
502 maintainer-clean
realclean: clean-here
503 @echo
"This command is intended for maintainers to use;"
504 @echo
"it deletes files that may require special tools to rebuild."
505 @cd doc
; $(MAKE
) $(FLAGS_TO_PASS
) $@
506 -rm -rf
$(DISTCLEAN_HERE
) $(DISTSTUFF
)
508 # Entry points `install', `includes' and `uninstall'.
510 # Copy the files into directories where they will be run.
512 srcroot
=`cd $(srcroot); pwd`; export srcroot
; \
513 $(INSTALL_XFORM
) as.new
$(bindir)/as; \
514 $(INSTALL_XFORM1
) $(srcdir)/doc
/as.1 $(man1dir)/as.1; \
515 test -d
$(tooldir
) || mkdir
$(tooldir
); \
516 test -d
$(tooldir
)/bin || mkdir
$(tooldir
)/bin
; \
517 n
=`echo as | sed '$(program_transform_name)'`; \
518 rm -f
$(tooldir
)/bin
/as; \
519 ln
$(bindir)/$$n $(tooldir
)/bin
/as >/dev
/null
2>/dev
/null \
520 ||
$(INSTALL_PROGRAM
) as.new
$(tooldir
)/bin
/as
521 srcroot
=`cd $(srcroot); pwd`; export srcroot
; \
522 $(INSTALL_XFORM
) gasp.new
$(bindir)/gasp
524 # Cancel installation by deleting the installed files.
526 -n
=`t='$(program_transform_name)'; echo as | sed $$t`; \
527 rm -f
$(bindir)/$$n; \
528 rm -f
$(mandir)/$$n.1
529 -n
=`t='$(program_transform_name)'; echo gasp | sed $$t`; \
530 rm -f
$(bindir)/$$n; \
532 # These exist for maintenance purposes.
535 etags
$(REAL_HEADERS
) $(REAL_SOURCES
) $(srcdir)/config
/*.
[hc
] $(srcdir)/README
$(srcdir)/Makefile.in
537 bootstrap
: as.new
force
539 rm -f stage
&& ln
-s stage1 stage
540 $(MAKE
) CC
="$(CC)" CFLAGS
="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA
= as.new gasp.new
542 rm -f stage
&& ln
-s stage2 stage
543 $(MAKE
) CC
="$(CC)" CFLAGS
="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA
= as.new gasp.new
544 $(MAKE
) comparison against
=stage2
547 rm -f stage
&& ln
-s stage1 stage
548 $(MAKE
) CC
="$(CC)" CFLAGS
="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA
= as.new gasp.new
550 rm -f stage
&& ln
-s stage2 stage
551 $(MAKE
) CC
="$(CC)" CFLAGS
="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA
= as.new gasp.new
552 $(MAKE
) comparison against
=stage2
555 rm -f stage
&& ln
-s stage2 stage
556 $(MAKE
) CC
="$(CC)" CFLAGS
="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA
= as.new gasp.new
557 $(MAKE
) comparison against
=stage2
559 # Copy the object files from a particular stage into a subdirectory.
562 -mv
$(STAGESTUFF
) stage1
563 if
[ -f stage1
/as.new
-a
! -f stage1
/as ] ; then
(cd stage1
; ln
-s
as.new
as) ; fi
567 -mv
$(STAGESTUFF
) stage2
568 if
[ -f stage2
/as.new
-a
! -f stage2
/as ] ; then
(cd stage2
; ln
-s
as.new
as) ; fi
572 -mv
$(STAGESTUFF
) stage3
573 if
[ -f stage3
/as.new
-a
! -f stage3
/as ] ; then
(cd stage3
; ln
-s
as.new
as) ; fi
577 # This rule is derived from corresponding code in the Makefile.in for gcc.
578 # The "tail +16c" is to bypass headers which may include timestamps or
579 # temporary assembly file names.
582 for file in
*.o
; do \
583 tail
+16c .
/$$file > tmp-foo1
; \
584 if tail
+16c
${against}/$$file > tmp-foo2
2>/dev
/null
; then \
585 if cmp tmp-foo1 tmp-foo2
; then \
588 echo
$$file differs
; \
597 - (cd stage1
; rm -f
as ; mv
-f
* ..
)
601 - (cd stage2
; rm -f
as ; mv
-f
* ..
)
605 - (cd stage3
; rm -f
as ; mv
-f
* ..
)
608 #In GNU Make, ignore whether `stage*' exists.
609 .PHONY
: stage1 stage2 stage3 stage4
clean mostlyclean realclean distclean
610 .PHONY
: TAGS bootstrap
614 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
) \
615 $(srcdir)/configure.in config.status conf.in
616 $(SHELL
) .
/config.status
617 .gdbinit
: $(srcdir)/gdbinit.in config.status
618 $(SHELL
) .
/config.status