1 # Makefile for GNU C compiler.
2 # Copyright (C) 1987, 88, 90, 91, 92, 93, 1994 Free Software Foundation, Inc.
4 #This file is part of GNU CC.
6 #GNU CC 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, or (at your option)
11 #GNU CC 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.
16 #You should have received a copy of the GNU General Public License
17 #along with GNU CC; see the file COPYING. If not, write to
18 #the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20 # The targets for external use include:
21 # all, doc, proto, install, install-cross, install-cross-rest,
22 # uninstall, TAGS, mostlyclean, clean, distclean, realclean,
23 # stage1, stage2, stage3, stage4.
25 # Suppress smart makes who think they know how to automake Yacc files
28 # Variables that exist for you to override.
29 # See below for how to change them for certain systems.
31 # List of language subdirectories.
32 # This is overridden by configure.
35 # Selection of languages to be made.
36 # This is overridden by configure.
37 LANGUAGES = c objective-c proto
43 # Various ways of specifying flags for compilations:
44 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
45 # BOOT_CFLAGS is the value of CFLAGS to pass
46 # to the stage2 and stage3 compilations
47 # XCFLAGS is used for most compilations but not when using the GCC just built.
50 BOOT_CFLAGS = -O $(CFLAGS)
51 # These exists to be overridden by the x-* and t-* files, respectively.
67 # on sysV, define this as cp.
69 # These permit overriding just for certain files.
70 INSTALL_PROGRAM = $(INSTALL)
71 INSTALL_DATA = $(INSTALL)
75 # For GNUmake: let us decide what gets passed to recursive makes.
78 # Define this as & to perform parallel make on a Sequent.
79 # Note that this has some bugs, and it seems currently necessary
80 # to compile all the gen* files first by hand to avoid erroneous results.
83 # How to invoke ranlib.
85 # Test to use to see whether ranlib exists on the system.
86 RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
88 # Compiler to use for compiling libgcc1.a.
89 # OLDCC should not be the GNU C compiler,
90 # since that would compile typical libgcc1.a functions such as mulsi3
91 # into infinite recursions.
94 # CFLAGS for use with OLDCC, for compiling libgcc1.a.
95 # NOTE: -O does not work on some Unix systems!
98 # Version of ar to use when compiling libgcc1.a.
101 # Target to use when installing include directory. Either
102 # install-headers-tar or install-headers-cpio.
103 INSTALL_HEADERS_DIR = install-headers-tar
105 # The GCC to use for compiling libgcc2.a, enquire, and cross-test.
106 # Usually the one we just built.
107 # Don't use this as a dependency--use $(GCC_PASSES) or $(GCC_PARTS).
108 GCC_FOR_TARGET = ./xgcc -B./
110 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
111 # It omits XCFLAGS, and specifies -B./.
112 # It also specifies -I./include to find, e.g., stddef.h.
113 GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) -I./include
115 # Special flags for compiling enquire.
116 # We disable optimization to make floating point more reliable.
117 ENQUIRE_CFLAGS = -DNO_MEM -DNO_LONG_DOUBLE_IO -O0
118 ENQUIRE_LDFLAGS = $(LDFLAGS)
120 # Tools to use when building a cross-compiler.
121 # These are used because `configure' appends `cross-make'
122 # to the makefile when making a cross-compiler.
124 TARGET_TOOLPREFIX = $(tooldir)/bin/
125 AR_FOR_TARGET = $(TARGET_TOOLPREFIX)ar
126 AR_FOR_TARGET_FLAGS = rc
127 RANLIB_FOR_TARGET = $(TARGET_TOOLPREFIX)ranlib
128 RANLIB_TEST_FOR_TARGET = [ -f $(TARGET_TOOLPREFIX)ranlib ]
130 # Dir to search for system headers. Overridden by cross-make.
131 SYSTEM_HEADER_DIR = /usr/include
133 # Control whether to run fixproto.
134 STMP_FIXPROTO = stmp-fixproto
136 # There may be a premade insn-attrtab.c for this machine.
137 # (You could rebuild it with genattrtab as usual, but it takes a long time.)
138 # PREMADE_ATTRTAB is the file name of the file to use.
139 # PREMADE_ATTRTAB_MD is the md file it corresponds to.
140 PREMADE_ATTRTAB_MD = Makefile # Guaranteed not to cmp equal to md.
143 target= ... `configure' substitutes actual target name here.
144 xmake_file= ... `configure' substitutes actual x- file name here.
145 tmake_file= ... `configure' substitutes actual t- file name here.
146 version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
147 mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
149 # Directory where sources are, from where we are.
151 # Common prefix for installation directories.
152 # NOTE: This directory must exist when you start installation.
154 # Directory in which to put localized header files. On the systems with
155 # gcc as the native cc, `local_prefix' may not be `prefix' which is
157 # NOTE: local_prefix *should not* default from prefix.
158 local_prefix = /usr/local
159 # Directory in which to put host dependent programs and libraries
160 exec_prefix = $(prefix)
161 # Directory in which to put the executable for the command `gcc'
162 bindir = $(exec_prefix)/bin
163 # Directory in which to put the directories used by the compiler.
164 libdir = $(exec_prefix)/lib
165 # Directory in which the compiler finds executables, libraries, etc.
166 libsubdir = $(libdir)/gcc-lib/$(target)/$(version)
167 # Directory in which the compiler finds g++ includes.
168 gxx_include_dir= $(libdir)/g++-include
169 # Directory to search for site-specific includes.
170 includedir = $(local_prefix)/include
171 # assertdir is overridden in cross-make.
172 # (But this currently agrees with what is in cross-make.)
173 assertdir = $(tooldir)/include
174 # where the info files go
175 infodir = $(prefix)/info
176 # Extension (if any) to put in installed man-page filename.
178 # Directory in which to put man pages.
179 mandir = $(prefix)/man/man1
180 # Directory in which to find other cross-compilation tools and headers.
181 # Used in install-cross.
182 tooldir = $(exec_prefix)/$(target)
183 # Dir for temp files.
186 # Additional system libraries to link with.
189 # Change this to a null string if obstacks are installed in the
193 # Specify the rule for actually making libgcc.a,
195 # and the rule for installing it.
196 INSTALL_LIBGCC = install-libgcc
198 # Specify the rule for actually making libgcc1.a.
199 # The value may be empty; that means to do absolutely nothing
200 # with or for libgcc1.a.
203 # Specify the rule for making libgcc1.a for a cross-compiler.
204 # The default rule assumes that libgcc1.a is supplied by the user.
205 CROSS_LIBGCC1 = libgcc1.cross
207 # Specify the rule for actually making libgcc2.a.
210 # Options to use when compiling libgcc2.a.
211 # -g1 causes output of debug info only for file-scope entities.
212 # we use this here because that should be enough, and also
213 # so that -g1 will be tested.
214 LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) -g1
216 # Additional options to use when compiling libgcc2.a.
217 # Some targets override this to -Iinclude
220 # Things which must be built before building libgcc2.a.
221 # Some targets override this to stmp-int-hdrs
224 # Enquire target (This is a variable so that a target can choose not to
228 # Cross-test target (must also be overridable for a target)
229 CROSS_TEST = cross-test
231 # List of extra executables that should be compiled for this target machine
232 # that are used for compiling from source code to object code.
233 # The rules for compiling them should be in the t-* file for the machine.
236 # Like EXTRA_PASSES, but these are used when linking.
239 # List of extra object files that should be compiled for this target machine.
240 # The rules for compiling them should be in the t-* file for the machine.
243 # List of extra object files that should be compiled and linked with
244 # compiler proper (cc1, cc1obj, cc1plus).
247 # List of additional header files to install.
248 # Often this is edited directly by `configure'.
251 # Set this to `ld' to enable use of collect2.
253 # It is convenient for configure to add the assignment at the beginning,
254 # so don't override it here.
256 # List of extra C and assembler files to add to libgcc1.a.
257 # Assembler files should have names ending in `.asm'.
260 # List of extra C and assembler files to add to libgcc2.a.
261 # Assembler files should have names ending in `.asm'.
264 # Default float.h source to use for cross-compiler.
265 CROSS_FLOAT_H=float.h-cross
267 # Program to convert libraries.
270 # Control whether header files are installed.
271 INSTALL_HEADERS=install-headers
273 # Options for tar when copying trees. So HPUX can override it.
276 # Select which version of fixincludes to use (I.E. regular versus SVR4)
277 # This value is overridden directly by configure.
278 FIXINCLUDES=fixincludes
280 # Additional directories of header files to run fixincludes on.
281 # These should be directories searched automatically by default
282 # just as /usr/include is.
283 # *Do not* use this for directories that happen to contain
284 # header files, but are not searched automatically by default.
285 # On most systems, this is empty.
286 OTHER_FIXINCLUDES_DIRS=
288 # List of things which should already be built whenever we try to use xgcc
289 # to compile anything (without linking).
290 GCC_PASSES=xgcc cc1 cpp $(EXTRA_PASSES)
292 # List of things which should already be built whenever we try to use xgcc
294 GCC_PARTS=$(GCC_PASSES) $(LIBGCC) $(EXTRA_PROGRAMS) $(USE_COLLECT2) $(EXTRA_PARTS)
296 # Directory to link to, when using the target `maketest'.
299 # Guaranteed to not exist when not passing md through cpp.
300 # This value is overridden directly by configure.
301 MD_FILE = md-cpp-not-used
303 # Flags to use when cross-building GCC.
304 # Prefix to apply to names of object files when using them
305 # to run on the machine we are compiling on.
307 # Prefix to apply to names of object files when compiling them
308 # to run on the machine we are compiling on.
309 # The default for this variable is chosen to keep these rules
310 # out of the way of the other rules for compiling the same source files.
313 HOST_CFLAGS=$(ALL_CFLAGS)
315 HOST_LDFLAGS=$(LDFLAGS)
316 HOST_CPPFLAGS=$(ALL_CPPFLAGS)
317 HOST_ALLOCA=$(ALLOCA)
318 HOST_MALLOC=$(MALLOC)
319 HOST_OBSTACK=$(OBSTACK)
321 # Choose the real default target.
324 # Choose the real install target.
325 INSTALL_TARGET=install-normal
327 # Source for float.h. Overridden by cross-make.
330 # Extra symbols for fixproto to define when parsing headers.
333 # End of variables for you to override.
335 # Definition of `all' is here so that new rules inserted by sed
336 # do not specify the default target.
337 # The real definition is under `all.internal' (for native compilers)
338 # or `all.cross' (for cross compilers).
341 # This tells GNU Make version 3 not to put all variables in the environment.
344 # sed inserts variable overrides after the following line.
350 # Now figure out from those variables how to compile and link.
354 # IN_GCC tells obstack.h that we are using gcc's <stddef.h> file.
355 # ??? IN_GCC should be obsolete now.
356 INTERNAL_CFLAGS = $(CROSS) -DIN_GCC
358 # This is the variable actually used when we compile.
359 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS)
362 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
364 # Even if ALLOCA is set, don't use it if compiling with GCC.
365 USE_ALLOCA= ` case "${CC}" in "${OLDCC}") echo "${ALLOCA}" ;; esac `
366 USE_HOST_ALLOCA= ` case "${HOST_CC}"@"${HOST_ALLOCA}" in "${OLDCC}"@?*) echo ${HOST_PREFIX}${HOST_ALLOCA} ;; esac `
367 USE_HOST_MALLOC= ` case "${HOST_MALLOC}" in ?*) echo ${HOST_PREFIX}${HOST_MALLOC} ;; esac `
368 USE_HOST_OBSTACK= ` case "${HOST_OBSTACK}" in ?*) echo ${HOST_PREFIX}${HOST_OBSTACK} ;; esac `
370 # Dependency on obstack, alloca, malloc or whatever library facilities
371 # are not installed in the system libraries.
372 # We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
373 LIBDEPS= $(OBSTACK) $(ALLOCA) $(MALLOC)
375 # Likewise, for use in the tools that must run on this machine
376 # even if we are cross-building GCC.
377 # We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
378 HOST_LIBDEPS= $(HOST_PREFIX)$(HOST_OBSTACK) $(HOST_PREFIX)$(HOST_ALLOCA) $(HOST_PREFIX)$(HOST_MALLOC)
380 # How to link with both our special library facilities
381 # and the system's installed libraries.
382 LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(CLIB)
384 # Likewise, for use in the tools that must run on this machine
385 # even if we are cross-building GCC.
386 HOST_LIBS = $(USE_HOST_OBSTACK) $(USE_HOST_ALLOCA) $(USE_HOST_MALLOC) \
389 HOST_RTL = $(HOST_PREFIX)rtl.o
390 HOST_RTLANAL = $(HOST_PREFIX)rtlanal.o
391 HOST_PRINT = $(HOST_PREFIX)print-rtl.o
393 # Specify the directories to be searched for header files.
394 # Both . and srcdir are used, in that order,
395 # so that tm.h and config.h will be found in the compilation
396 # subdirectory rather than in the source directory.
397 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config
399 # Always use -I$(srcdir)/config when compiling.
401 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
403 # This tells GNU make version 3 not to export all the variables
404 # defined in this file into the environment.
407 # Support for additional languages (other than c and objc).
408 # ??? objc can be supported this way too (leave for later).
410 # These next lines are overridden by configure.
415 # Flags to pass to recursive makes.
416 # CC is set by configure. Hosts without symlinks need special handling
417 # because we need CC="stage1/xgcc -Bstage1/" to work in the language
419 # ??? The choices here will need some experimenting with.
421 "AR_FLAGS=$(AR_FLAGS)" \
422 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
424 "BISONFLAGS=$(BISONFLAGS)" \
425 "CC=set-by-configure" \
427 "GCC_FOR_TARGET=$(CC_FOR_TARGET)" \
428 "LDFLAGS=$(LDFLAGS)" \
430 "LEXFLAGS=$(LEXFLAGS)" \
431 "MAKEINFO=$(MAKEINFO)" \
432 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
433 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
434 "RANLIB_TEST_FOR_TARGET=$(RANLIB_TEST_FOR_TARGET)" \
436 "exec_prefix=$(exec_prefix)" \
438 "tooldir=$(tooldir)" \
440 "libsubdir=$(libsubdir)"
442 # Lists of files for various purposes.
444 # A list of all the language-specific executables.
445 # This is overridden by configure.
446 COMPILERS = cc1 cc1obj
448 # Language-specific object files for C.
449 C_OBJS = c-parse.o c-lang.o c-lex.o c-pragma.o \
450 c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o
452 # Language-specific object files for Objective C.
453 OBJC_OBJS = objc-parse.o objc-act.o c-lex.o c-pragma.o \
454 c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o
456 # Files specific to the C interpreter bytecode compiler(s).
457 BC_OBJS = bc-emit.o bc-optab.o
459 # Language-independent object files.
460 OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
461 function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o \
462 rtl.o print-rtl.o rtlanal.o emit-rtl.o real.o \
463 dbxout.o sdbout.o dwarfout.o xcoffout.o \
464 integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o \
465 regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o \
466 insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o \
467 insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o \
468 insn-attrtab.o aux-output.o getpwd.o convert.o $(EXTRA_OBJS)
470 # GEN files are listed separately, so they can be built before doing parallel
471 # makes for cc1 or cc1plus. Otherwise sequent parallel make attempts to load
472 # them before rtl.o is compiled.
473 GEN= genemit genoutput genrecog genextract genflags gencodes genconfig genpeep
475 # Files to be copied away after each stage in building.
476 STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
477 insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
478 insn-attr.h insn-attrtab.c insn-opinit.c \
479 stamp-flags stamp-config stamp-codes \
480 stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \
481 stamp-attr stamp-attrtab stamp-opinit stamp-proto \
482 genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
483 genattrtab genattr genopinit \
484 bc-arity.h bc-opcode.h bc-opname.h \
485 stamp-bcarity stamp-bcopcode stamp-bcopname \
486 bi-arity bi-opcode bi-opname \
487 $(GCC_PASSES) $(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross cccp \
488 cc1obj enquire protoize unprotoize specs collect2 $(USE_COLLECT2) \
491 # Members of libgcc1.a.
492 LIB1FUNCS = _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
493 _lshrsi3 _lshlsi3 _ashrsi3 _ashlsi3 \
494 _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 \
495 _fixdfsi _fixsfsi _floatsidf _floatsisf _truncdfsf2 _extendsfdf2 \
496 _addsf3 _negsf2 _subsf3 _mulsf3 _divsf3 \
497 _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 \
498 _eqsf2 _nesf2 _gtsf2 _gesf2 _ltsf2 _lesf2
500 # Library members defined in libgcc2.c.
501 LIB2FUNCS = _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 \
502 _lshrdi3 _lshldi3 _ashldi3 _ashrdi3 _ffsdi2 \
503 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf \
504 _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi \
505 _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi \
506 _fixtfdi _fixunstfdi _floatditf \
507 __gcc_bcmp _varargs _eprintf _op_new _op_vnew _new_handler _op_delete \
508 _op_vdel _bb _shtab _clear_cache _trampoline __main _exit _ctors _eh \
511 # Header files that are made available under the same name
512 # to programs compiled with GCC.
513 USER_H = $(srcdir)/ginclude/stdarg.h $(srcdir)/ginclude/stddef.h \
514 $(srcdir)/ginclude/varargs.h $(srcdir)/ginclude/va-alpha.h \
515 $(srcdir)/ginclude/va-h8300.h $(srcdir)/ginclude/va-i860.h \
516 $(srcdir)/ginclude/va-i960.h $(srcdir)/ginclude/va-mips.h \
517 $(srcdir)/ginclude/va-m88k.h $(srcdir)/ginclude/va-pa.h \
518 $(srcdir)/ginclude/va-pyr.h $(srcdir)/ginclude/va-sparc.h \
519 $(srcdir)/ginclude/va-clipper.h $(srcdir)/ginclude/va-spur.h \
520 $(srcdir)/ginclude/proto.h $(EXTRA_HEADERS)
522 # The files that "belong" in CONFIG_H are deliberately omitted
523 # because having them there would not be useful in actual practice.
524 # All they would do is cause complete recompilation every time
525 # one of the machine description files is edited.
526 # That may or may not be what one wants to do.
527 # If it is, rm *.o is an easy way to do it.
528 # CONFIG_H = config.h tm.h
530 RTL_H = rtl.h rtl.def machmode.h machmode.def
531 TREE_H = tree.h real.h tree.def machmode.h machmode.def
532 BYTECODE_H = bytecode.h bc-emit.h bc-optab.h
534 # Language makefile fragments.
536 # The following targets define the interface between us and the languages.
538 # all.build, all.cross, start.encap, rest.encap,
540 # install-normal, install-common, install-info, install-man,
541 # uninstall, distdir,
542 # mostlyclean, clean, distclean, extraclean, realclean,
543 # stage1, stage2, stage3, stage4
545 # Each language is linked in with a series of hooks (since we can't use `::'
546 # targets). The name of each hooked is "lang.${target_name}" (eg: lang.info).
547 # Configure computes and adds these here.
551 # sed inserts language fragments after the following line.
552 ####language fragments
554 # End of language makefile fragments.
556 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
559 Makefile: $(srcdir)/Makefile.in $(srcdir)/configure $(srcdir)/version.c \
560 $(srcdir)/config/$(xmake_file) $(srcdir)/config/$(tmake_file) \
562 $(SHELL) config.status
564 all.internal: start.encap rest.encap
565 # This is what to compile if making a cross-compiler.
566 # Note that we can compile enquire using the cross-compiler just built,
567 # although we can't run it on this machine.
568 all.cross: native gcc-cross specs stmp-headers $(LIBGCC) $(STMP_FIXPROTO) \
569 $(CROSS_TEST) $(ENQUIRE) $(EXTRA_PARTS) lang.all.cross
570 # This is what to compile if making gcc with a cross-compiler.
571 all.build: native xgcc $(EXTRA_PARTS) lang.all.build
572 # This is what must be made before installing GCC and converting libraries.
573 start.encap: native xgcc specs $(LIBGCC1) xlimits.h lang.start.encap
574 # These can't be made until after GCC can run.
575 rest.encap: stmp-headers $(LIBGCC) $(STMP_FIXPROTO) $(EXTRA_PARTS) lang.rest.encap
576 # This is what is made with the host's compiler
577 # whether making a cross compiler or not.
578 native: config.status cpp $(LANGUAGES) $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2)
580 # Define the names for selecting languages in LANGUAGES.
582 OBJC objc: cc1obj objc-runtime
583 OBJECTIVE-C objective-c: cc1obj objc-runtime
586 # Really, really stupid make features, such as SUN's KEEP_STATE, may force
587 # a target to build even if it is up-to-date. So we must verify that
588 # config.status does not exist before failing.
590 @if [ ! -f config.status ] ; then \
591 echo You must configure gcc. Look at the INSTALL file for details.; \
597 # On the target machine, finish building a cross compiler.
598 # This does the things that can't be done on the host machine.
599 rest.cross: $(LIBGCC) gfloat.h specs
601 # Verify that it works to compile and link cross-test.
602 # If it does, then there are sufficient replacements for libgcc1.a.
603 cross-test: cross-test.o native gcc-cross $(LIBGCC) $(GCC_PARTS)
604 $(GCC_FOR_TARGET) $(GCC_CFLAGS) cross-test.o -o cross-test
605 cross-test.o: cross-test.c native gcc-cross
606 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -c $(srcdir)/cross-test.c
608 # Recompile all the language-independent object files.
609 # This is used only if the user explicitly asks for it.
610 compilations: ${OBJS}
612 # Create a list of the language-independent object files so the language
613 # subdirectories needn't mention their names explicitly.
614 stamp-objlist: Makefile $(OBJS) $(BC_OBJS)
615 echo " $(OBJS) $(BC_OBJS)" | sed -e 's, \([a-z]\), ../\1,g' >stamp-objlist
617 # We call this executable `xgcc' rather than `gcc'
618 # to avoid confusion if the current directory is in the path
619 # and CC is `gcc'. It is renamed to `gcc' when it is installed.
620 xgcc: gcc.o version.o $(LIBDEPS)
621 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o xgcc gcc.o version.o $(LIBS)
623 # Dump a specs file to make -B./ read these specs over installed ones.
625 $(GCC_FOR_TARGET) -dumpspecs > tmp-specs
628 # We do want to create an executable named `xgcc', so we can use it to
630 # Also create gcc-cross, so that install-common will install properly.
634 cc1: $(P) $(C_OBJS) $(OBJS) $(BC_OBJS) $(LIBDEPS)
635 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cc1 $(C_OBJS) $(OBJS) $(BC_OBJS) $(LIBS)
637 cc1obj: $(P) $(OBJC_OBJS) $(OBJS) $(BC_OBJS) $(LIBDEPS)
638 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cc1obj $(OBJC_OBJS) $(OBJS) $(BC_OBJS) $(LIBS)
640 # Copy float.h from its source.
642 cp $(FLOAT_H) gfloat.h
644 # Create float.h source for the native machine.
646 -./enquire -f > tmp-float.h
647 mv tmp-float.h float.h-nat
649 # Create a dummy float.h source for a cross-compiler.
651 echo "#error float.h values not known for cross-compiler" > t-float.h-cross
652 mv t-float.h-cross float.h-cross
654 # Used to compile enquire with standard cc, but have forgotten why.
655 # Let's try with GCC.
656 enquire: enquire.o $(GCC_PARTS)
657 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ENQUIRE_LDFLAGS) enquire.o -o enquire
658 enquire.o: $(srcdir)/enquire.c $(GCC_PASSES) stmp-int-hdrs
659 # -if [ "$(srcdir)" != "." ]; then rm -f ./enquire.c; else true; fi
660 # -cp $(srcdir)/enquire.c . > /dev/null 2>&1
661 # Breaking this line caused a problem with one version of GNU make.
662 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(ENQUIRE_CFLAGS) -I. -c $(srcdir)/enquire.c
664 # Build the version of limits.h that we will install.
665 xlimits.h: glimits.h limitx.h limity.h
666 if [ -f $(SYSTEM_HEADER_DIR)/limits.h ] ; then \
667 cat $(srcdir)/limitx.h $(srcdir)/glimits.h $(srcdir)/limity.h > tmp-xlimits.h; \
669 cat $(srcdir)/glimits.h > tmp-xlimits.h; \
671 mv tmp-xlimits.h xlimits.h
674 # This is done in two parts because some functions, in libgcc1.c,
675 # must be compiled with something other than GCC,
676 # while the rest, in libgcc2.c, must be compiled with xgcc.
677 # That means we can't do libgcc2.c until after xgcc, cc1, etc.
679 # Use this as value of LIBGCC1 to cause conversion to GNU library format.
680 # LIBCONVERT should put its output in libgcc1.conv.
681 libgcc1.conv: libgcc1.a
682 $(LIBCONVERT) libgcc1.a libgcc1.conv
684 # Use this as value of LIBGCC1 to inhibit use of libgcc1.c entirely.
685 # Make an empty file instead.
686 libgcc1.null: $(GCC_PASSES)
687 echo "__foo () {}" > dummy.c
688 $(GCC_FOR_TARGET) $(GCC_CFLAGS) -c dummy.c
689 $(OLDAR) $(OLDAR_FLAGS) libgcc1.null dummy.o
690 rm -f dummy.o dummy.c
692 # This is $(LIBGCC1) for a cross-compiler.
693 # We have no automatic way of building libgcc1.a,
694 # so it's up to the installer to find a way to do that.
695 # This rule deliberately does not depend on libgcc1.a
696 # so that it will fail if the installer hasn't provided it.
698 mv libgcc1.a libgcc1.cross || (echo You must find a way to make libgcc1.a; false)
700 # Compile the library of arithmetic subroutines with the native compiler.
701 # Don't compile it with GCC!
702 # (That would cause most arithmetic functions to call themselves.)
703 libgcc1.a: libgcc1.c $(CONFIG_H) $(LIB1FUNCS_EXTRA) config.status
705 # Actually build it in tmplibgcc1.a, then rename at end,
706 # so that libgcc1.a itself remains nonexistent if compilation is aborted.
707 # -e causes any failing command to make this rule fail.
708 # -e doesn't work in certain shells, so we test $$? as well.
709 # lynx has a broken ar, it always complains when the initial library is
710 # empty, thus this command works only if we don't do -e
711 # There is a trailing backslash (\) deleted from the following line.
713 for name in $(LIB1FUNCS); \
717 $(OLDCC) $(CCLIBFLAGS) $(INCLUDES) -c -DL$${name} $(srcdir)/libgcc1.c; \
718 if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
719 mv libgcc1.o $${name}.o; \
720 $(OLDAR) $(OLDAR_FLAGS) tmplibgcc1.a $${name}.o; \
723 # Some shells crash when a loop has no items.
724 # So make sure there is always at least one--`..'.
726 # We don't use -e here because there are if statements
727 # that should not make the command give up when the if condition is false.
728 # Instead, we test for failure after each command where it matters.
729 for file in .. $(LIB1FUNCS_EXTRA); \
731 if [ x$${file} != x.. ]; then \
732 name=`echo $${file} | sed -e 's/[.]c$$//' -e 's/[.]asm$$//'`; \
734 if [ $${name}.asm = $${file} ]; then \
735 cp $${file} $${name}.s || exit 1; file=$${name}.s; \
737 $(OLDCC) $(CCLIBFLAGS) $(INCLUDES) -c $${file}; \
738 if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
739 $(OLDAR) $(OLDAR_FLAGS) tmplibgcc1.a $${name}.o; \
740 if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
741 rm -f $${name}.[so]; \
745 mv tmplibgcc1.a libgcc1.a
747 # Build libgcc1.a from assembler source. LIB1ASMFUNCS is the list of
748 # functions. LIB1ASMSRC is the name of the source file in the config
750 libgcc1-asm.a: libgcc2.ready config.status $(srcdir)/config/$(LIB1ASMSRC)
751 -rm -f tmplibgcc1.a libgcc1.S
752 cp $(srcdir)/config/$(LIB1ASMSRC) libgcc1.S
753 # Actually build it in tmplibgcc1.a, then rename at end,
754 # so that libgcc1-asm.a itself remains nonexistent if compilation is aborted.
755 # -e causes any failing command to make this rule fail.
756 # -e doesn't work in certain shells, so we test $$? as well.
757 # lynx has a broken ar, it always complains when the initial library is
758 # empty, thus this command works only if we don't do -e
759 # There is a trailing backslash (\) deleted from the following line.
761 for name in $(LIB1ASMFUNCS); \
764 $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} libgcc1.S; \
765 if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
766 mv libgcc1.o $${name}.o; \
767 $(AR) $(AR_FLAGS) tmplibgcc1.a $${name}.o; \
771 mv tmplibgcc1.a libgcc1-asm.a
773 # Compiling libgcc2.a requires making sure that cc1, etc. have been compiled.
774 # But recompiling cc1 should not force recompilation of libgcc2.a.
775 # If you want to force recompilation, delete libgcc2.a.
776 libgcc2.ready: $(GCC_PASSES) $(LIBGCC2_DEPS) stmp-int-hdrs
777 -if [ -f libgcc2.ready ] ; then \
780 touch libgcc2.ready; \
783 libgcc2.a: libgcc2.c libgcc2.ready $(CONFIG_H) $(LIB2FUNCS_EXTRA) \
784 machmode.h longlong.h gbl-ctors.h config.status
785 # Actually build it in tmplibgcc2.a, then rename at end,
786 # so that libgcc2.a itself remains nonexistent if compilation is aborted.
788 # -e causes any failing command to make this rule fail.
789 # -e doesn't work in certain shells, so we test $$? as well.
790 # lynx has a broken ar, it always complains when the initial library is
791 # empty, thus this command works only if we don't do -e
792 # There is a trailing backslash (\) deleted from the following line.
794 for name in $(LIB2FUNCS); \
797 $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} \
798 $(srcdir)/libgcc2.c -o $${name}.o; \
799 if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
800 $(AR) $(AR_FLAGS) tmplibgcc2.a $${name}.o; \
803 # Some shells crash when a loop has no items.
804 # So make sure there is always at least one--`..'.
806 # We don't use -e here because there are if statements
807 # that should not make the command give up when the if condition is false.
808 # Instead, we test for failure after each command where it matters.
809 for file in .. $(LIB2FUNCS_EXTRA); \
811 if [ x$${file} != x.. ]; then \
812 name=`echo $${file} | sed -e 's/[.]c$$//' -e 's/[.]asm$$//'`; \
814 if [ $${name}.asm = $${file} ]; then \
815 cp $${file} $${name}.s || exit 1; file=$${name}.s; \
817 $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c $${file}; \
818 if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
819 $(AR) $(AR_FLAGS) tmplibgcc2.a $${name}.o; \
820 rm -f $${name}.[so]; \
824 mv tmplibgcc2.a libgcc2.a
825 # These lines were deleted from above the mv command
826 # because ranlibing libgcc.a itself should suffice.
827 # -if [ x${HPUX_GAS} = x ] ; then \
828 # if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc2.a; else true; fi; \
831 # Combine the various libraries into a single library, libgcc.a.
832 libgcc.a: $(LIBGCC1) $(LIBGCC2)
833 -rm -rf tmplibgcc.a libgcc.a tmpcopy
835 -if [ x$(LIBGCC1) != x ]; \
836 then (cd tmpcopy; $(AR) x ../$(LIBGCC1)); \
839 # Some versions of ar (specifically the one in RISC/os 5.x), create an
840 # unwritable table of contents file, and then print an error message when
841 # the second ar command tries to overwrite this file. To avoid the error
842 # message from ar, we make sure all files are writable.
843 -(cd tmpcopy; chmod +w * > /dev/null 2>&1)
844 (cd tmpcopy; $(AR) x ../$(LIBGCC2))
845 (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.o)
847 -if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc.a; else true; fi
848 # Actually build it in tmplibgcc.a, then rename at end,
849 # so that libgcc.a itself remains nonexistent if compilation is aborted.
850 mv tmplibgcc.a libgcc.a
852 # Use the genmultilib shell script to generate the information the gcc
853 # driver program needs to select the library directory based on the
855 multilib.h: $(srcdir)/genmultilib config.status
856 $(SHELL) $(srcdir)/genmultilib "$(MULTILIB_OPTIONS)" \
857 "$(MULTILIB_DIRNAMES)" "$(MULTILIB_MATCHES)" > multilib.h
859 # Build multiple copies of libgcc.a, one for each target switch.
860 stmp-multilib: $(LIBGCC1) libgcc2.c libgcc2.ready $(CONFIG_H) \
861 $(LIB2FUNCS_EXTRA) machmode.h longlong.h gbl-ctors.h config.status
862 for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \
863 dir=`echo $$i | sed -e 's/;.*$$//'`; \
864 flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
865 $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
866 AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
867 RANLIB="$(RANLIB)" RANLIB_TEST="$(RANLIB_TEST)" \
868 HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_1)" \
869 LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS) $${flags}" \
870 LIBGCC1="$(LIBGCC1)" LIBGCC2="$(LIBGCC2)" \
871 dir="$${dir}" stmp-multilib-sub; \
875 # Subroutine of stmp-multilib so make -n works.
877 rm -f $(dir)/libgcc.a $(LIBGCC2)
878 $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
879 AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
880 HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_1)" \
881 LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" $(LIBGCC2)
882 if [ x$(LIBGCC1) != xlibgcc1-asm.a ]; \
884 else rm -f $(LIBGCC1); \
886 if [ x$(LIBGCC1) != xlibgcc1-asm.a ]; \
889 $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
890 AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
891 HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_1)" \
892 LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" $(LIBGCC1); \
894 rm -rf tmplibgcc.a tmpcopy
896 if [ x$(LIBGCC1) != x ]; \
897 then (cd tmpcopy; $(AR) x ../$(LIBGCC1)); \
900 (cd tmpcopy; $(AR) x ../$(LIBGCC2))
901 (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.o)
902 rm -rf libgcc2.a tmpcopy
903 if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc.a; else true; fi
904 if [ -d $(dir) ]; then true; else mkdir $(dir); fi
905 mv tmplibgcc.a $(dir)/libgcc.a
907 objc-runtime: libobjc.a
909 # Build the Objective C runtime library.
910 libobjc.a: cc1obj stmp-int-hdrs libgcc2.ready $(USE_COLLECT2) $(EXTRA_PARTS)
911 if [ -d objc ]; then true; else mkdir objc; fi
913 srcdir1=`cd $(srcdir); pwd`; \
915 $(MAKE) -f $${srcdir1}/objc/Makefile libobjc.a \
916 srcdir=$${srcdir1} tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
917 GCC_FOR_TARGET="$${thisdir1}/xgcc -B$${thisdir1}/" \
918 GCC_CFLAGS="$(GCC_CFLAGS)"
920 ln objc/libobjc.a . >/dev/null 2>&1 || cp objc/libobjc.a .
921 -if $(RANLIB_TEST) ; then $(RANLIB) libobjc.a; else true; fi
923 # This is used by objc/Makefile if the user runs that directly.
924 sublibobjc.a: cc1obj stmp-int-hdrs libgcc2.ready
926 srcdir1=`cd $(srcdir); pwd`; \
928 $(MAKE) -f $$srcdir1/objc/Makefile libobjc.a \
929 srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
930 GCC_FOR_TARGET="$$thisdir1/xgcc -B$$thisdir1/" \
931 GCC_CFLAGS="$(GCC_CFLAGS)"
933 # Compile two additional files that are linked with every program
934 # linked using GCC on system V, for the sake of C++ constructors.
935 crtbegin.o: crtstuff.c $(GCC_PASSES) $(CONFIG_H) gbl-ctors.h
936 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) -DCRT_BEGIN \
937 -finhibit-size-directive -fno-inline-functions \
938 -g0 -c $(srcdir)/crtstuff.c -o crtbegin.o
940 crtend.o: crtstuff.c $(GCC_PASSES) $(CONFIG_H) gbl-ctors.h
941 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) -DCRT_END \
942 -finhibit-size-directive -fno-inline-functions \
943 -g0 -c $(srcdir)/crtstuff.c -o crtend.o
945 # Compiling object files from source files.
947 # Note that dependencies on obstack.h are not written
948 # because that file is not part of GCC.
950 # C language specific files.
952 c-parse.o : $(srcdir)/c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
953 $(srcdir)/c-parse.h c-tree.h input.h flags.h
954 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.c
955 $(srcdir)/c-parse.c $(srcdir)/c-parse.h: $(srcdir)/c-parse.y
956 cd $(srcdir); $(BISON) $(BISONFLAGS) -d c-parse.y -o c-parse.c
957 $(srcdir)/c-parse.y: $(srcdir)/c-parse.in
958 sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
959 -e "/^ifc$$/d" -e "/^end ifc$$/d" \
960 $(srcdir)/c-parse.in >tmp-c-parse.y
961 $(srcdir)/move-if-change tmp-c-parse.y $(srcdir)/c-parse.y
963 $(srcdir)/c-gperf.h: $(srcdir)/c-parse.gperf
964 gperf -p -j1 -i 1 -g -o -t -G -N is_reserved_word -k1,3,$$ \
965 $(srcdir)/c-parse.gperf >tmp-gperf.h
966 $(srcdir)/move-if-change tmp-gperf.h $(srcdir)/c-gperf.h
968 c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
969 c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
970 c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H)
971 c-lex.o : c-lex.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h $(srcdir)/c-parse.h \
972 input.h flags.h $(srcdir)/c-gperf.h
973 c-aux-info.o : c-aux-info.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
974 c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H) flags.h
975 c-pragma.o: c-pragma.c $(CONFIG_H) $(TREE_H)
976 c-iterate.o: c-iterate.c $(CONFIG_H) $(TREE_H) $(RTL_H) c-tree.h flags.h
978 # To make a configuration always use collect2, set USE_COLLECT2 to ld.
983 collect2 : collect2.o version.o $(LIBDEPS)
984 # Don't try modifying collect2 (aka ld) in place--it might be linking this.
986 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o collect2 collect2.o version.o $(LIBS)
988 collect2.o : collect2.c $(CONFIG_H) gstab.h
989 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
990 -DTARGET_MACHINE=\"$(target)\" \
991 -c `echo $(srcdir)/collect2.c | sed 's,^\./,,'`
993 # Objective C language specific files.
995 objc-parse.o : $(srcdir)/objc-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
996 c-tree.h input.h flags.h objc-act.h
997 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/objc-parse.c
998 $(srcdir)/objc-parse.c : $(srcdir)/objc-parse.y
999 cd $(srcdir); $(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c
1000 $(srcdir)/objc-parse.y: $(srcdir)/c-parse.in
1001 sed -e "/^ifc$$/,/^end ifc$$/d" \
1002 -e "/^ifobjc$$/d" -e "/^end ifobjc$$/d" \
1003 $(srcdir)/c-parse.in >tmp-objc-parse.y
1004 $(srcdir)/move-if-change tmp-objc-parse.y $(srcdir)/objc-parse.y
1006 objc-act.o : objc-act.c $(CONFIG_H) $(TREE_H) $(RTL_H) c-tree.h c-lex.h \
1007 flags.h objc-act.h input.h function.h $(srcdir)/c-parse.h
1009 # A file used by all variants of C.
1011 c-common.o : c-common.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
1013 # Language-independent files.
1015 gcc.o: gcc.c $(CONFIG_H) multilib.h config.status
1016 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
1017 -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
1018 -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
1019 -DDEFAULT_TARGET_VERSION=\"$(version)\" \
1020 -DDEFAULT_TARGET_MACHINE=\"$(target)\" \
1021 -DTOOLDIR_BASE_PREFIX=\"$(exec_prefix)/\" \
1022 $(MAYBE_TARGET_DEFAULT) \
1023 -c `echo $(srcdir)/gcc.c | sed 's,^\./,,'`
1025 dumpvers: dumpvers.c
1027 version.o: version.c
1028 obstack.o: obstack.c
1030 convert.o: convert.c $(CONFIG_H) $(TREE_H) flags.h convert.h
1032 tree.o : tree.c $(CONFIG_H) $(TREE_H) flags.h function.h
1033 print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
1034 stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) function.h
1035 fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H) flags.h
1036 toplev.o : toplev.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h input.h \
1037 insn-attr.h xcoffout.h defaults.h
1038 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
1039 $(MAYBE_TARGET_DEFAULT) $(MAYBE_USE_COLLECT2) \
1040 -c `echo $(srcdir)/toplev.c | sed 's,^\./,,'`
1042 rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
1044 print-rtl.o : print-rtl.c $(CONFIG_H) $(RTL_H)
1045 rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
1047 toplev.o: bytecode.h bc-emit.h
1048 varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h function.h \
1049 defaults.h insn-codes.h expr.h hard-reg-set.h regs.h xcoffout.h bytecode.h
1050 function.o : function.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h \
1051 insn-flags.h insn-codes.h expr.h regs.h hard-reg-set.h insn-config.h \
1052 recog.h output.h bytecode.h
1053 stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h \
1054 insn-flags.h insn-config.h insn-codes.h hard-reg-set.h expr.h loop.h \
1055 recog.h bytecode.h bc-typecd.h bc-typecd.def bc-opcode.h bc-optab.h \
1057 expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h regs.h \
1058 insn-flags.h insn-codes.h expr.h insn-config.h recog.h output.h \
1059 typeclass.h bytecode.h bc-opcode.h bc-typecd.h bc-typecd.def bc-optab.h \
1060 bc-emit.h modemap.def
1061 calls.o : calls.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h \
1063 expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
1064 insn-flags.h insn-config.h insn-codes.h expr.h recog.h real.h
1065 explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h hard-reg-set.h \
1066 insn-config.h expr.h recog.h insn-flags.h insn-codes.h
1067 optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
1068 insn-flags.h insn-config.h insn-codes.h expr.h recog.h reload.h
1069 dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h regs.h \
1070 insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h
1071 sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) gsyms.h flags.h \
1072 insn-config.h reload.h
1073 dwarfout.o : dwarfout.c $(CONFIG_H) $(TREE_H) $(RTL_H) dwarf.h flags.h \
1074 insn-config.h reload.h output.h defaults.h
1075 xcoffout.o : xcoffout.c $(CONFIG_H) $(TREE_H) $(RTL_H) xcoffout.h flags.h
1076 emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
1077 function.h regs.h insn-config.h insn-codes.h real.h expr.h bytecode.h \
1078 bc-opcode.h bc-typecd.h bc-typecd.def bc-optab.h bc-emit.h bc-opname.h
1079 real.o : real.c $(CONFIG_H) $(TREE_H)
1080 getpwd.o : getpwd.c $(CONFIG_H)
1082 integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h integrate.h \
1083 insn-flags.h insn-config.h insn-codes.h expr.h real.h function.h \
1086 jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h hard-reg-set.h regs.h \
1087 insn-config.h insn-flags.h insn-codes.h expr.h real.h
1088 stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h
1090 cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h \
1091 insn-config.h recog.h
1092 loop.o : loop.c $(CONFIG_H) $(RTL_H) flags.h loop.h insn-config.h \
1093 insn-flags.h insn-codes.h regs.h hard-reg-set.h recog.h expr.h real.h
1094 unroll.o : unroll.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
1095 integrate.h regs.h flags.h expr.h loop.h
1096 flow.o : flow.c $(CONFIG_H) $(RTL_H) flags.h insn-config.h \
1097 basic-block.h regs.h hard-reg-set.h output.h
1098 combine.o : combine.c $(CONFIG_H) $(RTL_H) flags.h \
1099 insn-config.h insn-flags.h insn-codes.h insn-attr.h regs.h expr.h \
1100 basic-block.h recog.h real.h hard-reg-set.h
1101 regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
1102 basic-block.h regs.h insn-config.h recog.h reload.h real.h bytecode.h
1103 local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h \
1104 regs.h hard-reg-set.h insn-config.h recog.h output.h
1105 global.o : global.c $(CONFIG_H) $(RTL_H) flags.h \
1106 basic-block.h regs.h hard-reg-set.h insn-config.h output.h
1108 reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
1109 reload.h recog.h hard-reg-set.h insn-config.h insn-codes.h regs.h real.h
1110 reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h expr.h \
1111 reload.h regs.h hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
1112 basic-block.h recog.h output.h
1113 caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
1114 regs.h hard-reg-set.h insn-config.h basic-block.h recog.h reload.h expr.h
1115 reorg.o : reorg.c $(CONFIG_H) $(RTL_H) conditions.h hard-reg-set.h \
1116 basic-block.h regs.h insn-config.h insn-attr.h insn-flags.h recog.h \
1118 sched.o : sched.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h \
1119 flags.h insn-config.h insn-attr.h
1120 final.o : final.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h regs.h \
1121 recog.h conditions.h insn-config.h insn-attr.h real.h output.h \
1122 hard-reg-set.h insn-flags.h insn-codes.h gstab.h xcoffout.h defaults.h
1123 recog.o : recog.c $(CONFIG_H) $(RTL_H) \
1124 regs.h recog.h hard-reg-set.h flags.h insn-config.h insn-attr.h \
1125 insn-flags.h insn-codes.h real.h
1126 reg-stack.o : reg-stack.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
1127 regs.h hard-reg-set.h flags.h insn-config.h
1129 aux-output.o : aux-output.c $(CONFIG_H) \
1130 $(RTL_H) regs.h hard-reg-set.h real.h insn-config.h conditions.h \
1131 insn-flags.h output.h insn-attr.h insn-codes.h
1132 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
1133 $(MAYBE_TARGET_DEFAULT) aux-output.c
1135 # Build auxiliary files that support ecoff format.
1136 mips-tfile: mips-tfile.o version.o $(LIBDEPS)
1137 $(CC) $(CFLAGS) $(LDFLAGS) -o mips-tfile mips-tfile.o version.o $(LIBS)
1139 mips-tfile.o : mips-tfile.c $(CONFIG_H) $(RTL_H)
1141 mips-tdump: mips-tdump.o version.o $(LIBDEPS)
1142 $(CC) $(CFLAGS) $(LDFLAGS) -o mips-tdump mips-tdump.o version.o $(LIBS)
1144 mips-tdump.o : mips-tdump.c $(CONFIG_H) $(RTL_H)
1146 # Build file to support OSF/rose half-pic format.
1147 halfpic.o: halfpic.c $(CONFIG_H) $(RTL_H) $(TREE_H)
1149 # Normally this target is not used; but it is used if you
1150 # define ALLOCA=alloca.o. In that case, you must get a suitable alloca.c
1151 # from the GNU Emacs distribution.
1153 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(ALLOCA_FLAGS) \
1154 -c `echo $(srcdir)/alloca.c | sed 's,^\./,,'`
1157 # Generate header and source files from the machine description,
1160 .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
1161 insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
1162 insn-attr.h insn-attrtab.c
1164 # The following pair of rules has this effect:
1165 # genconfig is run only if the md has changed since genconfig was last run;
1166 # but the file insn-config.h is touched only when its contents actually change.
1168 # Each of the other insn-* files is handled by a similar pair of rules.
1170 # This causes an anomaly in the results of make -n
1171 # because insn-* is older than stamp-*
1172 # and thus make -n thinks that insn-* will be updated
1173 # and force recompilation of things that depend on it.
1174 # We use move-if-change precisely to avoid such recompilation.
1175 # But there is no way to teach make -n that it will be avoided.
1177 # Each of the insn-*.[ch] rules has a semicolon at the end,
1178 # for otherwise the system Make on SunOS 4.1 never tries
1179 # to recompile insn-*.o. To avoid problems and extra noise from
1180 # versions of make which don't like empty commands (nothing after the
1181 # trailing `;'), we call true for each.
1183 insn-config.h: stamp-config ; @true
1184 stamp-config : md genconfig $(srcdir)/move-if-change
1185 ./genconfig md > tmp-config.h
1186 $(srcdir)/move-if-change tmp-config.h insn-config.h
1189 insn-flags.h: stamp-flags ; @true
1190 stamp-flags : md genflags $(srcdir)/move-if-change
1191 ./genflags md > tmp-flags.h
1192 $(srcdir)/move-if-change tmp-flags.h insn-flags.h
1195 insn-codes.h: stamp-codes ; @true
1196 stamp-codes : md gencodes $(srcdir)/move-if-change
1197 ./gencodes md > tmp-codes.h
1198 $(srcdir)/move-if-change tmp-codes.h insn-codes.h
1201 insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h real.h output.h \
1202 insn-config.h insn-flags.h insn-codes.h
1203 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-emit.c
1205 insn-emit.c: stamp-emit ; @true
1206 stamp-emit : md genemit $(srcdir)/move-if-change
1207 ./genemit md > tmp-emit.c
1208 $(srcdir)/move-if-change tmp-emit.c insn-emit.c
1211 insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h recog.h \
1212 real.h output.h flags.h
1213 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-recog.c
1215 insn-recog.c: stamp-recog ; @true
1216 stamp-recog : md genrecog $(srcdir)/move-if-change
1217 ./genrecog md > tmp-recog.c
1218 $(srcdir)/move-if-change tmp-recog.c insn-recog.c
1221 insn-opinit.o : insn-opinit.c $(CONFIG_H) $(RTL_H) insn-codes.h insn-flags.h \
1222 insn-config.h flags.h rtl.h recog.h expr.h reload.h
1223 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-opinit.c
1225 insn-opinit.c: stamp-opinit ; @true
1226 stamp-opinit : md genopinit $(srcdir)/move-if-change
1227 ./genopinit md > tmp-opinit.c
1228 $(srcdir)/move-if-change tmp-opinit.c insn-opinit.c
1231 insn-extract.o : insn-extract.c $(CONFIG_H) $(RTL_H)
1232 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-extract.c
1234 insn-extract.c: stamp-extract ; @true
1235 stamp-extract : md genextract $(srcdir)/move-if-change
1236 ./genextract md > tmp-extract.c
1237 $(srcdir)/move-if-change tmp-extract.c insn-extract.c
1240 insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h output.h real.h
1241 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-peep.c
1243 insn-peep.c: stamp-peep ; @true
1244 stamp-peep : md genpeep $(srcdir)/move-if-change
1245 ./genpeep md > tmp-peep.c
1246 $(srcdir)/move-if-change tmp-peep.c insn-peep.c
1249 insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) regs.h real.h output.h \
1250 insn-attr.h insn-config.h
1251 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-attrtab.c
1253 insn-attr.h: stamp-attr ; @true
1254 stamp-attr : md genattr $(srcdir)/move-if-change
1255 ./genattr md > tmp-attr.h
1256 $(srcdir)/move-if-change tmp-attr.h insn-attr.h
1259 insn-attrtab.c: stamp-attrtab ; @true
1260 stamp-attrtab : md genattrtab $(srcdir)/move-if-change
1261 if cmp -s $(PREMADE_ATTRTAB_MD) md; \
1263 echo Using $(PREMADE_ATTRTAB); \
1264 cp $(PREMADE_ATTRTAB) tmp-attrtab.c; \
1266 ./genattrtab md > tmp-attrtab.c; \
1268 $(srcdir)/move-if-change tmp-attrtab.c insn-attrtab.c
1271 insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h real.h conditions.h \
1272 hard-reg-set.h insn-config.h insn-flags.h insn-attr.h output.h recog.h \
1274 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-output.c
1276 insn-output.c: stamp-output ; @true
1277 stamp-output : md genoutput $(srcdir)/move-if-change
1278 ./genoutput md > tmp-output.c
1279 $(srcdir)/move-if-change tmp-output.c insn-output.c
1282 # Compile the programs that generate insn-* from the machine description.
1283 # They are compiled with $(HOST_CC), and associated libraries,
1284 # since they need to run on this machine
1285 # even if GCC is being compiled to run on some other machine.
1287 # $(CONFIG_H) is omitted from the deps of the gen*.o
1288 # because these programs don't really depend on anything
1289 # about the target machine. They do depend on config.h itself,
1290 # since that describes the host machine.
1292 # Pass the md file through cpp if the target requests it.
1293 $(MD_FILE): $(MD_DEPS)
1295 $(MD_CPP) $(MD_CPPFLAGS) md.pre-cpp | sed 's/^# /; /g' > tmp-$@
1298 genconfig : genconfig.o $(HOST_RTL) $(HOST_LIBDEPS)
1299 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genconfig \
1300 genconfig.o $(HOST_RTL) $(HOST_LIBS)
1302 genconfig.o : genconfig.c $(RTL_H) hconfig.h
1303 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genconfig.c
1305 genflags : genflags.o $(HOST_RTL) $(HOST_LIBDEPS)
1306 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genflags \
1307 genflags.o $(HOST_RTL) $(HOST_LIBS)
1309 genflags.o : genflags.c $(RTL_H) hconfig.h
1310 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genflags.c
1312 gencodes : gencodes.o $(HOST_RTL) $(HOST_LIBDEPS)
1313 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o gencodes \
1314 gencodes.o $(HOST_RTL) $(HOST_LIBS)
1316 gencodes.o : gencodes.c $(RTL_H) hconfig.h
1317 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gencodes.c
1319 genemit : genemit.o $(HOST_RTL) $(HOST_LIBDEPS)
1320 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genemit \
1321 genemit.o $(HOST_RTL) $(HOST_LIBS)
1323 genemit.o : genemit.c $(RTL_H) hconfig.h
1324 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genemit.c
1326 genopinit : genopinit.o $(HOST_RTL) $(HOST_LIBDEPS)
1327 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genopinit \
1328 genopinit.o $(HOST_RTL) $(HOST_LIBS)
1330 genopinit.o : genopinit.c $(RTL_H) hconfig.h
1331 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genopinit.c
1333 genrecog : genrecog.o $(HOST_RTL) $(HOST_LIBDEPS)
1334 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genrecog \
1335 genrecog.o $(HOST_RTL) $(HOST_LIBS)
1337 genrecog.o : genrecog.c $(RTL_H) hconfig.h
1338 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genrecog.c
1340 genextract : genextract.o $(HOST_RTL) $(HOST_LIBDEPS)
1341 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genextract \
1342 genextract.o $(HOST_RTL) $(HOST_LIBS)
1344 genextract.o : genextract.c $(RTL_H) hconfig.h insn-config.h
1345 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genextract.c
1347 genpeep : genpeep.o $(HOST_RTL) $(HOST_LIBDEPS)
1348 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genpeep \
1349 genpeep.o $(HOST_RTL) $(HOST_LIBS)
1351 genpeep.o : genpeep.c $(RTL_H) hconfig.h
1352 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genpeep.c
1354 genattr : genattr.o $(HOST_RTL) $(HOST_LIBDEPS)
1355 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genattr \
1356 genattr.o $(HOST_RTL) $(HOST_LIBS)
1358 genattr.o : genattr.c $(RTL_H) hconfig.h
1359 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattr.c
1361 genattrtab : genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_RTLANAL) $(HOST_LIBDEPS)
1362 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genattrtab \
1363 genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_RTLANAL) $(HOST_LIBS)
1365 genattrtab.o : genattrtab.c $(RTL_H) hconfig.h insn-config.h
1366 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattrtab.c
1368 genoutput : genoutput.o $(HOST_RTL) $(HOST_LIBDEPS)
1369 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genoutput \
1370 genoutput.o $(HOST_RTL) $(HOST_LIBS)
1372 genoutput.o : genoutput.c $(RTL_H) hconfig.h
1373 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genoutput.c
1375 # Compile the libraries to be used by gen*.
1376 # If we are not cross-building, gen* use the same .o's that cc1 will use,
1377 # and HOST_PREFIX_1 is `foobar', just to ensure these rules don't conflict
1378 # with the rules for rtl.o, alloca.o, etc.
1379 $(HOST_PREFIX_1)rtl.o: $(srcdir)/rtl.c $(CONFIG_H) $(RTL_H)
1380 rm -f $(HOST_PREFIX)rtl.c
1381 sed -e 's/config[.]h/hconfig.h/' $(srcdir)/rtl.c > $(HOST_PREFIX)rtl.c
1382 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtl.c
1384 $(HOST_PREFIX_1)print-rtl.o: $(srcdir)/print-rtl.c $(CONFIG_H) $(RTL_H)
1385 rm -f $(HOST_PREFIX)print-rtl.c
1386 sed -e 's/config[.]h/hconfig.h/' $(srcdir)/print-rtl.c > $(HOST_PREFIX)print-rtl.c
1387 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)print-rtl.c
1389 $(HOST_PREFIX_1)rtlanal.o: $(srcdir)/rtlanal.c $(CONFIG_H) $(RTL_H)
1390 rm -f $(HOST_PREFIX)rtlanal.c
1391 sed -e 's/config[.]h/hconfig.h/' $(srcdir)/rtlanal.c > $(HOST_PREFIX)rtlanal.c
1392 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtlanal.c
1394 $(HOST_PREFIX_1)alloca.o: alloca.c
1395 rm -f $(HOST_PREFIX)alloca.c
1396 cp $(srcdir)/alloca.c $(HOST_PREFIX)alloca.c
1397 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)alloca.c
1399 $(HOST_PREFIX_1)obstack.o: obstack.c
1400 rm -f $(HOST_PREFIX)obstack.c
1401 sed -e 's/config[.]h/hconfig.h/' $(srcdir)/obstack.c > $(HOST_PREFIX)obstack.c
1402 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)obstack.c
1404 $(HOST_PREFIX_1)malloc.o: malloc.c
1405 rm -f $(HOST_PREFIX)malloc.c
1406 sed -e 's/config[.]h/hconfig.h/' $(srcdir)/malloc.c > $(HOST_PREFIX)malloc.c
1407 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)malloc.c
1409 # This satisfies the dependency that we get if you cross-compile a compiler
1410 # that does not need to compile alloca, malloc or whatever.
1412 touch $(HOST_PREFIX_1)
1414 # Remake bytecode files.
1417 BC_ALL=bc-opname.h bc-opcode.h bc-arity.h
1418 BI_OBJ=bi-parser.o bi-lexer.o bi-reverse.o
1421 bc-emit.o : bc-emit.c $(CONFIG_H) $(RTL_H) real.h $(BYTECODE_H) \
1422 bc-arity.h bc-opcode.h bc-typecd.h bc-typecd.def bi-run.h bytetypes.h
1423 bc-optab.o : bc-optab.c $(CONFIG_H) $(REAL_H) $(BYTECODE_H) \
1424 bc-opcode.h bc-typecd.h bc-typecd.def
1427 bytecode: $(BI_ALL) $(BC_ALL)
1429 bi-arity: bi-arity.o $(BI_OBJ) $(HOST_LIBDEPS)
1430 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o bi-arity \
1431 bi-arity.o $(BI_OBJ) $(HOST_LIBS)
1432 bi-opcode: bi-opcode.o $(BI_OBJ) $(HOST_LIBDEPS)
1433 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o bi-opcode \
1434 bi-opcode.o $(BI_OBJ) $(HOST_LIBS)
1435 bi-opname: bi-opname.o $(BI_OBJ) $(HOST_LIBDEPS)
1436 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o bi-opname \
1437 bi-opname.o $(BI_OBJ) $(HOST_LIBS)
1439 bi-run.o: $(srcdir)/bi-run.c $(srcdir)/bi-run.h $(srcdir)/bc-typecd.h \
1440 bc-opname.h bc-arity.h bc-opcode.h
1441 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/bi-run.c
1442 $(srcdir)/bi-parser.c $(srcdir)/bi-parser.h: $(srcdir)/bi-parser.y
1443 cd $(srcdir); $(BISON) $(BISONFLAGS) -d bi-parser.y -o bi-parser.c
1444 bi-parser.o: $(srcdir)/bi-parser.c $(srcdir)/bi-defs.h hconfig.h
1445 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
1446 $(srcdir)/bi-parser.c
1447 bi-lexer.o: $(srcdir)/bi-lexer.c $(srcdir)/bi-parser.h hconfig.h
1448 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
1449 $(srcdir)/bi-lexer.c
1450 bi-arity.o: bi-arity.c $(srcdir)/bi-defs.h hconfig.h
1451 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
1452 $(srcdir)/bi-arity.c
1453 bi-opcode.o: bi-opcode.c $(srcdir)/bi-defs.h hconfig.h
1454 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
1455 $(srcdir)/bi-opcode.c
1456 bi-opname.o: bi-opname.c $(srcdir)/bi-defs.h hconfig.h
1457 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
1458 $(srcdir)/bi-opname.c
1459 bi-reverse.o: bi-reverse.c $(srcdir)/bi-defs.h
1460 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
1461 $(srcdir)/bi-reverse.c
1464 bc-arity.h: stamp-bcarity ; @true
1465 stamp-bcarity : $(srcdir)/bytecode.def bi-arity $(srcdir)/move-if-change
1466 ./bi-arity < $(srcdir)/bytecode.def >tmp-bc-arity.h
1467 $(srcdir)/move-if-change tmp-bc-arity.h bc-arity.h
1470 bc-opcode.h: stamp-bcopcode ; @true
1471 stamp-bcopcode : $(srcdir)/bytecode.def bi-opcode $(srcdir)/move-if-change
1472 ./bi-opcode < $(srcdir)/bytecode.def >tmp-bcopcd.h
1473 $(srcdir)/move-if-change tmp-bcopcd.h bc-opcode.h
1474 touch stamp-bcopcode
1476 bc-opname.h: stamp-bcopname ; @true
1477 stamp-bcopname : $(srcdir)/bytecode.def bi-opname $(srcdir)/move-if-change
1478 ./bi-opname < $(srcdir)/bytecode.def >tmp-bcopnm.h
1479 $(srcdir)/move-if-change tmp-bcopnm.h bc-opname.h
1480 touch stamp-bcopname
1482 bytecode.mostlyclean:
1483 -rm -f bc-arity.h bc-opcode.h bc-opname.h
1485 bytecode.distclean bytecode.clean: bytecode.mostlyclean
1486 -rm -f bi-arity bi-opcode bi-opname bi-lexer
1488 bytecode.realclean: bytecode.clean
1489 -rm -f bi-parser.c bi-parser.h
1492 # Remake cpp and protoize.
1494 # Making the preprocessor
1498 cccp: cccp.o cexp.o version.o $(LIBDEPS)
1499 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
1500 cexp.o: $(srcdir)/cexp.c $(CONFIG_H)
1501 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/cexp.c
1502 $(srcdir)/cexp.c: $(srcdir)/cexp.y
1503 cd $(srcdir); $(BISON) -o cexp.c cexp.y
1504 cccp.o: cccp.c $(CONFIG_H) pcp.h version.c config.status
1505 # The reason we use $(libdir)/g++-include rather than using libsubdir
1506 # is for compatibility with the current version of libg++.
1507 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
1508 -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
1509 -DGPLUSPLUS_INCLUDE_DIR=\"$(gxx_include_dir)\" \
1510 -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
1511 -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
1512 -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \
1513 -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
1515 # Note for the stamp targets, we run the program `true' instead of
1516 # having an empty command (nothing following the semicolon).
1518 proto: config.status protoize unprotoize SYSCALLS.c.X
1520 protoize: protoize.o getopt.o getopt1.o getpwd.o version.o $(LIBDEPS)
1521 $(CC) $(ALL_CFLAGS) $(LDFLAGS) \
1522 protoize.o getopt.o getopt1.o getpwd.o version.o $(LIBS) -o protoize
1523 protoize.o: stamp-proto ; @true
1525 unprotoize: unprotoize.o getopt.o getopt1.o getpwd.o version.o $(LIBDEPS)
1526 $(CC) $(ALL_CFLAGS) $(LDFLAGS) \
1527 unprotoize.o getopt.o getopt1.o getpwd.o version.o $(LIBS) \
1529 unprotoize.o: stamp-proto ; @true
1531 stamp-proto: $(srcdir)/protoize.c getopt.h $(CONFIG_H)
1532 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
1533 -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
1534 -DGPLUSPLUS_INCLUDE_DIR=\"$(gxx_include_dir)\" \
1535 -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
1536 -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \
1537 -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
1538 -DSTD_PROTO_DIR=\"$(libsubdir)\" \
1539 -DUNPROTOIZE $(srcdir)/protoize.c
1540 mv protoize.o unprotoize.o
1541 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
1542 -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
1543 -DGPLUSPLUS_INCLUDE_DIR=\"$(gxx_include_dir)\" \
1544 -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
1545 -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \
1546 -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
1547 -DSTD_PROTO_DIR=\"$(libsubdir)\" \
1548 $(srcdir)/protoize.c
1551 getopt.o: $(srcdir)/getopt.c getopt.h
1552 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/getopt.c
1553 getopt1.o: $(srcdir)/getopt1.c getopt.h
1554 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/getopt1.c
1556 # This info describes the target machine, so compile with GCC just built.
1557 SYSCALLS.c.X: $(srcdir)/sys-types.h $(srcdir)/sys-protos.h $(GCC_PASSES) stmp-int-hdrs
1558 -rm -f SYSCALLS.c tmp-SYSCALLS.s
1559 cat $(srcdir)/sys-types.h $(srcdir)/sys-protos.h > SYSCALLS.c
1560 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
1561 -aux-info $@ -S -o tmp-SYSCALLS.s SYSCALLS.c
1562 -rm -f SYSCALLS.c tmp-SYSCALLS.s
1565 test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES)
1566 -rm -f tmp-proto.[cso]
1567 cp $(srcdir)/protoize.c tmp-proto.c
1568 chmod u+w tmp-proto.c
1569 ./protoize -N -B ./ -x getopt.h -c "-B./ -Wall -Wwrite-strings \
1570 $(CFLAGS) $(INCLUDES) \
1571 -DGCC_INCLUDE_DIR=0 \
1572 -DGPLUSPLUS_INCLUDE_DIR=0 \
1573 -DCROSS_INCLUDE_DIR=0 \
1574 -DTOOL_INCLUDE_DIR=0 \
1575 -DSTD_PROTO_DIR=0" tmp-proto.c
1576 @echo '**********' Expect 400 lines of differences.
1577 -diff $(srcdir)/protoize.c tmp-proto.c > tmp-proto.diff
1578 -wc -l tmp-proto.diff
1579 ./unprotoize -N -x getopt.h -c "-B./ -Wall -Wwrite-strings \
1580 $(CFLAGS) $(INCLUDES) \
1581 -DGCC_INCLUDE_DIR=0 \
1582 -DGPLUSPLUS_INCLUDE_DIR=0 \
1583 -DCROSS_INCLUDE_DIR=0 \
1584 -DTOOL_INCLUDE_DIR=0 \
1585 -DSTD_PROTO_DIR=0" tmp-proto.c
1586 @echo Expect zero differences.
1587 diff $(srcdir)/protoize.c tmp-proto.c | cat
1588 -rm -f tmp-proto.[cso]
1590 # Build the include directory. The stamp files are stmp-* rather than
1591 # stamp-* so that mostlyclean does not force the include directory to
1594 # Build the include directory except for float.h (which depends upon
1596 stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h objc-headers
1597 # Copy in the headers provided with gcc.
1598 # The sed command gets just the last file name component;
1599 # this is necessary because VPATH could add a dirname.
1600 # Using basename would be simpler, but some systems don't have it.
1603 for file in $(USER_H); do \
1604 realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
1605 rm -f $$objdir/include/$$realfile; \
1606 cp ginclude/$$realfile $$objdir/include; \
1607 chmod a+r $$objdir/include/$$realfile; \
1609 rm -f include/limits.h
1610 cp xlimits.h include/limits.h
1611 chmod a+r include/limits.h
1612 # Install the README
1613 rm -f include/README
1614 cp $(srcdir)/README-fixinc include/README
1615 chmod a+r include/README
1618 # Build the complete include directory.
1619 stmp-headers: stmp-int-hdrs gfloat.h
1620 rm -f include/float.h
1621 cp gfloat.h include/float.h
1622 chmod a+r include/float.h
1625 # Build fixed copies of system files.
1626 stmp-fixinc: $(srcdir)/$(FIXINCLUDES) gsyslimits.h
1629 if [ x$(FIXINCLUDES) != xMakefile.in ]; \
1631 for dir in $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS); do \
1634 $(SHELL) $(srcdir)/$(FIXINCLUDES) include $$dir; \
1639 rm -f include/syslimits.h
1640 if [ -f include/limits.h ]; then \
1641 mv include/limits.h include/syslimits.h; \
1643 cp $(srcdir)/gsyslimits.h include/syslimits.h; \
1645 chmod a+r include/syslimits.h
1648 # copy objc header files into build directory
1649 objc-headers: stmp-fixinc
1650 if [ -d include ]; then true; else mkdir include; fi
1651 if [ -d objc ]; then true; else mkdir objc; fi
1653 srcdir1=`cd $(srcdir); pwd`; \
1655 $(MAKE) -f $${srcdir1}/objc/Makefile copy-headers \
1656 srcdir=$${srcdir1} tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
1657 GCC_FOR_TARGET="$${thisdir1}/xgcc -B$${thisdir1}/" \
1658 GCC_CFLAGS="$(GCC_CFLAGS)" incinstalldir=$${thisdir1}/include
1661 # Files related to the fixproto script.
1663 deduced.h: $(GCC_PASSES) $(srcdir)/scan-types.sh stmp-int-hdrs
1664 CC="$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -I. -I$(srcdir) -Iinclude -I${SYSTEM_HEADER_DIR}"; \
1666 $(SHELL) $(srcdir)/scan-types.sh "$(srcdir)" >tmp-deduced.h
1667 mv tmp-deduced.h deduced.h
1669 gen-protos: gen-protos.o scan.o $(HOST_LIBDEPS)
1670 ${HOST_CC} $(HOST_CFLAGS) $(HOST_LDFLAGS) -o gen-protos \
1671 gen-protos.o scan.o $(HOST_LIBS)
1673 gen-protos.o: gen-protos.c scan.h hconfig.h
1674 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gen-protos.c
1676 scan.o: scan.c scan.h hconfig.h
1677 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan.c
1679 xsys-protos.h: $(GCC_PASSES) $(srcdir)/sys-protos.h deduced.h gen-protos Makefile
1680 cat deduced.h $(srcdir)/sys-protos.h > tmp-fixtmp.c
1681 mv tmp-fixtmp.c fixtmp.c
1682 $(GCC_FOR_TARGET) fixtmp.c -w -U__SIZE_TYPE__ -U__PTRDIFF_TYPE_ -U__WCHAR_TYPE__ -E \
1683 | sed -e 's/ / /g' -e 's/ *(/ (/g' -e 's/ [ ]*/ /g' -e 's/( )/()/' \
1684 | ./gen-protos >xsys-protos.hT
1685 mv xsys-protos.hT xsys-protos.h
1688 fix-header: fix-header.o scan-decls.o scan.o xsys-protos.h $(HOST_LIBDEPS)
1689 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o fix-header \
1690 fix-header.o scan-decls.o scan.o $(HOST_LIBS)
1692 fix-header.o: fix-header.c obstack.h scan.h xsys-protos.h hconfig.h
1693 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/fix-header.c
1695 scan-decls.o: scan-decls.c scan.h hconfig.h
1696 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan-decls.c
1698 # stmp-fixproto depends on this, not on fix-header directly.
1699 # The idea is to make sure fix-header gets built,
1700 # but not rerun fixproto after each stage
1701 # just because fix-header's mtime has changed.
1702 fixhdr.ready: fix-header
1703 -if [ -f fixhdr.ready ] ; then \
1706 touch fixhdr.ready; \
1709 # stmp-headers is to make sure fixincludes has already finished.
1710 # The if statement is so that we don't run fixproto a second time
1711 # if it has already been run on the files in `include'.
1712 stmp-fixproto: fixhdr.ready fixproto stmp-headers
1713 @echo "Various warnings and error messages from fixproto are normal"
1714 -if [ -d include ] ; then true; else mkdir include; fi
1715 -if [ -f include/fixed ] ; then true; \
1717 : This line works around a 'make' bug in BSDI 1.1.; \
1718 CPP="$(GCC_FOR_TARGET) -E"; export CPP; \
1719 FIXPROTO_DEFINES="$(FIXPROTO_DEFINES)"; export FIXPROTO_DEFINES; \
1720 $(SHELL) ${srcdir}/fixproto include include $(SYSTEM_HEADER_DIR); \
1721 touch include/fixed; \
1725 # Remake the info files.
1728 info: $(srcdir)/cpp.info $(srcdir)/gcc.info lang.info
1730 $(srcdir)/cpp.info: cpp.texi
1731 cd $(srcdir); $(MAKEINFO) cpp.texi
1733 $(srcdir)/gcc.info: gcc.texi extend.texi install.texi invoke.texi \
1734 md.texi rtl.texi tm.texi
1735 cd $(srcdir); $(MAKEINFO) gcc.texi
1737 dvi: $(srcdir)/gcc.dvi $(srcdir)/cpp.dvi lang.dvi
1739 # This works with GNU Make's default rule.
1740 $(srcdir)/gcc.dvi: gcc.texi extend.texi install.texi invoke.texi \
1741 md.texi rtl.texi tm.texi
1744 # This works with GNU Make's default rule.
1745 $(srcdir)/cpp.dvi: cpp.texi
1748 $(srcdir)/INSTALL: install1.texi install.texi
1749 $(MAKEINFO) -D INSTALLONLY --no-header --no-split \
1750 `echo $(srcdir)/install1.texi | sed 's,^\./,,'`
1752 # Deletion of files made during compilation.
1753 # There are four levels of this:
1754 # `mostlyclean', `clean', `distclean' and `realclean'.
1755 # `mostlyclean' is useful while working on a particular type of machine.
1756 # It deletes most, but not all, of the files made by compilation.
1757 # It does not delete libgcc.a or its parts, so it won't have to be recompiled.
1758 # `clean' deletes everything made by running `make all'.
1759 # `distclean' also deletes the files made by config.
1760 # `realclean' also deletes everything that could be regenerated automatically.
1761 # We remove as much from the language subdirectories as we can
1762 # (less duplicated code).
1765 mostlyclean: bytecode.mostlyclean lang.mostlyclean
1766 -rm -f $(STAGESTUFF)
1767 # Clean the objc subdir if we created one.
1768 if [ -d objc ]; then \
1769 srcdir1=`cd $(srcdir); pwd`; \
1770 cd objc; $(MAKE) -f $$srcdir1/objc/Makefile mostlyclean; \
1773 # Delete the temporary source copies for cross compilation.
1774 -rm -f $(HOST_PREFIX_1)rtl.c $(HOST_PREFIX_1)rtlanal.c
1775 -rm -f $(HOST_PREFIX_1)alloca.c $(HOST_PREFIX_1)malloc.c
1776 -rm -f $(HOST_PREFIX_1)obstack.c
1777 # Delete the temp files made in the course of building libgcc.a.
1778 -rm -f tmplibgcc* tmpcopy xlimits.h
1779 for name in $(LIB1FUNCS); do rm -f $${name}.c; done
1780 # Delete other temporary files.
1781 -rm -f tmp-float.h tmp-gcc.xtar.gz
1782 -rm -f tmp-foo1 tmp-foo2 tmp-proto.* tmp-unproto.1 tmp-SYSCALLS.s
1783 -rm -f tmp-c-parse.y tmp-objc-parse.y tmp-gperf.h
1784 -rm -f tmp-specs t-float.h-cross tmp-xlimits.h
1785 -rm -f tmp-fixtmp.c xsys-protos.hT
1786 # Delete the stamp files.
1787 -rm -f stamp-* tmp-*
1788 -rm -f */stamp-* */tmp-*
1789 # Delete debugging dump files.
1790 -rm -f *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
1791 -rm -f *.dbr *.jump2 *.sched *.cse2 *.sched2 *.stack
1792 -rm -f */*.greg */*.lreg */*.combine */*.flow */*.cse */*.jump */*.rtl
1793 -rm -f */*.tree */*.loop */*.dbr */*.jump2 */*.sched */*.cse2
1794 -rm -f */*.sched2 */*.stack
1795 # Delete some files made during installation.
1796 -rm -f specs gfloat.h float.h-* enquire SYSCALLS.c.X SYSCALLS.c
1797 -rm -f collect collect2 mips-tfile mips-tdump alloca.s
1798 # Delete files generated for fixproto
1799 -rm -rf fix-header xsys-protos.h deduced.h tmp-deduced.h \
1800 gen-protos fixproto.list fixtmp.* fixhdr.ready
1801 # Delete unwanted output files from TeX.
1802 -rm -f *.toc *.log *.vr *.fn *.cp *.tp *.ky *.pg
1803 -rm -f */*.toc */*.log */*.vr */*.fn */*.cp */*.tp */*.ky */*.pg
1804 # Delete sorted indices we don't actually use.
1805 -rm -f gcc.vrs gcc.kys gcc.tps gcc.pgs gcc.fns
1806 # Delete core dumps.
1809 # Delete all files made by compilation
1810 # that don't exist in the distribution.
1811 clean: mostlyclean bytecode.clean lang.clean
1812 # It may not be quite desirable to delete unprotoize.c here,
1813 # but the spec for `make clean' requires it.
1814 # Using unprotoize.c is not quite right in the first place,
1815 # but what better way is there?
1816 -rm -f libgcc.a libgcc1.a libgcc2.a libgcc2.ready
1817 -rm -f libgcc1.null $(LIB2FUNCS_EXTRA)
1820 -if [ -f md.pre-cpp ]; then \
1823 # Delete the include directory.
1824 -rm -rf stmp-* include objc-headers
1826 # Delete files used by the "multilib" facility (including libgcc subdirs).
1827 -rm -f multilib.h tmpmultilib*
1828 -if [ "x$(MULTILIB_DIRNAMES)" != x ] ; then \
1829 rm -rf $(MULTILIB_DIRNAMES); \
1830 else if [ "x$(MULTILIB_OPTIONS)" != x ] ; then \
1831 rm -rf `echo $(MULTILIB_OPTIONS) | sed -e 's/\// /g'`; \
1834 # Delete all files that users would normally create
1835 # while building and installing GCC.
1836 distclean: clean bytecode.distclean lang.distclean
1837 -rm -f tm.h aux-output.c config.h config.status tconfig.h hconfig.h
1838 -rm -f md md.pre-cpp
1839 -rm -f Makefile *.oaux
1840 -rm -fr stage1 stage2 stage3 stage4
1841 -rm -f */stage1 */stage2 */stage3 */stage4 */include
1842 -rm -f objc-parse.output
1843 -rm -f c-parse.output
1845 # Delete anything likely to be found in the source directory
1846 # that shouldn't be in the distribution.
1847 extraclean: distclean lang.extraclean
1848 -rm -rf =* ./"#"* *~* config/=* config/"#"* config/*~*
1849 -rm -f patch* *.orig *.rej config/patch* config/*.orig config/*.rej
1850 -rm -f config/*/=* config/*/"#"* config/*/*~*
1851 -rm -f config/*/*.orig config/*/*.rej
1852 -rm -f *.dvi *.oaux *.d *.[zZ] *.gz
1853 -rm -f *.tar *.xtar *diff *.diff.* *.tar.* *.xtar.* *diffs
1854 -rm -f *lose config/*lose config/*/*lose
1855 -rm -f *.s *.s[0-9] *.i install1.texi config/ChangeLog
1856 -rm -f */=* */"#"* */*~*
1857 -rm -f */patch* */*.orig */*.rej
1858 -rm -f */*.dvi */*.oaux */*.d */*.[zZ] */*.gz
1859 -rm -f */*.tar */*.xtar */*diff */*.diff.* */*.tar.* */*.xtar.* */*diffs
1860 -rm -f */*lose */*.s */*.s[0-9] */*.i
1862 # Get rid of every file that's generated from some other file.
1863 # Most of these files ARE PRESENT in the GCC distribution.
1864 realclean: distclean bytecode.realclean lang.realclean
1865 -rm -f c-parse.y c-gperf.h objc-parse.y
1866 -rm -f objc-parse.c objc-parse.output
1867 -rm -f c-parse.c c-parse.h c-parse.output
1868 -rm -f cexp.c cexp.output TAGS
1869 -rm -f cpp.info* cpp.??s cpp.*aux
1870 -rm -f gcc.info* gcc.??s gcc.*aux
1872 # Entry points `install' and `uninstall'.
1873 # Also use `install-collect2' to install collect2 when the config files don't.
1875 # The semicolon is to prevent the install.sh -> install default rule
1876 # from doing anything. Having it run true helps avoid problems and
1877 # noise from versions of make which don't like to have null commands.
1878 install: $(INSTALL_TARGET) ; @true
1880 # Copy the compiler files into directories where they will be run.
1881 install-normal: install-common $(INSTALL_HEADERS) $(INSTALL_LIBGCC) \
1882 install-man install-info lang.install-normal
1884 # Do nothing while making gcc with a cross-compiler. The person who
1885 # makes gcc for the target machine has to know how to put a complete
1886 # gcc together by hand.
1887 install-build: force
1888 @echo You have to install gcc on your target machine by hand.
1890 # Run this on the target machine
1891 # to finish installation of cross compiler.
1892 install-cross-rest: install-float-h-cross
1894 # Install float.h for cross compiler.
1895 # Run this on the target machine!
1896 install-float-h-cross: install-dir
1897 # if [ -f enquire ] ; then true; else false; fi
1898 # Note: don't use -. We should fail right away if enquire was not made.
1899 ./enquire -f > $(tmpdir)/float.h
1900 -rm -f $(libsubdir)/include/float.h
1901 $(INSTALL_DATA) $(tmpdir)/float.h $(libsubdir)/include/float.h
1902 -rm -f $(tmpdir)/float.h
1903 chmod a-x $(libsubdir)/include/float.h
1905 # Create the installation directory.
1907 -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi
1908 -if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib ; fi
1909 # This dir isn't currently searched by cpp.
1910 # -if [ -d $(libdir)/gcc-lib/include ] ; then true ; else mkdir $(libdir)/gcc-lib/include ; fi
1911 -if [ -d $(libdir)/gcc-lib/$(target) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target) ; fi
1912 -if [ -d $(libdir)/gcc-lib/$(target)/$(version) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target)/$(version) ; fi
1913 -if [ -d $(libdir)/gcc-lib/$(target)/$(version)/include ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target)/$(version)/include ; fi
1914 -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
1915 -if [ -d $(includedir) ] ; then true ; else mkdir $(includedir) ; fi
1916 -if [ -d $(tooldir) ] ; then true ; else mkdir $(tooldir) ; fi
1917 -if [ -d $(assertdir) ] ; then true ; else mkdir $(assertdir) ; fi
1918 -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
1919 # We don't use mkdir -p to create the parents of mandir,
1920 # because some systems don't support it.
1921 # Instead, we use this technique to create the immediate parent of mandir.
1922 -parent=`echo $(mandir)|sed -e 's@/[^/]*$$@@'`; \
1923 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
1924 -if [ -d $(mandir) ] ; then true ; else mkdir $(mandir) ; fi
1926 # Install the compiler executables built during cross compilation.
1927 install-common: native install-dir xgcc $(EXTRA_PARTS) lang.install-common
1928 for file in $(COMPILERS); do \
1929 if [ -f $$file ] ; then \
1930 rm -f $(libsubdir)/$$file; \
1931 $(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \
1935 for file in $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2) ..; do \
1936 if [ x"$$file" != x.. ]; then \
1937 rm -f $(libsubdir)/$$file; \
1938 $(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \
1941 for file in $(EXTRA_PARTS) ..; do \
1942 if [ x"$$file" != x.. ]; then \
1943 rm -f $(libsubdir)/$$file; \
1944 $(INSTALL_DATA) $$file $(libsubdir)/$$file; \
1947 # Don't mess with specs if it doesn't exist yet.
1948 -if [ -f specs ] ; then \
1949 rm -f $(libsubdir)/specs; \
1950 $(INSTALL_DATA) specs $(libsubdir)/specs; \
1952 # Install the driver program as $(target)-gcc
1953 # and also as either gcc (if native) or $(tooldir)/bin/gcc.
1954 -if [ -f gcc-cross ] ; then \
1955 rm -f $(bindir)/$(target)-gcc; \
1956 $(INSTALL_PROGRAM) gcc-cross $(bindir)/$(target)-gcc; \
1957 if [ -d $(tooldir)/bin/. ] ; then \
1958 rm -f $(tooldir)/bin/gcc; \
1959 $(INSTALL_PROGRAM) gcc-cross $(tooldir)/bin/gcc; \
1962 rm -f $(bindir)/gcc; \
1963 $(INSTALL_PROGRAM) xgcc $(bindir)/gcc; \
1964 rm -f $(bindir)/$(target)-gcc-1; \
1965 ln $(bindir)/gcc $(bindir)/$(target)-gcc-1; \
1966 mv $(bindir)/$(target)-gcc-1 $(bindir)/$(target)-gcc; \
1968 # Install protoize if it was compiled.
1969 -if [ -f protoize ]; \
1971 rm -f $(bindir)/protoize; \
1972 $(INSTALL_PROGRAM) protoize $(bindir)/protoize; \
1973 rm -f $(bindir)/unprotoize; \
1974 $(INSTALL_PROGRAM) unprotoize $(bindir)/unprotoize; \
1975 rm -f $(libsubdir)/SYSCALLS.c.X; \
1976 $(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
1977 chmod a-x $(libsubdir)/SYSCALLS.c.X; \
1979 -rm -f $(libsubdir)/cpp
1980 $(INSTALL_PROGRAM) cpp $(libsubdir)/cpp
1982 # Install the info files.
1983 install-info: doc install-dir lang.install-info
1984 -rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
1985 cd $(srcdir); for f in cpp.info* gcc.info*; \
1986 do $(INSTALL_DATA) $$f $(infodir)/$$f; done
1987 -chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info*
1989 # Install the man pages.
1990 install-man: install-dir $(srcdir)/gcc.1 $(srcdir)/cccp.1 lang.install-man
1991 -rm -f $(mandir)/gcc$(manext)
1992 -$(INSTALL_DATA) $(srcdir)/gcc.1 $(mandir)/gcc$(manext)
1993 -chmod a-x $(mandir)/gcc$(manext)
1994 -rm -f $(mandir)/cccp$(manext)
1995 -$(INSTALL_DATA) $(srcdir)/cccp.1 $(mandir)/cccp$(manext)
1996 -chmod a-x $(mandir)/cccp$(manext)
1998 # Install the library.
1999 install-libgcc: libgcc.a install-dir
2000 -if [ -f libgcc.a ] ; then \
2001 rm -f $(libsubdir)/libgcc.a; \
2002 $(INSTALL_DATA) libgcc.a $(libsubdir)/libgcc.a; \
2003 if $(RANLIB_TEST) ; then \
2004 (cd $(libsubdir); $(RANLIB) libgcc.a); else true; fi; \
2005 chmod a-x $(libsubdir)/libgcc.a; \
2008 # Install multiple versions of libgcc.a.
2009 install-multilib: stmp-multilib install-dir
2010 for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \
2011 dir=`echo $$i | sed -e 's/;.*$$//'`; \
2012 if [ -d $(libsubdir)/$${dir} ]; then true; else mkdir $(libsubdir)/$${dir}; fi; \
2013 rm -f $(libsubdir)/$${dir}/libgcc.a; \
2014 $(INSTALL_DATA) $${dir}/libgcc.a $(libsubdir)/$${dir}/libgcc.a; \
2015 if $(RANLIB_TEST); then \
2016 (cd $(libsubdir)/$${dir}; $(RANLIB) libgcc.a); else true; fi; \
2017 chmod a-x $(libsubdir)/$${dir}/libgcc.a; \
2020 # Install the objc run time library.
2021 install-libobjc: libobjc.a install-dir
2022 -if [ -f libobjc.a ] ; then \
2023 rm -f $(libsubdir)/libobjc.a; \
2024 $(INSTALL_DATA) libobjc.a $(libsubdir)/libobjc.a; \
2025 if $(RANLIB_TEST) ; then \
2026 (cd $(libsubdir); $(RANLIB) libobjc.a); else true; fi; \
2027 chmod a-x $(libsubdir)/libobjc.a; \
2030 # Install all the header files built in the include subdirectory.
2031 install-headers: install-include-dir $(INSTALL_HEADERS_DIR) install-assert-h
2032 # Fix symlinks to absolute paths in the installed include directory to
2033 # point to the installed directory, not the build directory.
2034 -files=`cd $(libsubdir)/include; find . -type l -print 2>/dev/null`; \
2035 if [ $$? -eq 0 ]; then \
2036 dir=`cd include; pwd`; \
2037 for i in $$files; do \
2038 dest=`ls -ld $(libsubdir)/include/$$i | sed -n 's/.*-> //p'`; \
2039 if expr "$$dest" : "$$dir.*" > /dev/null; then \
2040 rm -f $(libsubdir)/include/$$i; \
2041 ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(libsubdir)/include/$$i; \
2046 # Create or recreate the gcc private include file directory.
2047 install-include-dir: install-dir
2048 -rm -rf $(libsubdir)/include
2049 mkdir $(libsubdir)/include
2050 -chmod a+rx $(libsubdir)/include
2052 # Install the include directory using tar.
2053 install-headers-tar: stmp-headers $(STMP_FIXPROTO) install-include-dir
2055 tar -cf - .; exit 0) | (cd $(libsubdir)/include; tar $(TAROUTOPTS) - )
2056 # /bin/sh on some systems returns the status of the first tar,
2057 # and that can lose with GNU tar which always writes a full block.
2058 # So use `exit 0' to ignore its exit status.
2060 # Install the include directory using cpio.
2061 install-headers-cpio: stmp-headers $(STMP_FIXPROTO) install-include-dir
2062 (cd include; find . -print) | (cd include; cpio -pdum $(libsubdir)/include)
2064 # Put assert.h where it won't override GNU libc's assert.h.
2065 # It goes in a dir that is searched after GNU libc's headers;
2066 # thus, the following conditionals are no longer needed.
2067 # But it's not worth deleting them now.
2068 ## Don't replace the assert.h already there if it is not from GCC.
2069 ## This code would be simpler if it tested for -f ... && ! grep ...
2070 ## but supposedly the ! operator is missing in sh on some systems.
2071 install-assert-h: assert.h install-dir
2072 if [ -f $(assertdir)/assert.h ]; \
2074 if grep "__eprintf" $(assertdir)/assert.h >/dev/null; \
2076 rm -f $(assertdir)/assert.h; \
2077 $(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
2078 chmod a-x $(assertdir)/assert.h; \
2082 rm -f $(assertdir)/assert.h; \
2083 $(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
2084 chmod a-x $(assertdir)/assert.h; \
2087 # Use this target to install the program `collect2' under the name `ld'.
2088 install-collect2: collect2 install-dir
2089 $(INSTALL_PROGRAM) collect2 $(libsubdir)/ld
2090 # Install the driver program as $(libsubdir)/gcc for collect2.
2091 $(INSTALL_PROGRAM) xgcc $(libsubdir)/gcc
2093 # Cancel installation by deleting the installed files.
2094 uninstall: lang.uninstall
2095 -rm -rf $(libsubdir)
2096 -rm -rf $(bindir)/gcc
2097 -rm -rf $(bindir)/protoize
2098 -rm -rf $(bindir)/unprotoize
2099 -rm -rf $(mandir)/gcc$(manext)
2100 -rm -rf $(mandir)/cccp$(manext)
2101 -rm -rf $(mandir)/protoize$(manext)
2102 -rm -rf $(mandir)/unprotoize$(manext)
2104 # These exist for maintenance purposes.
2106 # Update the tags table.
2110 mv -f c-parse.[ch] objc-parse.c cexp.c =*.[chy] temp; \
2111 etags *.y *.h *.c; \
2115 # Create the distribution tar file.
2116 #dist: gcc-$(version).tar.gz
2119 gcc.xtar.gz: gcc.xtar
2120 gzip --best < gcc.xtar > tmp-gcc.xtar.gz
2121 mv tmp-gcc.xtar.gz gcc.xtar.gz
2123 #gcc-$(version).tar.gz: gcc-$(version).tar
2124 # gzip < gcc-$(version).tar > gcc-$(version).tar.gz
2126 #gcc-$(version).tar:
2128 # Make the distribution.
2129 tar -chf gcc.xtar gcc-$(version)
2131 # This target exists to do the initial work before the language specific
2133 distdir-start: doc $(srcdir)/INSTALL c-parse.y $(srcdir)/c-gperf.h objc-parse.y \
2134 c-parse.c objc-parse.c cexp.c
2135 @if grep -s "for version ${mainversion}" gcc.texi > /dev/null; \
2137 else echo "You must update the version number in \`gcc.texi'"; sleep 10;\
2139 # Update the version number in README
2140 awk '$$1 " " $$2 " " $$3 == "This directory contains" \
2141 { $$6 = version; print $$0 } \
2142 $$1 " " $$2 " " $$3 != "This directory contains"' \
2143 version=$(version) README > tmp.README
2144 mv tmp.README README
2145 -rm -rf gcc-$(version) tmp
2146 # Put all the files in a temporary subdirectory
2147 # which has the name that we want to have in the tar file.
2152 for file in *[0-9a-zA-Z+]; do \
2153 ln $$file tmp > /dev/null 2>&1 || cp $$file tmp; \
2156 for file in *[0-9a-zA-Z+]; do \
2157 if test -d $$file && test "$$file" != RCS; then \
2158 mkdir ../tmp/config/$$file; \
2160 for subfile in *[0-9a-zA-Z+]; do \
2161 ln $$subfile ../../tmp/config/$$file >/dev/null 2>&1 \
2162 || cp $$subfile ../../tmp/config/$$file; \
2166 ln $$file ../tmp/config >/dev/null 2>&1 \
2167 || cp $$file ../tmp/config; \
2171 for file in *[0-9a-zA-Z+]; do \
2172 ln $$file ../tmp/ginclude >/dev/null 2>&1 || cp $$file ../tmp/ginclude; \
2175 for file in *[0-9a-zA-Z+]; do \
2176 ln $$file ../tmp/objc >/dev/null 2>&1 || cp $$file ../tmp/objc; \
2180 # Finish making `distdir', after the languages have done their thing.
2182 mv tmp gcc-$(version)
2183 # Get rid of everything we don't want in the distribution. We'd want
2184 # this to use Makefile.in, but it doesn't have the `lang.foo' targets
2186 cd gcc-$(version); make extraclean
2188 distdir: distdir-start lang.distdir distdir-finish
2190 # make diff oldversion=M.N
2191 # creates a diff file between an older distribution and this one.
2192 # The -P option assumes this is GNU diff.
2194 diff -rc2P -x c-parse.y -x c-parse.c -x c-parse.h -x c-gperf.h \
2195 -x cexp.c -x bi-parser.c -x objc-parse.y -x objc-parse.c \
2197 -x "gcc.??" -x "gcc.??s" -x gcc.aux -x "gcc.info*" \
2198 -x "cpp.??" -x "cpp.??s" -x cpp.aux -x "cpp.info*" \
2199 $(LANG_DIFF_EXCLUDES) \
2200 gcc-$(oldversion) gcc-$(version) > diffs
2202 # do make -f ../gcc/Makefile maketest DIR=../gcc
2203 # in the intended test directory to make it a suitable test directory.
2204 # THIS IS OBSOLETE; use the -srcdir operand in configure instead.
2206 ln -s $(DIR)/*.[chy] .
2207 ln -s $(DIR)/configure .
2208 ln -s $(DIR)/*.def .
2210 ln -s $(DIR)/.gdbinit .
2211 ln -s $(DIR)/$(FIXINCLUDES) .
2212 -ln -s $(DIR)/bison.simple .
2213 ln -s $(DIR)/config .
2214 ln -s $(DIR)/move-if-change .
2215 # The then and else were swapped to avoid a problem on Ultrix.
2216 if [ ! -f Makefile ] ; then ln -s $(DIR)/Makefile .; else false; fi
2217 -rm tm.h aux-output.c config.h md
2219 # You must then run config to set up for compilation.
2222 # Only build the C compiler for stage1, because that is the only one that
2223 # we can guarantee will build with the native compiler, and also it is the
2224 # only thing useful for building stage2.
2225 $(MAKE) CC="$(CC)" libdir=$(libdir) LANGUAGES=c
2227 # This used to define ALLOCA as empty, but that would lead to bad results
2228 # for a subsequent `make install' since that would not have ALLOCA empty.
2229 # To prevent `make install' from compiling alloca.o and then relinking cc1
2230 # because alloca.o is newer, we permit these recursive makes to compile
2231 # alloca.o. Then cc1 is newer, so it won't have to be relinked.
2232 $(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
2234 $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
2237 $(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
2239 $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
2242 $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
2244 # Compare the object files in the current directory with those in the
2247 # ./ avoids bug in some versions of tail.
2249 for file in *.o; do \
2250 tail +16c ./$$file > tmp-foo1; \
2251 tail +16c stage2/$$file > tmp-foo2 2>/dev/null \
2252 && (cmp tmp-foo1 tmp-foo2 || echo $$file differs); \
2254 for dir in tmp-foo $(SUBDIRS); do \
2255 if [ "`echo $$dir/*.o`" != "$$dir/*.o" ] ; then \
2256 for file in $$dir/*.o; do \
2257 tail +16c ./$$file > tmp-foo1; \
2258 tail +16c stage2/$$file > tmp-foo2 2>/dev/null \
2259 && (cmp tmp-foo1 tmp-foo2 || echo $$file differs); \
2265 # Similar, but compare with stage3 directory
2267 for file in *.o; do \
2268 tail +16c ./$$file > tmp-foo1; \
2269 tail +16c stage3/$$file > tmp-foo2 2>/dev/null \
2270 && (cmp tmp-foo1 tmp-foo2 || echo $$file differs); \
2272 for dir in tmp-foo $(SUBDIRS); do \
2273 if [ "`echo $$dir/*.o`" != "$$dir/*.o" ] ; then \
2274 for file in $$dir/*.o; do \
2275 tail +16c ./$$file > tmp-foo1; \
2276 tail +16c stage3/$$file > tmp-foo2 2>/dev/null \
2277 && (cmp tmp-foo1 tmp-foo2 || echo $$file differs); \
2283 # Compare the object files in the current directory with those in the
2284 # stage2 directory. Use gnu cmp (diffutils v2.4 or later) to avoid
2285 # running tail and the overhead of twice copying each object file.
2288 for file in *.o; do \
2289 cmp --ignore-initial=16 $$file stage2/$$file || true ; \
2291 for dir in tmp-foo $(SUBDIRS); do \
2292 if [ "`echo $$dir/*.o`" != "$$dir/*.o" ] ; then \
2293 for file in $$dir/*.o; do \
2294 cmp --ignore-initial=16 $$file stage2/$$file || true ; \
2299 # Similar, but compare with stage3 directory
2301 for file in *.o; do \
2302 cmp --ignore-initial=16 $$file stage3/$$file || true ; \
2304 for dir in tmp-foo $(SUBDIRS); do \
2305 if [ "`echo $$dir/*.o`" != "$$dir/*.o" ] ; then \
2306 for file in $$dir/*.o; do \
2307 cmp --ignore-initial=16 $$file stage3/$$file || true ; \
2312 # Copy the object files from a particular stage into a subdirectory.
2314 -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
2315 -for dir in . $(SUBDIRS) ; \
2317 if [ -d stage1/$$dir ] ; then true ; else mkdir stage1/$$dir ; fi ; \
2319 -mv $(STAGESTUFF) stage1
2320 -rm -f stage1/libgcc.a
2322 -if $(RANLIB_TEST) ; then $(RANLIB) stage1/libgcc.a; else true; fi
2323 stage1: force stage1-start lang.stage1
2326 -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
2327 -for dir in . $(SUBDIRS) ; \
2329 if [ -d stage2/$$dir ] ; then true ; else mkdir stage2/$$dir ; fi ; \
2331 -mv $(STAGESTUFF) stage2
2332 -rm -f stage2/libgcc.a
2334 -if $(RANLIB_TEST) ; then $(RANLIB) stage2/libgcc.a; else true; fi
2335 stage2: force stage2-start lang.stage2
2338 -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
2339 -for dir in . $(SUBDIRS) ; \
2341 if [ -d stage3/$$dir ] ; then true ; else mkdir stage3/$$dir ; fi ; \
2343 -mv $(STAGESTUFF) stage3
2344 -rm -f stage3/libgcc.a
2346 -if $(RANLIB_TEST) ; then $(RANLIB) stage3/libgcc.a; else true; fi
2347 stage3: force stage3-start lang.stage3
2350 -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
2351 -for dir in . $(SUBDIRS) ; \
2353 if [ -d stage4/$$dir ] ; then true ; else mkdir stage4/$$dir ; fi ; \
2355 -mv $(STAGESTUFF) stage4
2356 -rm -f stage4/libgcc.a
2358 -if $(RANLIB_TEST) ; then $(RANLIB) stage4/libgcc.a; else true; fi
2359 stage4: force stage4-start lang.stage4
2361 # Copy just the executable files from a particular stage into a subdirectory,
2362 # and delete the object files. Use this if you're just verifying a version
2363 # that is pretty sure to work, and you are short of disk space.
2365 -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
2366 -mv $(GCC_PARTS) stage1
2367 -rm -f stage1/libgcc.a
2368 -cp libgcc.a stage1 && $(RANLIB) stage1/libgcc.a
2372 -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
2373 -mv $(GCC_PARTS) stage2
2374 -rm -f stage2/libgcc.a
2375 -cp libgcc.a stage2 && $(RANLIB) stage2/libgcc.a
2379 -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
2380 -mv $(GCC_PARTS) stage3
2381 -rm -f stage3/libgcc.a
2382 -cp libgcc.a stage3 && $(RANLIB) stage3/libgcc.a
2386 -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
2387 -mv $(GCC_PARTS) stage4
2388 -rm -f stage4/libgcc.a
2389 -cp libgcc.a stage4 && $(RANLIB) stage4/libgcc.a
2392 #In GNU Make, ignore whether `stage*' exists.
2393 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2394 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4