home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gnat-2.06-src.tgz / tar.out / fsf / gnat / Makefile.in < prev    next >
Makefile  |  1996-09-28  |  93KB  |  2,418 lines

  1. # Makefile for GNU C compiler.
  2. #   Copyright (C) 1987, 88, 90, 91, 92, 93, 1994 Free Software Foundation, Inc.
  3.  
  4. #This file is part of GNU CC.
  5.  
  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)
  9. #any later version.
  10.  
  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.
  15.  
  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.
  19.  
  20. # The targets for external use include:
  21. # all, doc, proto, install, install-cross, install-cross-rest,
  22. # uninstall, TAGS, mostlyclean, clean, distclean, maintainer-clean,
  23. # stage1, stage2, stage3, stage4.
  24.  
  25. # Suppress smart makes who think they know how to automake Yacc files
  26. .y.c:
  27.  
  28. # Variables that exist for you to override.
  29. # See below for how to change them for certain systems.
  30.  
  31. # List of language subdirectories.
  32. # This is overridden by configure.
  33. SUBDIRS =
  34.  
  35. # Selection of languages to be made.
  36. # This is overridden by configure.
  37. LANGUAGES = c objective-c proto
  38.  
  39. ALLOCA =
  40. ALLOCA_FLAGS =
  41. ALLOCA_FINISH = true
  42.  
  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.
  48. XCFLAGS =
  49. CFLAGS = -g
  50. BOOT_CFLAGS = $(OPTIMIZE) $(CFLAGS)
  51. # These exists to be overridden by the x-* and t-* files, respectively.
  52. X_CFLAGS =
  53. T_CFLAGS =
  54.  
  55. X_CPPFLAGS =
  56. T_CPPFLAGS =
  57.  
  58. CC = cc
  59. BISON = bison
  60. BISONFLAGS =
  61. LEX = flex
  62. LEXFLAGS =
  63. AR = ar
  64. OLDAR_FLAGS = qc
  65. AR_FLAGS = rc
  66. SHELL = /bin/sh
  67. # on sysV, define this as cp.
  68. INSTALL = cp
  69. # These permit overriding just for certain files.
  70. INSTALL_PROGRAM = $(INSTALL)
  71. INSTALL_DATA = $(INSTALL)
  72. SYMLINK = cp
  73. # Some systems don't support hardlinks.  For this case, a simple copy
  74. # will achieve the same results for our purposes.
  75. HARDLINK = cp
  76. MAKEINFO = makeinfo
  77. TEXI2DVI = texi2dvi
  78. # For GNUmake: let us decide what gets passed to recursive makes.
  79. MAKEOVERRIDES =
  80.  
  81. # Define this as & to perform parallel make on a Sequent.
  82. # Note that this has some bugs, and it seems currently necessary 
  83. # to compile all the gen* files first by hand to avoid erroneous results.
  84. P =
  85.  
  86. # How to invoke ranlib.
  87. RANLIB = ranlib
  88. # Test to use to see whether ranlib exists on the system.
  89. RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
  90.  
  91. # Compiler to use for compiling libgcc1.a.
  92. # OLDCC should not be the GNU C compiler,
  93. # since that would compile typical libgcc1.a functions such as mulsi3
  94. # into infinite recursions.
  95. OLDCC = cc
  96.  
  97. # CFLAGS for use with OLDCC, for compiling libgcc1.a.
  98. # NOTE: -O does not work on some Unix systems!
  99. CCLIBFLAGS = $(OPTIMIZE)
  100.  
  101. # Version of ar to use when compiling libgcc1.a.
  102. OLDAR = ar
  103.  
  104. # Target to use when installing include directory.  Either
  105. # install-headers-tar install-headers-cpio, or install-headers-cp.
  106. INSTALL_HEADERS_DIR = install-headers-tar
  107.  
  108. # The GCC to use for compiling libgcc2.a, enquire, and cross-test.
  109. # Usually the one we just built.
  110. # Don't use this as a dependency--use $(GCC_PASSES) or $(GCC_PARTS).
  111. XGCC = xgcc
  112. GCC_FOR_TARGET = ./$(XGCC) -B./
  113.  
  114. # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
  115. # It omits XCFLAGS, and specifies -B./.
  116. # It also specifies -I./include to find, e.g., stddef.h.
  117. GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) -I./include
  118.  
  119. # Special flags for compiling enquire.
  120. # We disable optimization to make floating point more reliable.
  121. ENQUIRE_CFLAGS = -DNO_MEM -DNO_LONG_DOUBLE_IO -O0
  122. ENQUIRE_LDFLAGS = $(LDFLAGS)
  123.  
  124. # Tools to use when building a cross-compiler.
  125. # These are used because `configure' appends `cross-make'
  126. # to the makefile when making a cross-compiler.
  127.  
  128. TARGET_TOOLPREFIX = $(tooldir)/bin/
  129. AR_FOR_TARGET = $(TARGET_TOOLPREFIX)ar
  130. AR_FOR_TARGET_FLAGS = rc
  131. RANLIB_FOR_TARGET = $(TARGET_TOOLPREFIX)ranlib
  132. RANLIB_TEST_FOR_TARGET = [ -f $(TARGET_TOOLPREFIX)ranlib ]
  133.  
  134. # Dir to search for system headers.  Overridden by cross-make.
  135. SYSTEM_HEADER_DIR = /usr/include
  136.  
  137. # Control whether to run fixproto.
  138. STMP_FIXPROTO = stmp-fixproto
  139.  
  140. # There may be a premade insn-attrtab.c for this machine.
  141. # (You could rebuild it with genattrtab as usual, but it takes a long time.)
  142. # PREMADE_ATTRTAB is the file name of the file to use.
  143. # PREMADE_ATTRTAB_MD is the md file it corresponds to.
  144. PREMADE_ATTRTAB_MD = Makefile  # Guaranteed not to cmp equal to md.
  145. PREMADE_ATTRTAB = 
  146.  
  147. target= ... `configure' substitutes actual target name here.
  148. xmake_file= ... `configure' substitutes actual x- file name here.
  149. tmake_file= ... `configure' substitutes actual t- file name here.
  150. version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
  151. mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
  152.  
  153. # Directory where sources are, from where we are.
  154. srcdir = .
  155. # Common prefix for installation directories.
  156. # NOTE: This directory must exist when you start installation.
  157. prefix = /ade
  158. # Directory in which to put localized header files. On the systems with
  159. # gcc as the native cc, `local_prefix' may not be `prefix' which is
  160. # `/usr'.
  161. # Similar considerations apply for toolkits located on non-writable storage,
  162. # such as CD-ROM, where we need a completely separate place to put local
  163. # include files.
  164. # NOTE: local_prefix *should not* default from prefix.
  165. local_prefix = /ade
  166. # Directory in which to put host dependent programs and libraries
  167. exec_prefix = $(prefix)
  168. # Directory in which to put the executable for the command `gcc'
  169. bindir = $(exec_prefix)/bin
  170. # Directory in which to put the directories used by the compiler.
  171. libdir = $(exec_prefix)/lib
  172. # Directory in which the compiler finds executables, libraries, etc.
  173. libsubdir = $(libdir)/gcc-lib/$(target)/$(version)
  174. # Directory in which the compiler finds g++ includes.
  175. gxx_include_dir= $(libdir)/g++-include
  176. # Directory to search for site-specific includes.
  177. includedir = $(local_prefix)/include
  178. # assertdir is overridden in cross-make.
  179. # (But this currently agrees with what is in cross-make.)
  180. assertdir = $(tooldir)/include
  181. # where the info files go
  182. infodir = $(prefix)/info
  183. # Extension (if any) to put in installed man-page filename.
  184. manext = .1
  185. # Directory in which to put man pages.
  186. mandir = $(prefix)/man/man1
  187. # Directory in which to find other cross-compilation tools and headers.
  188. # Used in install-cross.
  189. tooldir = $(exec_prefix)/$(target)
  190. # Dir for temp files.
  191. tmpdir = /tmp
  192.  
  193. # Additional system libraries to link with.
  194. CLIB=
  195.  
  196. # Change this to a null string if obstacks are installed in the
  197. # system library.
  198. OBSTACK=obstack.o
  199.  
  200. # Specify the rule for actually making libgcc.a,
  201. LIBGCC = libgcc.a
  202. # and the rule for installing it.
  203. INSTALL_LIBGCC = install-libgcc
  204.  
  205. # Specify the rule for actually making libgcc1.a.
  206. # The value may be empty; that means to do absolutely nothing
  207. # with or for libgcc1.a.
  208. LIBGCC1 = libgcc1.a
  209.  
  210. # Specify the rule for making libgcc1.a for a cross-compiler.
  211. # The default rule assumes that libgcc1.a is supplied by the user.
  212. CROSS_LIBGCC1 = libgcc1.cross
  213.  
  214. # Specify the rule for actually making libgcc2.a.
  215. LIBGCC2 = libgcc2.a
  216.  
  217. # Options to use when compiling libgcc2.a.
  218. # -g1 causes output of debug info only for file-scope entities.
  219. # we use this here because that should be enough, and also
  220. # so that -g1 will be tested.
  221. LIBGCC2_CFLAGS = $(OPTIMIZE) $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) -g1
  222.  
  223. # Additional options to use when compiling libgcc2.a.
  224. # Some targets override this to -Iinclude
  225. LIBGCC2_INCLUDES =
  226.  
  227. # Things which must be built before building libgcc2.a.
  228. # Some targets override this to stmp-int-hdrs
  229. LIBGCC2_DEPS =
  230.  
  231. # Enquire target (This is a variable so that a target can choose not to
  232. # build it.)
  233. ENQUIRE = enquire
  234.  
  235. # Cross-test target (must also be overridable for a target)
  236. CROSS_TEST = cross-test
  237.  
  238. # List of extra executables that should be compiled for this target machine
  239. # that are used for compiling from source code to object code.
  240. # The rules for compiling them should be in the t-* file for the machine.
  241. EXTRA_PASSES =
  242.  
  243. # Like EXTRA_PASSES, but these are used when linking.
  244. EXTRA_PROGRAMS = 
  245.  
  246. # List of extra object files that should be compiled for this target machine.
  247. # The rules for compiling them should be in the t-* file for the machine.
  248. EXTRA_PARTS =
  249.  
  250. # List of extra object files that should be compiled and linked with
  251. # compiler proper (cc1, cc1obj, cc1plus).
  252. EXTRA_OBJS =
  253.  
  254. # List of additional header files to install.
  255. # Often this is edited directly by `configure'.
  256. EXTRA_HEADERS =
  257.  
  258. # Set this to `ld' to enable use of collect2.
  259. # USE_COLLECT2 =
  260. # It is convenient for configure to add the assignment at the beginning,
  261. # so don't override it here.
  262.  
  263. # List of extra C and assembler files to add to libgcc1.a.
  264. # Assembler files should have names ending in `.asm'.
  265. LIB1FUNCS_EXTRA = 
  266.  
  267. # List of extra C and assembler files to add to libgcc2.a.
  268. # Assembler files should have names ending in `.asm'.
  269. LIB2FUNCS_EXTRA = 
  270.  
  271. # Default float.h source to use for cross-compiler.
  272. CROSS_FLOAT_H=float.h-cross
  273.  
  274. # Program to convert libraries.
  275. LIBCONVERT = 
  276.  
  277. # Control whether header files are installed.
  278. INSTALL_HEADERS=install-headers
  279.  
  280. # Options for tar when copying trees.  So HPUX can override it.
  281. TAROUTOPTS = xpBf
  282.  
  283. # Select which version of fixincludes to use (I.E. regular versus SVR4)
  284. # This value is overridden directly by configure.
  285. FIXINCLUDES=fixincludes
  286.  
  287. # Additional directories of header files to run fixincludes on.
  288. # These should be directories searched automatically by default
  289. # just as /usr/include is.
  290. # *Do not* use this for directories that happen to contain 
  291. # header files, but are not searched automatically by default.
  292. # On most systems, this is empty.
  293. OTHER_FIXINCLUDES_DIRS=
  294.  
  295. # List of things which should already be built whenever we try to use xgcc
  296. # to compile anything (without linking).
  297. GCC_PASSES=xgcc cc1 cpp $(EXTRA_PASSES)
  298.  
  299. # List of things which should already be built whenever we try to use xgcc
  300. # to link anything.
  301. GCC_PARTS=$(GCC_PASSES) $(LIBGCC) $(EXTRA_PROGRAMS) $(USE_COLLECT2) $(EXTRA_PARTS)
  302.  
  303. # Directory to link to, when using the target `maketest'.
  304. DIR = ../gcc
  305.  
  306. # Guaranteed to not exist when not passing md through cpp.
  307. # This value is overridden directly by configure.
  308. MD_FILE = md-cpp-not-used
  309.  
  310. # Flags to use when cross-building GCC.
  311. # Prefix to apply to names of object files when using them
  312. # to run on the machine we are compiling on.
  313. HOST_PREFIX=
  314. # Prefix to apply to names of object files when compiling them
  315. # to run on the machine we are compiling on.
  316. # The default for this variable is chosen to keep these rules 
  317. # out of the way of the other rules for compiling the same source files.
  318. HOST_PREFIX_1=loser-
  319. HOST_CC=$(CC)
  320. HOST_CFLAGS=$(ALL_CFLAGS)
  321. HOST_CLIB=$(CLIB)
  322. HOST_LDFLAGS=$(LDFLAGS)
  323. HOST_CPPFLAGS=$(ALL_CPPFLAGS)
  324. HOST_ALLOCA=$(ALLOCA)
  325. HOST_MALLOC=$(MALLOC)
  326. HOST_OBSTACK=$(OBSTACK)
  327.  
  328. # Choose the real default target.
  329. ALL=all.internal
  330.  
  331. # Choose the real install target.
  332. INSTALL_TARGET=install-normal
  333.  
  334. # Source for float.h.  Overridden by cross-make.
  335. FLOAT_H=float.h-nat
  336.  
  337. # Extra symbols for fixproto to define when parsing headers.
  338. FIXPROTO_DEFINES = 
  339.  
  340. # End of variables for you to override.
  341.  
  342. # Definition of `all' is here so that new rules inserted by sed
  343. # do not specify the default target.
  344. # The real definition is under `all.internal' (for native compilers)
  345. # or `all.cross' (for cross compilers).
  346. #all: all.indirect
  347.  
  348. # Amiga HACK - just make the things that are either ada specific or
  349. # needed to build ada.  The GCC/G++/OBJECTIVE-C compilers are built
  350. # elsewhere.
  351.  
  352. all:
  353.     $(MAKE) xgcc cc1 cpp specs
  354.     $(MAKE) CC=gcc CFLAGS= gnat1
  355.     $(MAKE) CC=gcc CFLAGS= gnatbind
  356.     $(MAKE) CC=gcc CFLAGS= gnatlib_and_tools
  357.     
  358. # This tells GNU Make version 3 not to put all variables in the environment.
  359. .NOEXPORT:
  360.  
  361. # sed inserts variable overrides after the following line.
  362. ####target overrides
  363. ####host overrides
  364. ####cross overrides
  365. ####build overrides
  366.  
  367. # Now figure out from those variables how to compile and link.
  368.  
  369. all.indirect: $(ALL)
  370.  
  371. # IN_GCC tells obstack.h that we are using gcc's <stddef.h> file.
  372. # ??? IN_GCC should be obsolete now.
  373. INTERNAL_CFLAGS = $(CROSS) -DIN_GCC
  374.  
  375. # This is the variable actually used when we compile.
  376. ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS)
  377.  
  378. # Likewise.
  379. ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
  380.  
  381. # Even if ALLOCA is set, don't use it if compiling with GCC.
  382. USE_ALLOCA= ` case "${CC}" in "${OLDCC}") echo "${ALLOCA}" ;; esac `
  383. USE_HOST_ALLOCA= ` case "${HOST_CC}"@"${HOST_ALLOCA}" in "${OLDCC}"@?*) echo ${HOST_PREFIX}${HOST_ALLOCA} ;; esac `
  384. USE_HOST_MALLOC= ` case "${HOST_MALLOC}" in ?*) echo ${HOST_PREFIX}${HOST_MALLOC} ;; esac `
  385. USE_HOST_OBSTACK= ` case "${HOST_OBSTACK}" in ?*) echo ${HOST_PREFIX}${HOST_OBSTACK} ;; esac `
  386.  
  387. # Dependency on obstack, alloca, malloc or whatever library facilities
  388. # are not installed in the system libraries.
  389. # We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
  390. LIBDEPS= $(OBSTACK) $(ALLOCA) $(MALLOC)
  391.  
  392. # Likewise, for use in the tools that must run on this machine
  393. # even if we are cross-building GCC.
  394. # We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
  395. HOST_LIBDEPS= $(HOST_PREFIX)$(HOST_OBSTACK) $(HOST_PREFIX)$(HOST_ALLOCA) $(HOST_PREFIX)$(HOST_MALLOC)
  396.  
  397. # How to link with both our special library facilities
  398. # and the system's installed libraries.
  399. LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(CLIB)
  400.  
  401. # Likewise, for use in the tools that must run on this machine
  402. # even if we are cross-building GCC.
  403. HOST_LIBS = $(USE_HOST_OBSTACK) $(USE_HOST_ALLOCA) $(USE_HOST_MALLOC)  \
  404.         $(HOST_CLIB)
  405.  
  406. HOST_RTL = $(HOST_PREFIX)rtl.o
  407. HOST_RTLANAL = $(HOST_PREFIX)rtlanal.o
  408. HOST_PRINT = $(HOST_PREFIX)print-rtl.o
  409.  
  410. # Specify the directories to be searched for header files.
  411. # Both . and srcdir are used, in that order,
  412. # so that tm.h and config.h will be found in the compilation
  413. # subdirectory rather than in the source directory.
  414. INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config
  415.  
  416. # Always use -I$(srcdir)/config when compiling.
  417. .c.o:
  418.     $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
  419.  
  420. # This tells GNU make version 3 not to export all the variables
  421. # defined in this file into the environment.
  422. .NOEXPORT:
  423.  
  424. # Support for additional languages (other than c and objc).
  425. # ??? objc can be supported this way too (leave for later).
  426.  
  427. # These next lines are overridden by configure.
  428. LANG_MAKEFILES =
  429. LANG_STAGESTUFF =
  430. LANG_DIFF_EXCLUDES =
  431.  
  432. # Flags to pass to recursive makes.
  433. # CC is set by configure.  Hosts without symlinks need special handling
  434. # because we need CC="stage1/xgcc -Bstage1/" to work in the language
  435. # subdirectories.
  436. # ??? The choices here will need some experimenting with.
  437. FLAGS_TO_PASS = \
  438.     "AR_FLAGS=$(AR_FLAGS)" \
  439.     "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
  440.     "BISON=$(BISON)" \
  441.     "BISONFLAGS=$(BISONFLAGS)" \
  442.     "CC=set-by-configure" \
  443.     "CFLAGS=$(CFLAGS)" \
  444.     "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
  445.     "LDFLAGS=$(LDFLAGS)" \
  446.     "LEX=$(LEX)" \
  447.     "LEXFLAGS=$(LEXFLAGS)" \
  448.     "MAKEINFO=$(MAKEINFO)" \
  449.     "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
  450.     "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
  451.     "RANLIB_TEST_FOR_TARGET=$(RANLIB_TEST_FOR_TARGET)" \
  452.     "SHELL=$(SHELL)" \
  453.     "exec_prefix=$(exec_prefix)" \
  454.     "prefix=$(prefix)" \
  455.     "tooldir=$(tooldir)" \
  456.     "bindir=$(bindir)" \
  457.     "libsubdir=$(libsubdir)"
  458.  
  459. # Lists of files for various purposes.
  460.  
  461. # A list of all the language-specific executables.
  462. # This is overridden by configure.
  463. COMPILERS = cc1 cc1obj
  464.  
  465. # Language-specific object files for C.
  466. C_OBJS = c-parse.o c-lang.o c-lex.o c-pragma.o \
  467.    c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o
  468.  
  469. # Language-specific object files for Objective C.
  470. OBJC_OBJS = objc-parse.o objc-act.o c-lex.o c-pragma.o \
  471.    c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o
  472.  
  473. # Files specific to the C interpreter bytecode compiler(s).
  474. BC_OBJS = bc-emit.o bc-optab.o
  475.  
  476. # Language-independent object files.
  477. OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
  478.  function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o \
  479.  rtl.o print-rtl.o rtlanal.o emit-rtl.o real.o \
  480.  dbxout.o sdbout.o dwarfout.o xcoffout.o \
  481.  integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o \
  482.  regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o \
  483.  insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o \
  484.  insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o \
  485.  insn-attrtab.o aux-output.o getpwd.o convert.o $(EXTRA_OBJS)
  486.  
  487. # GEN files are listed separately, so they can be built before doing parallel
  488. #  makes for cc1 or cc1plus.  Otherwise sequent parallel make attempts to load
  489. #  them before rtl.o is compiled.
  490. GEN= genemit genoutput genrecog genextract genflags gencodes genconfig genpeep
  491.  
  492. # Files to be copied away after each stage in building.
  493. STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
  494.  insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
  495.  insn-attr.h insn-attrtab.c insn-opinit.c \
  496.  stamp-flags stamp-config stamp-codes \
  497.  stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \
  498.  stamp-attr stamp-attrtab stamp-opinit stamp-proto \
  499.  genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
  500.  genattrtab genattr genopinit \
  501.  bc-arity.h bc-opcode.h bc-opname.h \
  502.  stamp-bcarity stamp-bcopcode stamp-bcopname \
  503.  bi-arity bi-opcode bi-opname \
  504.  $(GCC_PASSES) $(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross cccp \
  505.  cc1obj enquire protoize unprotoize specs collect2 $(USE_COLLECT2) \
  506.  $(LANG_STAGESTUFF)
  507.  
  508. # Members of libgcc1.a.
  509. LIB1FUNCS = _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
  510.    _lshrsi3 _lshlsi3 _ashrsi3 _ashlsi3 \
  511.    _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 \
  512.    _fixdfsi _fixsfsi _floatsidf _floatsisf _truncdfsf2 _extendsfdf2 \
  513.    _addsf3 _negsf2 _subsf3 _mulsf3 _divsf3 \
  514.    _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 \
  515.    _eqsf2 _nesf2 _gtsf2 _gesf2 _ltsf2 _lesf2
  516.  
  517. # Library members defined in libgcc2.c.
  518. LIB2FUNCS = _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 \
  519.      _lshrdi3 _lshldi3 _ashldi3 _ashrdi3 _ffsdi2 \
  520.     _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf \
  521.     _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi \
  522.     _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi \
  523.     _fixtfdi _fixunstfdi _floatditf \
  524.     __gcc_bcmp _varargs _eprintf _op_new _op_vnew _new_handler _op_delete \
  525.     _op_vdel _bb _shtab _clear_cache _trampoline __main _exit _ctors _eh \
  526.     _pure
  527.  
  528. # Header files that are made available under the same name
  529. # to programs compiled with GCC.
  530. USER_H = $(srcdir)/ginclude/stdarg.h $(srcdir)/ginclude/stddef.h \
  531.     $(srcdir)/ginclude/varargs.h $(srcdir)/ginclude/va-alpha.h \
  532.     $(srcdir)/ginclude/va-h8300.h $(srcdir)/ginclude/va-i860.h \
  533.     $(srcdir)/ginclude/va-i960.h $(srcdir)/ginclude/va-mips.h \
  534.     $(srcdir)/ginclude/va-m88k.h $(srcdir)/ginclude/va-pa.h \
  535.     $(srcdir)/ginclude/va-pyr.h $(srcdir)/ginclude/va-sparc.h \
  536.     $(srcdir)/ginclude/va-clipper.h $(srcdir)/ginclude/va-spur.h \
  537.     $(srcdir)/ginclude/proto.h $(EXTRA_HEADERS)
  538.  
  539. # The files that "belong" in CONFIG_H are deliberately omitted
  540. # because having them there would not be useful in actual practice.
  541. # All they would do is cause complete recompilation every time
  542. # one of the machine description files is edited.
  543. # That may or may not be what one wants to do.
  544. # If it is, rm *.o is an easy way to do it.
  545. # CONFIG_H = config.h tm.h
  546. CONFIG_H =
  547. RTL_H = rtl.h rtl.def machmode.h machmode.def
  548. TREE_H = tree.h real.h tree.def machmode.h machmode.def
  549. BYTECODE_H = bytecode.h bc-emit.h bc-optab.h
  550.  
  551. # Language makefile fragments.
  552.  
  553. # The following targets define the interface between us and the languages.
  554. #
  555. # all.build, all.cross, start.encap, rest.encap,
  556. # info, dvi,
  557. # install-normal, install-common, install-info, install-man,
  558. # uninstall, distdir,
  559. # mostlyclean, clean, distclean, extraclean, maintainer-clean,
  560. # stage1, stage2, stage3, stage4
  561. #
  562. # Each language is linked in with a series of hooks (since we can't use `::'
  563. # targets).  The name of each hooked is "lang.${target_name}" (eg: lang.info).
  564. # Configure computes and adds these here.
  565.  
  566. ####language hooks
  567.  
  568. # sed inserts language fragments after the following line.
  569. ####language fragments
  570.  
  571. # End of language makefile fragments.
  572.  
  573. # Avoid a lot of time thinking about remaking Makefile.in and *.def.
  574. .SUFFIXES: .in .def
  575.  
  576. Makefile: $(srcdir)/Makefile.in $(srcdir)/configure $(srcdir)/version.c \
  577.    $(srcdir)/config/$(xmake_file) $(srcdir)/config/$(tmake_file) \
  578.    $(LANG_MAKEFILES)
  579.     $(SHELL) config.status
  580.  
  581. all.internal: start.encap rest.encap
  582. # This is what to compile if making a cross-compiler.
  583. # Note that we can compile enquire using the cross-compiler just built,
  584. # although we can't run it on this machine.
  585. all.cross: native gcc-cross specs stmp-headers $(LIBGCC) $(STMP_FIXPROTO) \
  586.     $(CROSS_TEST) $(ENQUIRE) $(EXTRA_PARTS) lang.all.cross
  587. # This is what to compile if making gcc with a cross-compiler.
  588. all.build: native xgcc $(EXTRA_PARTS) lang.all.build
  589. # This is what must be made before installing GCC and converting libraries.
  590. start.encap: native xgcc specs $(LIBGCC1) xlimits.h lang.start.encap
  591. # These can't be made until after GCC can run.
  592. rest.encap: stmp-headers $(LIBGCC) $(STMP_FIXPROTO) $(EXTRA_PARTS) lang.rest.encap
  593. # This is what is made with the host's compiler
  594. # whether making a cross compiler or not.
  595. native: config.status cpp $(LANGUAGES) $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2)
  596.  
  597. # Define the names for selecting languages in LANGUAGES.
  598. C c: cc1
  599. OBJC objc: cc1obj objc-runtime
  600. OBJECTIVE-C objective-c: cc1obj objc-runtime
  601. PROTO: proto
  602.  
  603. # Really, really stupid make features, such as SUN's KEEP_STATE, may force
  604. # a target to build even if it is up-to-date.  So we must verify that
  605. # config.status does not exist before failing.
  606. config.status:
  607.     @if [ ! -f config.status ] ; then \
  608.       echo You must configure gcc.  Look at the INSTALL file for details.; \
  609.       false; \
  610.     else \
  611.       true; \
  612.     fi
  613.  
  614. # On the target machine, finish building a cross compiler.
  615. # This does the things that can't be done on the host machine.
  616. rest.cross: $(LIBGCC) gfloat.h specs
  617.  
  618. # Verify that it works to compile and link cross-test.
  619. # If it does, then there are sufficient replacements for libgcc1.a.
  620. cross-test: cross-test.o native gcc-cross $(LIBGCC) $(GCC_PARTS)
  621.     $(GCC_FOR_TARGET) $(GCC_CFLAGS) cross-test.o -o cross-test
  622. cross-test.o: cross-test.c native gcc-cross
  623.     $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -c $(srcdir)/cross-test.c
  624.  
  625. # Recompile all the language-independent object files.
  626. # This is used only if the user explicitly asks for it.
  627. compilations: ${OBJS}
  628.  
  629. # Create a list of the language-independent object files so the language
  630. # subdirectories needn't mention their names explicitly.
  631. stamp-objlist: Makefile $(OBJS) $(BC_OBJS)
  632.     echo " $(OBJS) $(BC_OBJS)" | sed -e 's, \([a-z]\), ../\1,g' >stamp-objlist
  633.  
  634. # We call this executable `xgcc' rather than `gcc'
  635. # to avoid confusion if the current directory is in the path
  636. # and CC is `gcc'.  It is renamed to `gcc' when it is installed.
  637. xgcc: gcc.o version.o $(LIBDEPS)
  638.     $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o xgcc gcc.o version.o $(LIBS)
  639.  
  640. # Dump a specs file to make -B./ read these specs over installed ones.
  641. specs: xgcc
  642.     $(GCC_FOR_TARGET) -dumpspecs > specs
  643.  
  644. # We do want to create an executable named `xgcc', so we can use it to
  645. # compile libgcc2.a.
  646. # Also create gcc-cross, so that install-common will install properly.
  647. gcc-cross: xgcc
  648.     cp xgcc gcc-cross
  649.  
  650. cc1: $(P) $(C_OBJS) $(OBJS) $(BC_OBJS) $(LIBDEPS)
  651.     $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cc1 $(C_OBJS) $(OBJS) $(BC_OBJS) $(LIBS)
  652.  
  653. cc1obj: $(P) $(OBJC_OBJS) $(OBJS) $(BC_OBJS) $(LIBDEPS)
  654.     $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cc1obj $(OBJC_OBJS) $(OBJS) $(BC_OBJS) $(LIBS)
  655.  
  656. # Copy float.h from its source.
  657. gfloat.h: $(FLOAT_H)
  658.     cp $(FLOAT_H) gfloat.h
  659.  
  660. # Create float.h source for the native machine.
  661. float.h-nat: enquire
  662.     -./enquire -f > tmp-float.h
  663.     mv tmp-float.h float.h-nat
  664.  
  665. # Create a dummy float.h source for a cross-compiler.
  666. float.h-cross:
  667.     echo "#error float.h values not known for cross-compiler" > float.h-cross
  668.  
  669. # Used to compile enquire with standard cc, but have forgotten why.
  670. # Let's try with GCC.
  671. enquire: enquire.o $(GCC_PARTS)
  672.     $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ENQUIRE_LDFLAGS) enquire.o -o enquire
  673. enquire.o: $(srcdir)/enquire.c $(GCC_PASSES) stmp-int-hdrs
  674. #    -if [ "$(srcdir)" != "." ]; then rm -f ./enquire.c; else true; fi
  675. #    -cp $(srcdir)/enquire.c . > /dev/null 2>&1
  676. # Breaking this line caused a problem with one version of GNU make.
  677.     $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(ENQUIRE_CFLAGS) -I. -c $(srcdir)/enquire.c
  678.  
  679. # Build the version of limits.h that we will install.
  680. xlimits.h: glimits.h limitx.h limity.h
  681.     if [ -f $(SYSTEM_HEADER_DIR)/limits.h ] ; then \
  682.       cat $(srcdir)/limitx.h $(srcdir)/glimits.h $(srcdir)/limity.h > xlimits.h; \
  683.     else \
  684.       cat $(srcdir)/glimits.h > xlimits.h; \
  685.     fi
  686.  
  687. # Build libgcc.a.
  688. # This is done in two parts because some functions, in libgcc1.c,
  689. # must be compiled with something other than GCC,
  690. # while the rest, in libgcc2.c, must be compiled with xgcc.
  691. # That means we can't do libgcc2.c until after xgcc, cc1, etc.
  692.  
  693. # Use this as value of LIBGCC1 to cause conversion to GNU library format.
  694. # LIBCONVERT should put its output in libgcc1.conv.
  695. libgcc1.conv: libgcc1.a
  696.     $(LIBCONVERT) libgcc1.a libgcc1.conv
  697.  
  698. # Use this as value of LIBGCC1 to inhibit use of libgcc1.c entirely.
  699. # Make an empty file instead.
  700. libgcc1.null: $(GCC_PASSES)
  701.     echo "__foo () {}" > dummy.c
  702.     $(GCC_FOR_TARGET) $(GCC_CFLAGS) -c dummy.c
  703.     $(OLDAR) $(OLDAR_FLAGS) libgcc1.null dummy.o
  704.     rm -f dummy.o dummy.c
  705.  
  706. # This is $(LIBGCC1) for a cross-compiler.
  707. # We have no automatic way of building libgcc1.a, 
  708. # so it's up to the installer to find a way to do that.
  709. # This rule deliberately does not depend on libgcc1.a
  710. # so that it will fail if the installer hasn't provided it.
  711. libgcc1.cross:
  712.     mv libgcc1.a libgcc1.cross || (echo You must find a way to make libgcc1.a; false)
  713.  
  714. # Compile the library of arithmetic subroutines with the native compiler.
  715. # Don't compile it with GCC!
  716. # (That would cause most arithmetic functions to call themselves.)
  717. libgcc1.a: libgcc1.c $(CONFIG_H) $(LIB1FUNCS_EXTRA) config.status
  718.     -rm -f tmplibgcc1.a
  719. # Actually build it in tmplibgcc1.a, then rename at end,
  720. # so that libgcc1.a itself remains nonexistent if compilation is aborted.
  721. # -e causes any failing command to make this rule fail.
  722. # -e doesn't work in certain shells, so we test $$? as well.
  723. # lynx has a broken ar, it always complains when the initial library is
  724. # empty, thus this command works only if we don't do -e
  725. # There is a trailing backslash (\) deleted from the following line.
  726. #    set -e;
  727.     for name in $(LIB1FUNCS); \
  728.     do \
  729.       echo $${name}; \
  730.       rm -f $${name}.o; \
  731.       $(OLDCC) $(CCLIBFLAGS) $(INCLUDES) -c -DL$${name} $(srcdir)/libgcc1.c; \
  732.       if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
  733.       mv libgcc1.o $${name}.o; \
  734.       $(OLDAR) $(OLDAR_FLAGS) tmplibgcc1.a $${name}.o; \
  735.       rm -f $${name}.o; \
  736.     done
  737. # Some shells crash when a loop has no items.
  738. # So make sure there is always at least one--`..'.
  739. # Then ignore it.
  740. # We don't use -e here because there are if statements
  741. # that should not make the command give up when the if condition is false.
  742. # Instead, we test for failure after each command where it matters.
  743.     for file in .. $(LIB1FUNCS_EXTRA); \
  744.     do \
  745.       if [ x$${file} != x.. ]; then \
  746.         name=`echo $${file} | sed -e 's/[.]c$$//' -e 's/[.]asm$$//'`; \
  747.         echo $${name}; \
  748.         if [ $${name}.asm = $${file} ]; then \
  749.           cp $${file} $${name}.s || exit 1; file=$${name}.s; \
  750.         else true; fi; \
  751.         $(OLDCC) $(CCLIBFLAGS) $(INCLUDES) -c $${file}; \
  752.         if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
  753.         $(OLDAR) $(OLDAR_FLAGS) tmplibgcc1.a $${name}.o; \
  754.         if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
  755.         rm -f $${name}.[so]; \
  756.       else true; \
  757.       fi; \
  758.     done
  759.     mv tmplibgcc1.a libgcc1.a
  760.  
  761. # Build libgcc1.a from assembler source.  LIB1ASMFUNCS is the list of
  762. # functions.  LIB1ASMSRC is the name of the source file in the config
  763. # subdirectory.
  764. libgcc1-asm.a: libgcc2.ready config.status $(srcdir)/config/$(LIB1ASMSRC)
  765.     -rm -f tmplibgcc1.a libgcc1.S
  766.     cp $(srcdir)/config/$(LIB1ASMSRC) libgcc1.S
  767. # Actually build it in tmplibgcc1.a, then rename at end,
  768. # so that libgcc1-asm.a itself remains nonexistent if compilation is aborted.
  769. # -e causes any failing command to make this rule fail.
  770. # -e doesn't work in certain shells, so we test $$? as well.
  771. # lynx has a broken ar, it always complains when the initial library is
  772. # empty, thus this command works only if we don't do -e
  773. # There is a trailing backslash (\) deleted from the following line.
  774. #    set -e;
  775.     for name in $(LIB1ASMFUNCS); \
  776.     do \
  777.       echo $${name}; \
  778.       $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} libgcc1.S; \
  779.       if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
  780.       mv libgcc1.o $${name}.o; \
  781.       $(AR) $(AR_FLAGS) tmplibgcc1.a $${name}.o; \
  782.       rm -f $${name}.o; \
  783.     done
  784.     -rm -f libgcc1.S
  785.     mv tmplibgcc1.a libgcc1-asm.a
  786.  
  787. # Compiling libgcc2.a requires making sure that cc1, etc. have been compiled.
  788. # But recompiling cc1 should not force recompilation of libgcc2.a.
  789. # If you want to force recompilation, delete libgcc2.a.
  790. libgcc2.ready: $(GCC_PASSES) $(LIBGCC2_DEPS) stmp-int-hdrs
  791.     -if [ -f libgcc2.ready ] ; then \
  792.         true; \
  793.     else \
  794.         touch libgcc2.ready; \
  795.     fi
  796.  
  797. libgcc2.a: libgcc2.c libgcc2.ready $(CONFIG_H) $(LIB2FUNCS_EXTRA) \
  798.    machmode.h longlong.h gbl-ctors.h config.status
  799. # Actually build it in tmplibgcc2.a, then rename at end,
  800. # so that libgcc2.a itself remains nonexistent if compilation is aborted.
  801.     -rm -f tmplibgcc2.a
  802. # -e causes any failing command to make this rule fail.
  803. # -e doesn't work in certain shells, so we test $$? as well.
  804. # lynx has a broken ar, it always complains when the initial library is
  805. # empty, thus this command works only if we don't do -e
  806. # There is a trailing backslash (\) deleted from the following line.
  807. #    set -e;
  808.     for name in $(LIB2FUNCS); \
  809.     do \
  810.       echo $${name}; \
  811.       $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} \
  812.           $(srcdir)/libgcc2.c -o $${name}.o; \
  813.       if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
  814.       $(AR) $(AR_FLAGS) tmplibgcc2.a $${name}.o; \
  815.       rm -f $${name}.o; \
  816.     done
  817. # Some shells crash when a loop has no items.
  818. # So make sure there is always at least one--`..'.
  819. # Then ignore it.
  820. # We don't use -e here because there are if statements
  821. # that should not make the command give up when the if condition is false.
  822. # Instead, we test for failure after each command where it matters.
  823.     for file in .. $(LIB2FUNCS_EXTRA); \
  824.     do \
  825.       if [ x$${file} != x.. ]; then \
  826.         name=`echo $${file} | sed -e 's/[.]c$$//' -e 's/[.]asm$$//'`; \
  827.         echo $${name}; \
  828.         if [ $${name}.asm = $${file} ]; then \
  829.           cp $${file} $${name}.s || exit 1; file=$${name}.s; \
  830.         else true; fi; \
  831.         $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c $${file}; \
  832.         if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
  833.         $(AR) $(AR_FLAGS) tmplibgcc2.a $${name}.o; \
  834.         rm -f $${name}.[so]; \
  835.       else true; \
  836.       fi; \
  837.     done
  838.     mv tmplibgcc2.a libgcc2.a
  839. # These lines were deleted from above the mv command
  840. # because ranlibing libgcc.a itself should suffice.
  841. #    -if [ x${HPUX_GAS} = x ] ; then \
  842. #      if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc2.a; else true; fi \
  843. #    else true; fi
  844.  
  845. # Combine the various libraries into a single library, libgcc.a.
  846. libgcc.a: $(LIBGCC1) $(LIBGCC2)
  847.     -rm -rf tmplibgcc.a libgcc.a tmpcopy
  848.     mkdir tmpcopy
  849.     -if [ x$(LIBGCC1) != x ];            \
  850.     then (cd tmpcopy; $(AR) x ../$(LIBGCC1));    \
  851.     else true;                    \
  852.     fi
  853. # Some versions of ar (specifically the one in RISC/os 5.x), create an
  854. # unwritable table of contents file, and then print an error message when
  855. # the second ar command tries to overwrite this file.  To avoid the error
  856. # message from ar, we make sure all files are writable.
  857.     -(cd tmpcopy; chmod +w * > /dev/null 2>&1)
  858. # The "cd..; wait" makes sure that the lock on tmpcopy has time to disappear.
  859.     (cd tmpcopy; $(AR) x ../$(LIBGCC2); cd ..; /c/wait 2)
  860.     (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.o; cd ..; /c/wait 2)
  861.     rm -rf tmpcopy
  862.     -if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc.a; else true; fi
  863. # Actually build it in tmplibgcc.a, then rename at end,
  864. # so that libgcc.a itself remains nonexistent if compilation is aborted.
  865.     mv tmplibgcc.a libgcc.a
  866.  
  867. # Use the genmultilib shell script to generate the information the gcc
  868. # driver program needs to select the library directory based on the
  869. # switches.
  870. multilib.h: $(srcdir)/genmultilib config.status
  871.     $(SHELL) $(srcdir)/genmultilib "$(MULTILIB_OPTIONS)" \
  872.       "$(MULTILIB_DIRNAMES)" "$(MULTILIB_MATCHES)" > multilib.h
  873.  
  874. # Build multiple copies of libgcc.a, one for each target switch.
  875. stmp-multilib: $(LIBGCC1) libgcc2.c libgcc2.ready $(CONFIG_H) \
  876.    $(LIB2FUNCS_EXTRA) machmode.h longlong.h gbl-ctors.h config.status
  877.     for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \
  878.       dir=`echo $$i | sed -e 's/;.*$$//'`; \
  879.       flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
  880.       $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
  881.         AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
  882.         RANLIB="$(RANLIB)" RANLIB_TEST="$(RANLIB_TEST)" \
  883.         HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_1)" \
  884.         LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS) $${flags}" \
  885.         LIBGCC1="$(LIBGCC1)" LIBGCC2="$(LIBGCC2)" \
  886.         dir="$${dir}" stmp-multilib-sub; \
  887.     done
  888.     touch stmp-multilib
  889.  
  890. # Subroutine of stmp-multilib so make -n works.
  891. stmp-multilib-sub:
  892.     rm -f $(dir)/libgcc.a $(LIBGCC2)
  893.     $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
  894.       AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
  895.       HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_1)" \
  896.       LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" $(LIBGCC2)
  897.     if [ x$(LIBGCC1) != xlibgcc1-asm.a ]; \
  898.     then true; \
  899.     else rm -f $(LIBGCC1); \
  900.     fi
  901.     if [ x$(LIBGCC1) != xlibgcc1-asm.a ]; \
  902.     then true; \
  903.     else \
  904.       $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
  905.         AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
  906.         HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_1)" \
  907.         LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" $(LIBGCC1); \
  908.     fi
  909.     rm -rf tmplibgcc.a tmpcopy
  910.     mkdir tmpcopy
  911.     if [ x$(LIBGCC1) != x ]; \
  912.     then (cd tmpcopy; $(AR) x ../$(LIBGCC1)); \
  913.     else true; \
  914.     fi
  915.     (cd tmpcopy; $(AR) x ../$(LIBGCC2))
  916.     (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.o)
  917.     rm -rf libgcc2.a tmpcopy
  918.     if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc.a; else true; fi
  919.     if [ -d $(dir) ]; then true; else mkdir $(dir); fi
  920.     mv tmplibgcc.a $(dir)/libgcc.a
  921.  
  922. objc-runtime: libobjc.a
  923.  
  924. # Build the Objective C runtime library.
  925. libobjc.a: cc1obj stmp-int-hdrs libgcc2.ready $(USE_COLLECT2) $(EXTRA_PARTS)
  926.     if [ -d objc ]; then true; else mkdir objc; fi
  927.     thisdir1=`pwd`; \
  928.     srcdir1=`cd $(srcdir); pwd`; \
  929.     cd objc; \
  930.     $(MAKE) -f $${srcdir1}/objc/Makefile libobjc.a \
  931.       srcdir=$${srcdir1} tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
  932.       GCC_FOR_TARGET="$${thisdir1}/$(XGCC) -B$${thisdir1}/" \
  933.       GCC_CFLAGS="$(GCC_CFLAGS)"
  934.     -rm -f libobjc.a
  935.     $(HARDLINK) objc/libobjc.a . >/dev/null 2>&1 || cp objc/libobjc.a .
  936.     -if $(RANLIB_TEST) ; then $(RANLIB) libobjc.a; else true; fi
  937.  
  938. # This is used by objc/Makefile if the user runs that directly.
  939. sublibobjc.a: cc1obj stmp-int-hdrs libgcc2.ready
  940.     thisdir1=`pwd`; \
  941.     srcdir1=`cd $(srcdir); pwd`; \
  942.     cd objc; \
  943.     $(MAKE) -f $$srcdir1/objc/Makefile libobjc.a \
  944.       srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
  945.       GCC_FOR_TARGET="$$thisdir1/$(XGCC) -B$$thisdir1/" \
  946.       GCC_CFLAGS="$(GCC_CFLAGS)"
  947.  
  948. # Compile two additional files that are linked with every program
  949. # linked using GCC on system V, for the sake of C++ constructors.
  950. crtbegin.o:    crtstuff.c $(GCC_PASSES) $(CONFIG_H) gbl-ctors.h
  951.     $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) -DCRT_BEGIN \
  952.       -finhibit-size-directive -fno-inline-functions \
  953.       -g0 -c $(srcdir)/crtstuff.c -o crtbegin.o
  954.  
  955. crtend.o:    crtstuff.c $(GCC_PASSES) $(CONFIG_H) gbl-ctors.h
  956.     $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) -DCRT_END \
  957.       -finhibit-size-directive -fno-inline-functions \
  958.       -g0 -c $(srcdir)/crtstuff.c -o crtend.o
  959.  
  960. # Compiling object files from source files.
  961.  
  962. # Note that dependencies on obstack.h are not written
  963. # because that file is not part of GCC.
  964.  
  965. # C language specific files.
  966.  
  967. c-parse.o : $(srcdir)/c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
  968.     $(srcdir)/c-parse.h c-tree.h input.h flags.h
  969.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.c
  970. $(srcdir)/c-parse.c $(srcdir)/c-parse.h: $(srcdir)/c-parse.y
  971.     cd $(srcdir); $(BISON) $(BISONFLAGS) -d c-parse.y -o c-parse.c
  972. $(srcdir)/c-parse.y: $(srcdir)/c-parse.in
  973.     sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
  974.       -e "/^ifc$$/d" -e "/^end ifc$$/d" \
  975.       $(srcdir)/c-parse.in >tmp-c-parse.y
  976.     $(srcdir)/move-if-change tmp-c-parse.y $(srcdir)/c-parse.y
  977.  
  978. $(srcdir)/c-gperf.h: $(srcdir)/c-parse.gperf
  979.     gperf -p -j1 -i 1 -g -o -t -G -N is_reserved_word -k1,3,$$ \
  980.        $(srcdir)/c-parse.gperf >tmp-gperf.h
  981.      $(srcdir)/move-if-change tmp-gperf.h $(srcdir)/c-gperf.h
  982.  
  983. c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  984. c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  985. c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H)
  986. c-lex.o : c-lex.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h $(srcdir)/c-parse.h \
  987.     input.h flags.h $(srcdir)/c-gperf.h
  988. c-aux-info.o : c-aux-info.c  $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  989. c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H) flags.h
  990. c-pragma.o: c-pragma.c $(CONFIG_H) $(TREE_H)
  991. c-iterate.o: c-iterate.c $(CONFIG_H) $(TREE_H) $(RTL_H) c-tree.h flags.h
  992.  
  993. # To make a configuration always use collect2, set USE_COLLECT2 to ld.
  994. ld: collect2
  995.     rm -f ld
  996.     $(HARDLINK) collect2 ld
  997.  
  998. collect2 : collect2.o version.o $(LIBDEPS)
  999. # Don't try modifying collect2 (aka ld) in place--it might be linking this.
  1000.     -rm -f collect2
  1001.     $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o collect2 collect2.o version.o $(LIBS)
  1002.  
  1003. collect2.o : collect2.c $(CONFIG_H) gstab.h
  1004.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES)  \
  1005.     -DTARGET_MACHINE=\"$(target)\" \
  1006.     -c `echo $(srcdir)/collect2.c | sed 's,^\./,,'`
  1007.  
  1008. # Objective C language specific files.
  1009.  
  1010. objc-parse.o : $(srcdir)/objc-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
  1011.    c-tree.h input.h flags.h objc-act.h
  1012.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/objc-parse.c
  1013. $(srcdir)/objc-parse.c : $(srcdir)/objc-parse.y
  1014.     cd $(srcdir); $(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c
  1015. $(srcdir)/objc-parse.y: $(srcdir)/c-parse.in
  1016.     sed -e "/^ifc$$/,/^end ifc$$/d" \
  1017.       -e "/^ifobjc$$/d" -e "/^end ifobjc$$/d" \
  1018.       $(srcdir)/c-parse.in >tmp-objc-prs.y
  1019.     $(srcdir)/move-if-change tmp-objc-prs.y $(srcdir)/objc-parse.y
  1020.  
  1021. objc-act.o : objc-act.c $(CONFIG_H) $(TREE_H) $(RTL_H) c-tree.h c-lex.h \
  1022.    flags.h objc-act.h input.h function.h $(srcdir)/c-parse.h
  1023.  
  1024. # A file used by all variants of C.
  1025.  
  1026. c-common.o : c-common.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  1027.  
  1028. # Language-independent files.
  1029.  
  1030. gcc.o: gcc.c $(CONFIG_H) multilib.h config.status
  1031.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
  1032.   -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
  1033.   -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
  1034.   -DDEFAULT_TARGET_VERSION=\"$(version)\" \
  1035.   -DDEFAULT_TARGET_MACHINE=\"$(target)\" \
  1036.   -DTOOLDIR_BASE_PREFIX=\"$(exec_prefix)/\" \
  1037.   $(MAYBE_TARGET_DEFAULT) \
  1038.   -c `echo $(srcdir)/gcc.c | sed 's,^\./,,'`
  1039.  
  1040. dumpvers: dumpvers.c
  1041.  
  1042. version.o: version.c
  1043. obstack.o: obstack.c
  1044.  
  1045. convert.o: convert.c $(CONFIG_H) $(TREE_H) flags.h convert.h
  1046.  
  1047. tree.o : tree.c $(CONFIG_H) $(TREE_H) flags.h function.h
  1048. print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
  1049. stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) function.h
  1050. fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H) flags.h 
  1051. toplev.o : toplev.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h input.h \
  1052.    insn-attr.h xcoffout.h defaults.h
  1053.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
  1054.       $(MAYBE_TARGET_DEFAULT) $(MAYBE_USE_COLLECT2) \
  1055.       -c `echo $(srcdir)/toplev.c | sed 's,^\./,,'`
  1056.  
  1057. rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
  1058.  
  1059. print-rtl.o : print-rtl.c $(CONFIG_H) $(RTL_H)
  1060. rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
  1061.  
  1062. toplev.o: bytecode.h bc-emit.h
  1063. varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h function.h \
  1064.    defaults.h insn-codes.h expr.h hard-reg-set.h regs.h xcoffout.h bytecode.h
  1065. function.o : function.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  1066.    insn-flags.h insn-codes.h expr.h regs.h hard-reg-set.h insn-config.h \
  1067.    recog.h output.h bytecode.h
  1068. stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  1069.    insn-flags.h insn-config.h insn-codes.h hard-reg-set.h expr.h loop.h \
  1070.    recog.h bytecode.h bc-typecd.h bc-typecd.def bc-opcode.h bc-optab.h \
  1071.    bc-emit.h
  1072. expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h regs.h \
  1073.    insn-flags.h insn-codes.h expr.h insn-config.h recog.h output.h \
  1074.    typeclass.h bytecode.h bc-opcode.h bc-typecd.h bc-typecd.def bc-optab.h \
  1075.    bc-emit.h modemap.def
  1076. calls.o : calls.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h \
  1077.    insn-flags.h
  1078. expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  1079.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h real.h
  1080. explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h hard-reg-set.h \
  1081.    insn-config.h expr.h recog.h insn-flags.h insn-codes.h
  1082. optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  1083.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h reload.h
  1084. dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h regs.h \
  1085.    insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h
  1086. sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) gsyms.h flags.h \
  1087.    insn-config.h reload.h
  1088. dwarfout.o : dwarfout.c $(CONFIG_H) $(TREE_H) $(RTL_H) dwarf.h flags.h \
  1089.    insn-config.h reload.h output.h defaults.h
  1090. xcoffout.o : xcoffout.c $(CONFIG_H) $(TREE_H) $(RTL_H) xcoffout.h flags.h
  1091. emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
  1092.    function.h regs.h insn-config.h insn-codes.h real.h expr.h bytecode.h \
  1093.    bc-opcode.h bc-typecd.h bc-typecd.def bc-optab.h bc-emit.h bc-opname.h
  1094. real.o : real.c $(CONFIG_H) $(TREE_H)
  1095. getpwd.o : getpwd.c $(CONFIG_H)
  1096.  
  1097. integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h integrate.h \
  1098.    insn-flags.h insn-config.h insn-codes.h expr.h real.h function.h \
  1099.    bytecode.h
  1100.  
  1101. jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h hard-reg-set.h regs.h \
  1102.    insn-config.h insn-flags.h insn-codes.h expr.h real.h
  1103. stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h
  1104.  
  1105. cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h \
  1106.    insn-config.h recog.h
  1107. loop.o : loop.c $(CONFIG_H) $(RTL_H) flags.h loop.h insn-config.h \
  1108.    insn-flags.h insn-codes.h regs.h hard-reg-set.h recog.h expr.h real.h
  1109. unroll.o : unroll.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
  1110.    integrate.h regs.h flags.h expr.h loop.h
  1111. flow.o : flow.c $(CONFIG_H) $(RTL_H) flags.h insn-config.h \
  1112.    basic-block.h regs.h hard-reg-set.h output.h
  1113. combine.o : combine.c $(CONFIG_H) $(RTL_H) flags.h  \
  1114.    insn-config.h insn-flags.h insn-codes.h insn-attr.h regs.h expr.h \
  1115.    basic-block.h recog.h real.h hard-reg-set.h
  1116. regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
  1117.    basic-block.h regs.h insn-config.h recog.h reload.h real.h bytecode.h
  1118. local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h \
  1119.    regs.h hard-reg-set.h insn-config.h recog.h output.h
  1120. global.o : global.c $(CONFIG_H) $(RTL_H) flags.h  \
  1121.    basic-block.h regs.h hard-reg-set.h insn-config.h output.h
  1122.  
  1123. reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
  1124.    reload.h recog.h hard-reg-set.h insn-config.h insn-codes.h regs.h real.h
  1125. reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h expr.h \
  1126.    reload.h regs.h hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
  1127.    basic-block.h recog.h output.h
  1128. caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
  1129.    regs.h hard-reg-set.h insn-config.h basic-block.h recog.h reload.h expr.h
  1130. reorg.o : reorg.c $(CONFIG_H) $(RTL_H) conditions.h hard-reg-set.h \
  1131.    basic-block.h regs.h insn-config.h insn-attr.h insn-flags.h recog.h \
  1132.    flags.h output.h
  1133. sched.o : sched.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h \
  1134.    flags.h insn-config.h insn-attr.h
  1135. final.o : final.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h regs.h \
  1136.    recog.h conditions.h insn-config.h insn-attr.h real.h output.h \
  1137.    hard-reg-set.h insn-flags.h insn-codes.h gstab.h xcoffout.h defaults.h
  1138. recog.o : recog.c $(CONFIG_H) $(RTL_H)  \
  1139.    regs.h recog.h hard-reg-set.h flags.h insn-config.h insn-attr.h \
  1140.    insn-flags.h insn-codes.h real.h
  1141. reg-stack.o : reg-stack.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
  1142.    regs.h hard-reg-set.h flags.h insn-config.h
  1143.  
  1144. aux-output.o : aux-output.c $(CONFIG_H) \
  1145.    $(RTL_H) regs.h hard-reg-set.h real.h insn-config.h conditions.h \
  1146.    insn-flags.h output.h insn-attr.h insn-codes.h
  1147.     $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
  1148.      $(MAYBE_TARGET_DEFAULT) aux-output.c
  1149.  
  1150. # Build auxiliary files that support ecoff format.
  1151. mips-tfile: mips-tfile.o version.o $(LIBDEPS)
  1152.     $(CC) $(CFLAGS) $(LDFLAGS) -o mips-tfile mips-tfile.o version.o $(LIBS)
  1153.  
  1154. mips-tfile.o : mips-tfile.c $(CONFIG_H) $(RTL_H)
  1155.  
  1156. mips-tdump: mips-tdump.o version.o $(LIBDEPS)
  1157.     $(CC) $(CFLAGS) $(LDFLAGS) -o mips-tdump mips-tdump.o version.o $(LIBS)
  1158.  
  1159. mips-tdump.o : mips-tdump.c $(CONFIG_H) $(RTL_H)
  1160.  
  1161. # Build file to support OSF/rose half-pic format.
  1162. halfpic.o: halfpic.c $(CONFIG_H) $(RTL_H) $(TREE_H)
  1163.  
  1164. # Normally this target is not used; but it is used if you
  1165. # define ALLOCA=alloca.o.  In that case, you must get a suitable alloca.c
  1166. # from the GNU Emacs distribution.
  1167. alloca.o:    alloca.c
  1168.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(ALLOCA_FLAGS) \
  1169.       -c `echo $(srcdir)/alloca.c | sed 's,^\./,,'`
  1170.     $(ALLOCA_FINISH)
  1171.  
  1172. # Generate header and source files from the machine description, 
  1173. # and compile them.
  1174.  
  1175. .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
  1176.   insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
  1177.   insn-attr.h insn-attrtab.c
  1178.  
  1179. # The following pair of rules has this effect:
  1180. # genconfig is run only if the md has changed since genconfig was last run;
  1181. # but the file insn-config.h is touched only when its contents actually change.
  1182.  
  1183. # Each of the other insn-* files is handled by a similar pair of rules.
  1184.  
  1185. # This causes an anomaly in the results of make -n
  1186. # because insn-* is older than stamp-*
  1187. # and thus make -n thinks that insn-* will be updated
  1188. # and force recompilation of things that depend on it.
  1189. # We use move-if-change precisely to avoid such recompilation.
  1190. # But there is no way to teach make -n that it will be avoided.
  1191.  
  1192. # Each of the insn-*.[ch] rules has a semicolon at the end,
  1193. # for otherwise the system Make on SunOS 4.1 never tries
  1194. # to recompile insn-*.o.  To avoid problems and extra noise from
  1195. # versions of make which don't like empty commands (nothing after the
  1196. # trailing `;'), we call true for each.
  1197.  
  1198. insn-config.h: stamp-config ; @true
  1199. stamp-config : md genconfig $(srcdir)/move-if-change
  1200.     ./genconfig md > tmp-config.h
  1201.     $(srcdir)/move-if-change tmp-config.h insn-config.h
  1202.     touch stamp-config
  1203.  
  1204. insn-flags.h: stamp-flags ; @true
  1205. stamp-flags : md genflags $(srcdir)/move-if-change
  1206.     ./genflags md > tmp-flags.h
  1207.     $(srcdir)/move-if-change tmp-flags.h insn-flags.h
  1208.     touch stamp-flags
  1209.  
  1210. insn-codes.h: stamp-codes ; @true
  1211. stamp-codes : md gencodes $(srcdir)/move-if-change
  1212.     ./gencodes md > tmp-codes.h
  1213.     $(srcdir)/move-if-change tmp-codes.h insn-codes.h
  1214.     touch stamp-codes
  1215.  
  1216. insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h real.h output.h \
  1217.   insn-config.h insn-flags.h insn-codes.h
  1218.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-emit.c
  1219.  
  1220. insn-emit.c: stamp-emit ; @true
  1221. stamp-emit : md genemit $(srcdir)/move-if-change
  1222.     ./genemit md > tmp-emit.c
  1223.     $(srcdir)/move-if-change tmp-emit.c insn-emit.c
  1224.     touch stamp-emit
  1225.  
  1226. insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h recog.h \
  1227.   real.h output.h flags.h
  1228.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-recog.c
  1229.  
  1230. insn-recog.c: stamp-recog ; @true
  1231. stamp-recog : md genrecog $(srcdir)/move-if-change
  1232.     ./genrecog md > tmp-recog.c
  1233.     $(srcdir)/move-if-change tmp-recog.c insn-recog.c
  1234.     touch stamp-recog
  1235.  
  1236. insn-opinit.o : insn-opinit.c $(CONFIG_H) $(RTL_H) insn-codes.h insn-flags.h \
  1237.   insn-config.h flags.h rtl.h recog.h expr.h reload.h
  1238.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-opinit.c
  1239.  
  1240. insn-opinit.c: stamp-opinit ; @true
  1241. stamp-opinit : md genopinit $(srcdir)/move-if-change
  1242.     ./genopinit md > tmp-opinit.c
  1243.     $(srcdir)/move-if-change tmp-opinit.c insn-opinit.c
  1244.     touch stamp-opinit
  1245.  
  1246. insn-extract.o : insn-extract.c $(CONFIG_H) $(RTL_H)
  1247.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-extract.c
  1248.  
  1249. insn-extract.c: stamp-extract ; @true
  1250. stamp-extract : md genextract $(srcdir)/move-if-change
  1251.     ./genextract md > tmp-extract.c
  1252.     $(srcdir)/move-if-change tmp-extract.c insn-extract.c
  1253.     touch stamp-extract
  1254.  
  1255. insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h output.h real.h
  1256.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-peep.c
  1257.  
  1258. insn-peep.c: stamp-peep ; @true
  1259. stamp-peep : md genpeep $(srcdir)/move-if-change
  1260.     ./genpeep md > tmp-peep.c
  1261.     $(srcdir)/move-if-change tmp-peep.c insn-peep.c
  1262.     touch stamp-peep
  1263.  
  1264. insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) regs.h real.h output.h \
  1265.      insn-attr.h insn-config.h
  1266.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-attrtab.c
  1267.  
  1268. insn-attr.h: stamp-attr ; @true
  1269. stamp-attr : md genattr $(srcdir)/move-if-change
  1270.     ./genattr md > tmp-attr.h
  1271.     $(srcdir)/move-if-change tmp-attr.h insn-attr.h
  1272.     touch stamp-attr
  1273.  
  1274. insn-attrtab.c: stamp-attrtab ; @true
  1275. stamp-attrtab : md genattrtab $(srcdir)/move-if-change
  1276.     if cmp -s $(PREMADE_ATTRTAB_MD) md;    \
  1277.     then                    \
  1278.       echo Using $(PREMADE_ATTRTAB);    \
  1279.       cp $(PREMADE_ATTRTAB) tmp-attrtab.c;    \
  1280.     else                    \
  1281.       ./genattrtab md > tmp-attrtab.c;    \
  1282.     fi
  1283.     $(srcdir)/move-if-change tmp-attrtab.c insn-attrtab.c
  1284.     touch stamp-attrtab
  1285.  
  1286. insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h real.h conditions.h \
  1287.     hard-reg-set.h insn-config.h insn-flags.h insn-attr.h output.h recog.h \
  1288.     insn-codes.h
  1289.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-output.c
  1290.  
  1291. insn-output.c: stamp-output ; @true
  1292. stamp-output : md genoutput $(srcdir)/move-if-change
  1293.     ./genoutput md > tmp-output.c
  1294.     $(srcdir)/move-if-change tmp-output.c insn-output.c
  1295.     touch stamp-output
  1296.  
  1297. # Compile the programs that generate insn-* from the machine description.
  1298. # They are compiled with $(HOST_CC), and associated libraries,
  1299. # since they need to run on this machine
  1300. # even if GCC is being compiled to run on some other machine.
  1301.  
  1302. # $(CONFIG_H) is omitted from the deps of the gen*.o
  1303. # because these programs don't really depend on anything 
  1304. # about the target machine.  They do depend on config.h itself,
  1305. # since that describes the host machine.
  1306.  
  1307. # Pass the md file through cpp if the target requests it.
  1308. $(MD_FILE): $(MD_DEPS)
  1309.     rm -f $@
  1310.     $(MD_CPP) $(MD_CPPFLAGS) md.pre-cpp | sed 's/^# /; /g' > $@
  1311.  
  1312. genconfig : genconfig.o $(HOST_RTL) $(HOST_LIBDEPS)
  1313.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genconfig \
  1314.       genconfig.o $(HOST_RTL) $(HOST_LIBS)
  1315.  
  1316. genconfig.o : genconfig.c $(RTL_H) hconfig.h
  1317.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genconfig.c
  1318.  
  1319. genflags : genflags.o $(HOST_RTL) $(HOST_LIBDEPS)
  1320.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genflags \
  1321.      genflags.o $(HOST_RTL) $(HOST_LIBS)
  1322.  
  1323. genflags.o : genflags.c $(RTL_H) hconfig.h
  1324.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genflags.c
  1325.  
  1326. gencodes : gencodes.o $(HOST_RTL) $(HOST_LIBDEPS)
  1327.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o gencodes \
  1328.      gencodes.o $(HOST_RTL) $(HOST_LIBS)
  1329.  
  1330. gencodes.o : gencodes.c $(RTL_H) hconfig.h
  1331.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gencodes.c
  1332.  
  1333. genemit : genemit.o $(HOST_RTL) $(HOST_LIBDEPS)
  1334.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genemit \
  1335.      genemit.o $(HOST_RTL) $(HOST_LIBS)
  1336.  
  1337. genemit.o : genemit.c $(RTL_H) hconfig.h
  1338.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genemit.c
  1339.  
  1340. genopinit : genopinit.o $(HOST_RTL) $(HOST_LIBDEPS)
  1341.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genopinit \
  1342.      genopinit.o $(HOST_RTL) $(HOST_LIBS)
  1343.  
  1344. genopinit.o : genopinit.c $(RTL_H) hconfig.h
  1345.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genopinit.c
  1346.  
  1347. genrecog : genrecog.o $(HOST_RTL) $(HOST_LIBDEPS)
  1348.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genrecog \
  1349.      genrecog.o $(HOST_RTL) $(HOST_LIBS)
  1350.  
  1351. genrecog.o : genrecog.c $(RTL_H) hconfig.h
  1352.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genrecog.c
  1353.  
  1354. genextract : genextract.o $(HOST_RTL) $(HOST_LIBDEPS)
  1355.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genextract \
  1356.      genextract.o $(HOST_RTL) $(HOST_LIBS)
  1357.  
  1358. genextract.o : genextract.c $(RTL_H) hconfig.h insn-config.h
  1359.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genextract.c
  1360.  
  1361. genpeep : genpeep.o $(HOST_RTL) $(HOST_LIBDEPS)
  1362.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genpeep \
  1363.      genpeep.o $(HOST_RTL) $(HOST_LIBS)
  1364.  
  1365. genpeep.o : genpeep.c $(RTL_H) hconfig.h
  1366.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genpeep.c
  1367.  
  1368. genattr : genattr.o $(HOST_RTL) $(HOST_LIBDEPS)
  1369.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genattr \
  1370.      genattr.o $(HOST_RTL) $(HOST_LIBS)
  1371.  
  1372. genattr.o : genattr.c $(RTL_H) hconfig.h
  1373.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattr.c
  1374.  
  1375. genattrtab : genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_RTLANAL) $(HOST_LIBDEPS)
  1376.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genattrtab \
  1377.      genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_RTLANAL) $(HOST_LIBS)
  1378.  
  1379. genattrtab.o : genattrtab.c $(RTL_H) hconfig.h insn-config.h
  1380.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattrtab.c
  1381.  
  1382. genoutput : genoutput.o $(HOST_RTL) $(HOST_LIBDEPS)
  1383.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genoutput \
  1384.      genoutput.o $(HOST_RTL) $(HOST_LIBS)
  1385.  
  1386. genoutput.o : genoutput.c $(RTL_H) hconfig.h
  1387.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genoutput.c
  1388.  
  1389. # Compile the libraries to be used by gen*.
  1390. # If we are not cross-building, gen* use the same .o's that cc1 will use,
  1391. # and HOST_PREFIX_1 is `foobar', just to ensure these rules don't conflict
  1392. # with the rules for rtl.o, alloca.o, etc.
  1393. $(HOST_PREFIX_1)rtl.o: $(srcdir)/rtl.c $(CONFIG_H) $(RTL_H)
  1394.     rm -f $(HOST_PREFIX)rtl.c
  1395.     sed -e 's/config[.]h/hconfig.h/' $(srcdir)/rtl.c > $(HOST_PREFIX)rtl.c
  1396.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtl.c
  1397.  
  1398. $(HOST_PREFIX_1)print-rtl.o: $(srcdir)/print-rtl.c $(CONFIG_H) $(RTL_H)
  1399.     rm -f $(HOST_PREFIX)print-rtl.c
  1400.     sed -e 's/config[.]h/hconfig.h/' $(srcdir)/print-rtl.c > $(HOST_PREFIX)print-rtl.c
  1401.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)print-rtl.c
  1402.  
  1403. $(HOST_PREFIX_1)rtlanal.o: $(srcdir)/rtlanal.c $(CONFIG_H) $(RTL_H)
  1404.     rm -f $(HOST_PREFIX)rtlanal.c
  1405.     sed -e 's/config[.]h/hconfig.h/' $(srcdir)/rtlanal.c > $(HOST_PREFIX)rtlanal.c
  1406.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtlanal.c
  1407.  
  1408. $(HOST_PREFIX_1)alloca.o: alloca.c
  1409.     rm -f $(HOST_PREFIX)alloca.c
  1410.     cp $(srcdir)/alloca.c $(HOST_PREFIX)alloca.c
  1411.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)alloca.c
  1412.  
  1413. $(HOST_PREFIX_1)obstack.o: obstack.c
  1414.     rm -f $(HOST_PREFIX)obstack.c
  1415.     sed -e 's/config[.]h/hconfig.h/' $(srcdir)/obstack.c > $(HOST_PREFIX)obstack.c
  1416.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)obstack.c
  1417.  
  1418. $(HOST_PREFIX_1)malloc.o: malloc.c
  1419.     rm -f $(HOST_PREFIX)malloc.c
  1420.     sed -e 's/config[.]h/hconfig.h/' $(srcdir)/malloc.c > $(HOST_PREFIX)malloc.c
  1421.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)malloc.c
  1422.  
  1423. # This satisfies the dependency that we get if you cross-compile a compiler
  1424. # that does not need to compile alloca, malloc or whatever.
  1425. $(HOST_PREFIX_1): 
  1426.     touch $(HOST_PREFIX_1)
  1427.  
  1428. # Remake bytecode files.
  1429. # BI_ALL=bi-run.o
  1430. BI_ALL=
  1431. BC_ALL=bc-opname.h bc-opcode.h bc-arity.h
  1432. BI_OBJ=bi-parser.o bi-lexer.o bi-reverse.o
  1433.  
  1434.  
  1435. bc-emit.o : bc-emit.c $(CONFIG_H) $(RTL_H) real.h $(BYTECODE_H) \
  1436.      bc-arity.h bc-opcode.h bc-typecd.h bc-typecd.def bi-run.h bytetypes.h
  1437. bc-optab.o : bc-optab.c $(CONFIG_H) $(REAL_H) $(BYTECODE_H) \
  1438.         bc-opcode.h bc-typecd.h bc-typecd.def
  1439.  
  1440.  
  1441. bytecode: $(BI_ALL) $(BC_ALL)
  1442.  
  1443. bi-arity: bi-arity.o $(BI_OBJ) $(HOST_LIBDEPS)
  1444.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o bi-arity \
  1445.      bi-arity.o $(BI_OBJ) $(HOST_LIBS)
  1446. bi-opcode: bi-opcode.o $(BI_OBJ) $(HOST_LIBDEPS)
  1447.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o bi-opcode \
  1448.      bi-opcode.o $(BI_OBJ) $(HOST_LIBS)
  1449. bi-opname: bi-opname.o $(BI_OBJ) $(HOST_LIBDEPS)
  1450.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o bi-opname \
  1451.      bi-opname.o $(BI_OBJ) $(HOST_LIBS)
  1452.  
  1453. bi-run.o:    $(srcdir)/bi-run.c $(srcdir)/bi-run.h $(srcdir)/bc-typecd.h \
  1454.   bc-opname.h bc-arity.h bc-opcode.h
  1455.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/bi-run.c
  1456. $(srcdir)/bi-parser.c $(srcdir)/bi-parser.h: $(srcdir)/bi-parser.y
  1457.     cd $(srcdir); $(BISON) $(BISONFLAGS) -d bi-parser.y -o bi-parser.c
  1458. bi-parser.o:    $(srcdir)/bi-parser.c $(srcdir)/bi-defs.h hconfig.h
  1459.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
  1460.        $(srcdir)/bi-parser.c
  1461. bi-lexer.o:    $(srcdir)/bi-lexer.c $(srcdir)/bi-parser.h hconfig.h
  1462.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
  1463.        $(srcdir)/bi-lexer.c
  1464. bi-arity.o: bi-arity.c $(srcdir)/bi-defs.h hconfig.h
  1465.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
  1466.        $(srcdir)/bi-arity.c
  1467. bi-opcode.o: bi-opcode.c $(srcdir)/bi-defs.h hconfig.h
  1468.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
  1469.        $(srcdir)/bi-opcode.c
  1470. bi-opname.o: bi-opname.c $(srcdir)/bi-defs.h hconfig.h
  1471.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
  1472.        $(srcdir)/bi-opname.c
  1473. bi-reverse.o: bi-reverse.c $(srcdir)/bi-defs.h
  1474.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
  1475.        $(srcdir)/bi-reverse.c
  1476.  
  1477.  
  1478. bc-arity.h: stamp-bcarity ; @true
  1479. stamp-bcarity : $(srcdir)/bytecode.def bi-arity $(srcdir)/move-if-change
  1480.     ./bi-arity < $(srcdir)/bytecode.def >tmp-bc-arity.h
  1481.     $(srcdir)/move-if-change tmp-bc-arity.h bc-arity.h
  1482.     touch stamp-bcarity
  1483.  
  1484. bc-opcode.h: stamp-bcopcode ; @true
  1485. stamp-bcopcode : $(srcdir)/bytecode.def bi-opcode $(srcdir)/move-if-change
  1486.     ./bi-opcode < $(srcdir)/bytecode.def >tmp-bcopcd.h
  1487.     $(srcdir)/move-if-change tmp-bcopcd.h bc-opcode.h
  1488.     touch stamp-bcopcode
  1489.  
  1490. bc-opname.h: stamp-bcopname ; @true
  1491. stamp-bcopname : $(srcdir)/bytecode.def bi-opname $(srcdir)/move-if-change
  1492.     ./bi-opname < $(srcdir)/bytecode.def >tmp-bcopnm.h
  1493.     $(srcdir)/move-if-change tmp-bcopnm.h bc-opname.h
  1494.     touch stamp-bcopname
  1495.  
  1496. bytecode.mostlyclean:
  1497.     -rm -f bc-arity.h bc-opcode.h bc-opname.h
  1498.  
  1499. bytecode.distclean bytecode.clean:    bytecode.mostlyclean
  1500.     -rm -f bi-arity bi-opcode bi-opname bi-lexer
  1501.  
  1502. bytecode.maintainer-clean: bytecode.clean
  1503.     -rm -f bi-parser.c bi-parser.h
  1504.  
  1505.  
  1506. # Remake cpp and protoize.
  1507.  
  1508. # Making the preprocessor
  1509. cpp: cccp
  1510.     -rm -f cpp
  1511.     $(HARDLINK) cccp cpp
  1512. cccp: cccp.o cexp.o version.o $(LIBDEPS)
  1513.     $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
  1514. cexp.o: $(srcdir)/cexp.c $(CONFIG_H)
  1515.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/cexp.c
  1516. $(srcdir)/cexp.c: $(srcdir)/cexp.y
  1517.     cd $(srcdir); $(BISON) -o cexp.c cexp.y
  1518. cccp.o: cccp.c $(CONFIG_H) pcp.h version.c config.status
  1519. # The reason we use $(libdir)/g++-include rather than using libsubdir
  1520. # is for compatibility with the current version of libg++.
  1521.     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
  1522.       -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
  1523.       -DGPLUSPLUS_INCLUDE_DIR=\"$(gxx_include_dir)\" \
  1524.       -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
  1525.       -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
  1526.       -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \
  1527.       -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
  1528.  
  1529. # Note for the stamp targets, we run the program `true' instead of
  1530. # having an empty command (nothing following the semicolon).
  1531.  
  1532. proto: config.status protoize unprotoize SYSCALLS.c.X
  1533.  
  1534. protoize: protoize.o getopt.o getopt1.o getpwd.o version.o $(LIBDEPS)
  1535.     $(CC) $(ALL_CFLAGS) $(LDFLAGS) \
  1536.       protoize.o getopt.o getopt1.o getpwd.o version.o $(LIBS) -o protoize
  1537. protoize.o: stamp-proto ; @true
  1538.  
  1539. unprotoize: unprotoize.o getopt.o getopt1.o getpwd.o version.o $(LIBDEPS)
  1540.     $(CC) $(ALL_CFLAGS) $(LDFLAGS) \
  1541.       unprotoize.o getopt.o getopt1.o getpwd.o version.o $(LIBS) \
  1542.        -o unprotoize
  1543. unprotoize.o:    stamp-proto ; @true
  1544.  
  1545. stamp-proto:    $(srcdir)/protoize.c getopt.h $(CONFIG_H)
  1546.     $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
  1547.           -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
  1548.       -DGPLUSPLUS_INCLUDE_DIR=\"$(gxx_include_dir)\" \
  1549.           -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
  1550.       -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \
  1551.       -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
  1552.       -DSTD_PROTO_DIR=\"$(libsubdir)\" \
  1553.       -DUNPROTOIZE $(srcdir)/protoize.c
  1554.     mv protoize.o unprotoize.o
  1555.     $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
  1556.           -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
  1557.       -DGPLUSPLUS_INCLUDE_DIR=\"$(gxx_include_dir)\" \
  1558.           -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
  1559.       -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \
  1560.       -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
  1561.       -DSTD_PROTO_DIR=\"$(libsubdir)\" \
  1562.       $(srcdir)/protoize.c
  1563.     touch stamp-proto
  1564.  
  1565. getopt.o: $(srcdir)/getopt.c getopt.h
  1566.     $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/getopt.c
  1567. getopt1.o: $(srcdir)/getopt1.c getopt.h
  1568.     $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/getopt1.c
  1569.  
  1570. # This info describes the target machine, so compile with GCC just built.
  1571. SYSCALLS.c.X: $(srcdir)/sys-types.h $(srcdir)/sys-protos.h $(GCC_PASSES) stmp-int-hdrs
  1572.     -rm -f SYSCALLS.c tmp-SYSCALLS.s
  1573.     cat $(srcdir)/sys-types.h $(srcdir)/sys-protos.h > SYSCALLS.c
  1574.     $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
  1575.       -aux-info $@ -S -o tmp-SYSCALLS.s SYSCALLS.c
  1576.     -rm -f SYSCALLS.c tmp-SYSCALLS.s
  1577.  
  1578.  
  1579. test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES)
  1580.     -rm -f tmp-proto.[cso]
  1581.     cp $(srcdir)/protoize.c tmp-proto.c
  1582.     chmod u+w tmp-proto.c
  1583.     ./protoize -N -B ./ -x getopt.h -c "-B./ -Wall -Wwrite-strings \
  1584.       $(CFLAGS) $(INCLUDES) \
  1585.       -DGCC_INCLUDE_DIR=0 \
  1586.       -DGPLUSPLUS_INCLUDE_DIR=0 \
  1587.       -DCROSS_INCLUDE_DIR=0 \
  1588.       -DTOOL_INCLUDE_DIR=0 \
  1589.       -DSTD_PROTO_DIR=0" tmp-proto.c
  1590.     @echo '**********' Expect 400 lines of differences.
  1591.     -diff $(srcdir)/protoize.c tmp-proto.c > tmp-proto.diff
  1592.     -wc -l tmp-proto.diff
  1593.     ./unprotoize -N -x getopt.h -c "-B./ -Wall -Wwrite-strings \
  1594.       $(CFLAGS) $(INCLUDES) \
  1595.       -DGCC_INCLUDE_DIR=0 \
  1596.       -DGPLUSPLUS_INCLUDE_DIR=0 \
  1597.       -DCROSS_INCLUDE_DIR=0 \
  1598.       -DTOOL_INCLUDE_DIR=0 \
  1599.       -DSTD_PROTO_DIR=0" tmp-proto.c
  1600.     @echo Expect zero differences.
  1601.     diff $(srcdir)/protoize.c tmp-proto.c | cat
  1602.     -rm -f tmp-proto.[cso]
  1603.  
  1604. # Build the include directory.  The stamp files are stmp-* rather than
  1605. # stamp-* so that mostlyclean does not force the include directory to
  1606. # be rebuilt.
  1607.  
  1608. # Build the include directory except for float.h (which depends upon
  1609. # enquire).
  1610. stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h objc-headers
  1611. # Copy in the headers provided with gcc.
  1612. # The sed command gets just the last file name component;
  1613. # this is necessary because VPATH could add a dirname.
  1614. # Using basename would be simpler, but some systems don't have it.
  1615.     objdir=`pwd`; \
  1616.     cd $(srcdir); \
  1617.     for file in $(USER_H); do \
  1618.       realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
  1619.       rm -f $$objdir/include/$$realfile; \
  1620.       cp ginclude/$$realfile $$objdir/include; \
  1621.       chmod a+r $$objdir/include/$$realfile; \
  1622.     done
  1623.     rm -f include/limits.h
  1624.     cp xlimits.h include/limits.h
  1625.     chmod a+r include/limits.h
  1626. # Install the README
  1627.     rm -f include/README
  1628.     cp $(srcdir)/README-fixinc include/README
  1629.     chmod a+r include/README
  1630.     touch stmp-int-hdrs
  1631.  
  1632. # Build the complete include directory.
  1633. stmp-headers: stmp-int-hdrs gfloat.h
  1634.     rm -f include/float.h
  1635.     cp gfloat.h include/float.h
  1636.     chmod a+r include/float.h
  1637.     touch stmp-headers
  1638.  
  1639. # Build fixed copies of system files.
  1640. stmp-fixinc: $(srcdir)/$(FIXINCLUDES) gsyslimits.h
  1641.     rm -rf include
  1642.     mkdir include
  1643.     if [ x$(FIXINCLUDES) != xMakefile.in ]; \
  1644.     then \
  1645.       for dir in $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS); do \
  1646.         if [ -d $$dir ]; \
  1647.         then \
  1648.           $(SHELL) $(srcdir)/$(FIXINCLUDES) include $$dir; \
  1649.         else true; fi; \
  1650.       done; \
  1651.     else true; \
  1652.     fi
  1653.     rm -f include/syslimits.h
  1654.     if [ -f include/limits.h ]; then \
  1655.       mv include/limits.h include/syslimits.h; \
  1656.     else \
  1657.       cp $(srcdir)/gsyslimits.h include/syslimits.h; \
  1658.     fi
  1659.     chmod a+r include/syslimits.h
  1660.     touch stmp-fixinc
  1661.  
  1662. # copy objc header files into build directory
  1663. objc-headers: stmp-fixinc
  1664.     if [ -d include ]; then true; else mkdir include; fi
  1665.     if [ -d objc ]; then true; else mkdir objc; fi
  1666.     thisdir1=`pwd`; \
  1667.     srcdir1=`cd $(srcdir); pwd`; \
  1668.     cd objc; \
  1669.     $(MAKE) -f $${srcdir1}/objc/Makefile copy-headers \
  1670.     srcdir=$${srcdir1} tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
  1671.     GCC_FOR_TARGET="$${thisdir1}/$(XGCC) -B$${thisdir1}/" \
  1672.     GCC_CFLAGS="$(GCC_CFLAGS)" incinstalldir=$${thisdir1}/include
  1673.     touch objc-headers
  1674.  
  1675. # Files related to the fixproto script.
  1676.  
  1677. deduced.h: $(GCC_PASSES) $(srcdir)/scan-types.sh stmp-int-hdrs
  1678.     CC="$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -I. -I$(srcdir) -Iinclude -I${SYSTEM_HEADER_DIR}"; \
  1679.       export CC; \
  1680.       $(SHELL) $(srcdir)/scan-types.sh "$(srcdir)" >tmp-deduced.h
  1681.     mv tmp-deduced.h deduced.h
  1682.  
  1683. gen-protos: gen-protos.o scan.o $(HOST_LIBDEPS)
  1684.     ${HOST_CC} $(HOST_CFLAGS) $(HOST_LDFLAGS) -o gen-protos \
  1685.       gen-protos.o scan.o $(HOST_LIBS)
  1686.  
  1687. gen-protos.o: gen-protos.c scan.h hconfig.h
  1688.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gen-protos.c
  1689.  
  1690. scan.o: scan.c scan.h hconfig.h
  1691.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan.c
  1692.  
  1693. xsys-protos.h: $(GCC_PASSES) $(srcdir)/sys-protos.h deduced.h gen-protos Makefile
  1694.     cat deduced.h $(srcdir)/sys-protos.h > fixtmp.c
  1695.     $(GCC_FOR_TARGET) fixtmp.c -w -U__SIZE_TYPE__ -U__PTRDIFF_TYPE_ -U__WCHAR_TYPE__ -E \
  1696.       | sed -e 's/    / /g' -e 's/ *(/ (/g' -e 's/ [ ]*/ /g' -e 's/( )/()/' \
  1697.       | ./gen-protos >xsys-protos.h
  1698.     rm -rf fixtmp.c
  1699.  
  1700. fix-header: fix-header.o scan-decls.o scan.o xsys-protos.h $(HOST_LIBDEPS)
  1701.     $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o fix-header \
  1702.       fix-header.o scan-decls.o scan.o $(HOST_LIBS)
  1703.  
  1704. fix-header.o: fix-header.c obstack.h scan.h xsys-protos.h hconfig.h
  1705.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/fix-header.c
  1706.  
  1707. scan-decls.o: scan-decls.c scan.h hconfig.h
  1708.     $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan-decls.c
  1709.  
  1710. # stmp-fixproto depends on this, not on fix-header directly.
  1711. # The idea is to make sure fix-header gets built,
  1712. # but not rerun fixproto after each stage
  1713. # just because fix-header's mtime has changed.
  1714. fixhdr.ready: fix-header
  1715.     -if [ -f fixhdr.ready ] ; then \
  1716.         true; \
  1717.     else \
  1718.         touch fixhdr.ready; \
  1719.     fi
  1720.  
  1721. # stmp-headers is to make sure fixincludes has already finished.
  1722. # The if statement is so that we don't run fixproto a second time
  1723. # if it has already been run on the files in `include'.
  1724. stmp-fixproto: fixhdr.ready fixproto stmp-headers
  1725.     @echo "Various warnings and error messages from fixproto are normal"
  1726.     -if [ -d include ] ; then true; else mkdir include; fi
  1727.     -if [ -f include/fixed ] ; then true; \
  1728.     else \
  1729.       : This line works around a 'make' bug in BSDI 1.1.; \
  1730.       CPP="$(GCC_FOR_TARGET) -E"; export CPP; \
  1731.         FIXPROTO_DEFINES="$(FIXPROTO_DEFINES)"; export FIXPROTO_DEFINES; \
  1732.         $(SHELL) ${srcdir}/fixproto include include $(SYSTEM_HEADER_DIR); \
  1733.       touch include/fixed; \
  1734.     fi
  1735.     touch stmp-fixproto
  1736.  
  1737. # Remake the info files.
  1738.  
  1739. doc: info
  1740. info: $(srcdir)/cpp.info $(srcdir)/gcc.info lang.info
  1741.  
  1742. $(srcdir)/cpp.info: cpp.texi
  1743.     cd $(srcdir); $(MAKEINFO) cpp.texi
  1744.  
  1745. $(srcdir)/gcc.info: gcc.texi extend.texi install.texi invoke.texi \
  1746.         md.texi rtl.texi tm.texi 
  1747.     cd $(srcdir); $(MAKEINFO) gcc.texi
  1748.  
  1749. dvi: $(srcdir)/gcc.dvi $(srcdir)/cpp.dvi lang.dvi
  1750.  
  1751. # This works with GNU Make's default rule.
  1752. $(srcdir)/gcc.dvi: gcc.texi extend.texi install.texi invoke.texi \
  1753.         md.texi rtl.texi tm.texi 
  1754.     $(TEXI2DVI) $<
  1755.  
  1756. # This works with GNU Make's default rule.
  1757. $(srcdir)/cpp.dvi: cpp.texi
  1758.     $(TEXI2DVI) $<
  1759.  
  1760. $(srcdir)/INSTALL: install1.texi install.texi
  1761.     $(MAKEINFO) -D INSTALLONLY --no-header --no-split \
  1762.       `echo $(srcdir)/install1.texi | sed 's,^\./,,'`
  1763.  
  1764. # Deletion of files made during compilation.
  1765. # There are four levels of this:
  1766. #   `mostlyclean', `clean', `distclean' and `maintainer-clean'.
  1767. # `mostlyclean' is useful while working on a particular type of machine.
  1768. # It deletes most, but not all, of the files made by compilation.
  1769. # It does not delete libgcc.a or its parts, so it won't have to be recompiled.
  1770. # `clean' deletes everything made by running `make all'.
  1771. # `distclean' also deletes the files made by config.
  1772. # `maintainer-clean' also deletes everything that could be regenerated
  1773. # automatically.  We remove as much from the language subdirectories as we can
  1774. # (less duplicated code).
  1775.  
  1776.  
  1777. mostlyclean: bytecode.mostlyclean lang.mostlyclean
  1778.     -rm -f $(STAGESTUFF)
  1779. # Clean the objc subdir if we created one.
  1780.     if [ -d objc ]; then \
  1781.       srcdir1=`cd $(srcdir); pwd`; \
  1782.       cd objc; $(MAKE) -f $$srcdir1/objc/Makefile mostlyclean; \
  1783.     else true; fi
  1784.     -rm -f libobjc.a
  1785. # Delete the temporary source copies for cross compilation.
  1786.     -rm -f $(HOST_PREFIX_1)rtl.c $(HOST_PREFIX_1)rtlanal.c
  1787.     -rm -f $(HOST_PREFIX_1)alloca.c $(HOST_PREFIX_1)malloc.c
  1788.     -rm -f $(HOST_PREFIX_1)obstack.c 
  1789. # Delete the temp files made in the course of building libgcc.a.
  1790.     -rm -f tmplibgcc* tmpcopy xlimits.h
  1791.     for name in $(LIB1FUNCS); do rm -f $${name}.c; done
  1792. # Delete other temporary files.
  1793.     -rm -f tmp-float.h tmp-gcc.xtar.gz
  1794.     -rm -f tmp-foo1 tmp-foo2 tmp-proto.* tmp-unproto.1 tmp-SYSCALLS.s
  1795.     -rm -f tmp-c-parse.y tmp-objc-prs.y tmp-gperf.h
  1796. # Delete the stamp files.
  1797.     -rm -f stamp-* tmp-*
  1798.     -rm -f */stamp-* */tmp-*
  1799. # Delete debugging dump files.
  1800.     -rm -f *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
  1801.     -rm -f *.dbr *.jump2 *.sched *.cse2 *.sched2 *.stack
  1802.     -rm -f */*.greg */*.lreg */*.combine */*.flow */*.cse */*.jump */*.rtl
  1803.     -rm -f */*.tree */*.loop */*.dbr */*.jump2 */*.sched */*.cse2
  1804.     -rm -f */*.sched2 */*.stack
  1805. # Delete some files made during installation.
  1806.     -rm -f specs gfloat.h float.h-* enquire SYSCALLS.c.X SYSCALLS.c
  1807.     -rm -f collect collect2 mips-tfile mips-tdump alloca.s
  1808. # Delete files generated for fixproto
  1809.     -rm -rf fix-header xsys-protos.h deduced.h tmp-deduced.h \
  1810.       gen-protos fixproto.list fixtmp.* fixhdr.ready
  1811. # Delete unwanted output files from TeX.
  1812.     -rm -f *.toc *.log *.vr *.fn *.cp *.tp *.ky *.pg
  1813.     -rm -f */*.toc */*.log */*.vr */*.fn */*.cp */*.tp */*.ky */*.pg
  1814. # Delete sorted indices we don't actually use.
  1815.     -rm -f gcc.vrs gcc.kys gcc.tps gcc.pgs gcc.fns
  1816. # Delete core dumps.
  1817.     -rm -f core */core
  1818.  
  1819. # Delete all files made by compilation
  1820. # that don't exist in the distribution.
  1821. clean: mostlyclean bytecode.clean lang.clean
  1822. # It may not be quite desirable to delete unprotoize.c here,
  1823. # but the spec for `make clean' requires it.
  1824. # Using unprotoize.c is not quite right in the first place, 
  1825. # but what better way is there?
  1826.     -rm -f libgcc.a libgcc1.a libgcc2.a libgcc2.ready
  1827.     -rm -f libgcc1.null $(LIB2FUNCS_EXTRA)
  1828.     -rm -f *.dvi
  1829.     -rm -f */*.dvi
  1830.     -if [ -f md.pre-cpp ]; then \
  1831.       rm -f md ; \
  1832.     fi
  1833. # Delete the include directory.
  1834.     -rm -rf stmp-* include objc-headers
  1835.     -rm -f */stmp-*
  1836. # Delete files used by the "multilib" facility (including libgcc subdirs).
  1837.     -rm -f multilib.h tmpmultilib*
  1838.     -if [ "x$(MULTILIB_DIRNAMES)" != x ] ; then \
  1839.       rm -rf $(MULTILIB_DIRNAMES); \
  1840.     else if [ "x$(MULTILIB_OPTIONS)" != x ] ; then \
  1841.       rm -rf `echo $(MULTILIB_OPTIONS) | sed -e 's/\// /g'`; \
  1842.     fi ; fi
  1843.  
  1844. # Delete all files that users would normally create
  1845. # while building and installing GCC.
  1846. distclean: clean bytecode.distclean lang.distclean
  1847.     -rm -f tm.h aux-output.c config.h config.status tconfig.h hconfig.h
  1848.     -rm -f md md.pre-cpp
  1849.     -rm -f Makefile *.oaux
  1850.     -rm -fr stage1 stage2 stage3 stage4
  1851.     -rm -f */stage1 */stage2 */stage3 */stage4 */include
  1852.     -rm -f cp-parse.output
  1853.     -rm -f objc-parse.output
  1854.     -rm -f c-parse.output
  1855.  
  1856. # Delete anything likely to be found in the source directory
  1857. # that shouldn't be in the distribution.
  1858. extraclean: distclean lang.extraclean
  1859.     -rm -rf =* ./"#"* *~* config/=* config/"#"* config/*~*
  1860.     -rm -f patch* *.orig *.rej config/patch* config/*.orig config/*.rej
  1861.     -rm -f config/*/=* config/*/"#"* config/*/*~*
  1862.     -rm -f config/*/*.orig config/*/*.rej
  1863.     -rm -f *.dvi *.oaux *.d *.[zZ] *.gz
  1864.     -rm -f *.tar *.xtar *diff *.diff.* *.tar.* *.xtar.* *diffs
  1865.     -rm -f *lose config/*lose config/*/*lose
  1866.     -rm -f *.s *.s[0-9] *.i install1.texi config/ChangeLog
  1867.     -rm -f */=* */"#"* */*~*
  1868.     -rm -f */patch* */*.orig */*.rej
  1869.     -rm -f */*.dvi */*.oaux */*.d */*.[zZ] */*.gz
  1870.     -rm -f */*.tar */*.xtar */*diff */*.diff.* */*.tar.* */*.xtar.* */*diffs
  1871.     -rm -f */*lose */*.s */*.s[0-9] */*.i
  1872.  
  1873. # Get rid of every file that's generated from some other file.
  1874. # Most of these files ARE PRESENT in the GCC distribution.
  1875. maintainer-clean: distclean bytecode.maintainer-clean lang.maintainer-clean
  1876.     -rm -f c-parse.y c-gperf.h objc-parse.y
  1877.     -rm -f objc-parse.c objc-parse.output
  1878.     -rm -f c-parse.c c-parse.h c-parse.output
  1879.     -rm -f cexp.c cexp.output TAGS 
  1880.     -rm -f cpp.info* cpp.??s cpp.*aux
  1881.     -rm -f gcc.info* gcc.??s gcc.*aux
  1882.  
  1883. # Entry points `install' and `uninstall'.
  1884. # Also use `install-collect2' to install collect2 when the config files don't.
  1885.  
  1886. # The semicolon is to prevent the install.sh -> install default rule
  1887. # from doing anything.  Having it run true helps avoid problems and
  1888. # noise from versions of make which don't like to have null commands.
  1889. # Amiga Hack - replace the normal install target with one that just
  1890. # installs the ada relevant pieces.
  1891. #install: $(INSTALL_TARGET) ; @true
  1892.  
  1893. install: ada.install-common
  1894.     -rm -f $(libsubdir)/gnat1
  1895.     $(INSTALL_PROGRAM) gnat1 $(libsubdir)/gnat1
  1896.  
  1897. # Copy the compiler files into directories where they will be run.
  1898. install-normal: install-common $(INSTALL_HEADERS) $(INSTALL_LIBGCC) \
  1899.     install-man install-info lang.install-normal
  1900.  
  1901. # Do nothing while making gcc with a cross-compiler. The person who
  1902. # makes gcc for the target machine has to know how to put a complete
  1903. # gcc together by hand.
  1904. install-build: force
  1905.     @echo You have to install gcc on your target machine by hand.
  1906.  
  1907. # Run this on the target machine
  1908. # to finish installation of cross compiler.
  1909. install-cross-rest: install-float-h-cross
  1910.  
  1911. # Install float.h for cross compiler.
  1912. # Run this on the target machine!
  1913. install-float-h-cross: install-dir
  1914. #    if [ -f enquire ] ; then true; else false; fi
  1915. # Note: don't use -.  We should fail right away if enquire was not made.
  1916.     ./enquire -f > $(tmpdir)/float.h
  1917.     -rm -f $(libsubdir)/include/float.h
  1918.     $(INSTALL_DATA) $(tmpdir)/float.h $(libsubdir)/include/float.h
  1919.     -rm -f $(tmpdir)/float.h
  1920.     chmod a-x $(libsubdir)/include/float.h
  1921.  
  1922. # Create the installation directory.
  1923. install-dir:
  1924.     -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi
  1925.     -if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib ; fi
  1926. # This dir isn't currently searched by cpp.
  1927. #    -if [ -d $(libdir)/gcc-lib/include ] ; then true ; else mkdir $(libdir)/gcc-lib/include ; fi
  1928.     -if [ -d $(libdir)/gcc-lib/$(target) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target) ; fi
  1929.     -if [ -d $(libdir)/gcc-lib/$(target)/$(version) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target)/$(version) ; fi
  1930.     -if [ -d $(libdir)/gcc-lib/$(target)/$(version)/include ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target)/$(version)/include ; fi
  1931.     -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
  1932.     -if [ -d $(includedir) ] ; then true ; else mkdir $(includedir) ; fi
  1933.     -if [ -d $(tooldir) ] ; then true ; else mkdir $(tooldir) ; fi
  1934.     -if [ -d $(assertdir) ] ; then true ; else mkdir $(assertdir) ; fi
  1935.     -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
  1936. # We don't use mkdir -p to create the parents of mandir,
  1937. # because some systems don't support it.
  1938. # Instead, we use this technique to create the immediate parent of mandir.
  1939.     -parent=`echo $(mandir)|sed -e 's@/[^/]*$$@@'`; \
  1940.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  1941.     -if [ -d $(mandir) ] ; then true ; else mkdir $(mandir) ; fi
  1942.  
  1943. # Install the compiler executables built during cross compilation.
  1944. install-common: native install-dir xgcc $(EXTRA_PARTS) lang.install-common
  1945.     for file in $(COMPILERS); do \
  1946.       if [ -f $$file ] ; then \
  1947.         rm -f $(libsubdir)/$$file; \
  1948.         $(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \
  1949.       else true; \
  1950.       fi; \
  1951.     done
  1952.     for file in $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2) ..; do \
  1953.       if [ x"$$file" != x.. ]; then \
  1954.         rm -f $(libsubdir)/$$file; \
  1955.         $(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \
  1956.       else true; fi; \
  1957.     done
  1958.     for file in $(EXTRA_PARTS) ..; do \
  1959.       if [ x"$$file" != x.. ]; then \
  1960.         rm -f $(libsubdir)/$$file; \
  1961.         $(INSTALL_DATA) $$file $(libsubdir)/$$file; \
  1962.       else true; fi; \
  1963.     done
  1964. # Don't mess with specs if it doesn't exist yet.
  1965.     -if [ -f specs ] ; then \
  1966.       rm -f $(libsubdir)/specs; \
  1967.       $(INSTALL_DATA) specs $(libsubdir)/specs; \
  1968.     fi
  1969. # Install the driver program as $(target)-gcc
  1970. # and also as either gcc (if native) or $(tooldir)/bin/gcc.
  1971.     -if [ -f gcc-cross ] ; then \
  1972.       rm -f $(bindir)/$(target)-gcc; \
  1973.       $(INSTALL_PROGRAM) gcc-cross $(bindir)/$(target)-gcc; \
  1974.       if [ -d $(tooldir)/bin/. ] ; then \
  1975.         rm -f $(tooldir)/bin/gcc; \
  1976.         $(INSTALL_PROGRAM) gcc-cross $(tooldir)/bin/gcc; \
  1977.       else true; fi; \
  1978.     else \
  1979.       rm -f $(bindir)/gcc; \
  1980.       $(INSTALL_PROGRAM) xgcc $(bindir)/gcc; \
  1981.       rm -f $(bindir)/$(target)-gcc-1; \
  1982.       $(HARDLINK) $(bindir)/gcc $(bindir)/$(target)-gcc-1; \
  1983.       mv $(bindir)/$(target)-gcc-1 $(bindir)/$(target)-gcc; \
  1984.     fi
  1985. # Install protoize if it was compiled.
  1986.     -if [ -f protoize ]; \
  1987.     then \
  1988.         rm -f $(bindir)/protoize; \
  1989.         $(INSTALL_PROGRAM) protoize $(bindir)/protoize; \
  1990.         rm -f $(bindir)/unprotoize; \
  1991.         $(INSTALL_PROGRAM) unprotoize $(bindir)/unprotoize; \
  1992.         rm -f $(libsubdir)/SYSCALLS.c.X; \
  1993.         $(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
  1994.         chmod a-x $(libsubdir)/SYSCALLS.c.X; \
  1995.     fi
  1996.     -rm -f $(libsubdir)/cpp
  1997.     $(INSTALL_PROGRAM) cpp $(libsubdir)/cpp
  1998.  
  1999. # Install the info files.
  2000. install-info: doc install-dir lang.install-info
  2001.     -rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
  2002.     cd $(srcdir); for f in cpp.info* gcc.info*; \
  2003.     do $(INSTALL_DATA) $$f $(infodir)/$$f; done
  2004.     -chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info*
  2005.  
  2006. # Install the man pages.
  2007. install-man: install-dir $(srcdir)/gcc.1 $(srcdir)/cccp.1 lang.install-man
  2008.     -rm -f $(mandir)/gcc$(manext)
  2009.     -$(INSTALL_DATA) $(srcdir)/gcc.1 $(mandir)/gcc$(manext)
  2010.     -chmod a-x $(mandir)/gcc$(manext)
  2011.     -rm -f $(mandir)/cccp$(manext)
  2012.     -$(INSTALL_DATA) $(srcdir)/cccp.1 $(mandir)/cccp$(manext)
  2013.     -chmod a-x $(mandir)/cccp$(manext)
  2014.  
  2015. # Install the library.
  2016. install-libgcc: libgcc.a install-dir
  2017.     -if [ -f libgcc.a ] ; then \
  2018.       rm -f $(libsubdir)/libgcc.a; \
  2019.       $(INSTALL_DATA) libgcc.a $(libsubdir)/libgcc.a; \
  2020.       if $(RANLIB_TEST) ; then \
  2021.         (cd $(libsubdir); $(RANLIB) libgcc.a); else true; fi; \
  2022.       chmod a-x $(libsubdir)/libgcc.a; \
  2023.     else true; fi
  2024.  
  2025. # Install multiple versions of libgcc.a.
  2026. install-multilib: stmp-multilib install-dir
  2027.     for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \
  2028.       dir=`echo $$i | sed -e 's/;.*$$//'`; \
  2029.       if [ -d $(libsubdir)/$${dir} ]; then true; else mkdir $(libsubdir)/$${dir}; fi; \
  2030.       rm -f $(libsubdir)/$${dir}/libgcc.a; \
  2031.       $(INSTALL_DATA) $${dir}/libgcc.a $(libsubdir)/$${dir}/libgcc.a; \
  2032.       if $(RANLIB_TEST); then \
  2033.         (cd $(libsubdir)/$${dir}; $(RANLIB) libgcc.a); else true; fi; \
  2034.       chmod a-x $(libsubdir)/$${dir}/libgcc.a; \
  2035.     done
  2036.  
  2037. # Install the objc run time library.
  2038. install-libobjc: libobjc.a install-dir
  2039.     -if [ -f libobjc.a ] ; then \
  2040.       rm -f $(libsubdir)/libobjc.a; \
  2041.       $(INSTALL_DATA) libobjc.a $(libsubdir)/libobjc.a; \
  2042.       if $(RANLIB_TEST) ; then \
  2043.         (cd $(libsubdir); $(RANLIB) libobjc.a); else true; fi; \
  2044.       chmod a-x $(libsubdir)/libobjc.a; \
  2045.     else true; fi
  2046.  
  2047. # Install all the header files built in the include subdirectory.
  2048. install-headers: install-include-dir $(INSTALL_HEADERS_DIR) install-assert-h
  2049. # Fix symlinks to absolute paths in the installed include directory to
  2050. # point to the installed directory, not the build directory.
  2051.     -files=`cd $(libsubdir)/include; find . -type l -print 2>/dev/null`; \
  2052.     if [ $$? -eq 0 ]; then \
  2053.       dir=`cd include; pwd`; \
  2054.       for i in $$files; do \
  2055.         dest=`ls -ld $(libsubdir)/include/$$i | sed -n 's/.*-> //p'`; \
  2056.         if expr "$$dest" : "$$dir.*" > /dev/null; then \
  2057.           rm -f $(libsubdir)/include/$$i; \
  2058.           $(HARDLINK) -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(libsubdir)/include/$$i; \
  2059.         fi; \
  2060.       done; \
  2061.     fi
  2062.  
  2063. # Create or recreate the gcc private include file directory.
  2064. install-include-dir: install-dir
  2065.     -rm -rf $(libsubdir)/include
  2066.     mkdir $(libsubdir)/include
  2067.     -chmod a+rx $(libsubdir)/include
  2068.  
  2069. # Install the include directory using tar.
  2070. install-headers-tar: stmp-headers $(STMP_FIXPROTO) install-include-dir
  2071.     (cd include; \
  2072.      tar -cf - .; exit 0) | (cd $(libsubdir)/include; tar $(TAROUTOPTS) - )
  2073. # /bin/sh on some systems returns the status of the first tar,
  2074. # and that can lose with GNU tar which always writes a full block.
  2075. # So use `exit 0' to ignore its exit status.
  2076.  
  2077. # Install the include directory using cpio.
  2078. install-headers-cpio: stmp-headers $(STMP_FIXPROTO) install-include-dir
  2079.     (cd include; find . -print) | (cd include; cpio -pdum $(libsubdir)/include)
  2080.  
  2081. # Install the include directory using simple recursive copy.
  2082. install-headers-cp: stmp-headers install-include-dir
  2083.     cd include; cp -r . $(libsubdir)/include
  2084.  
  2085. # Put assert.h where it won't override GNU libc's assert.h.
  2086. # It goes in a dir that is searched after GNU libc's headers;
  2087. # thus, the following conditionals are no longer needed.
  2088. # But it's not worth deleting them now.
  2089. ## Don't replace the assert.h already there if it is not from GCC.
  2090. ## This code would be simpler if it tested for -f ... && ! grep ...
  2091. ## but supposedly the ! operator is missing in sh on some systems.
  2092. install-assert-h: assert.h install-dir
  2093.     if [ -f $(assertdir)/assert.h ]; \
  2094.     then \
  2095.       if grep "__eprintf" $(assertdir)/assert.h >/dev/null; \
  2096.         then \
  2097.         rm -f $(assertdir)/assert.h; \
  2098.         $(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
  2099.         chmod a-x $(assertdir)/assert.h; \
  2100.       else true; \
  2101.       fi; \
  2102.     else \
  2103.       rm -f $(assertdir)/assert.h; \
  2104.       $(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
  2105.       chmod a-x $(assertdir)/assert.h; \
  2106.     fi
  2107.  
  2108. # Use this target to install the program `collect2' under the name `ld'.
  2109. install-collect2: collect2 install-dir
  2110.     $(INSTALL_PROGRAM) collect2 $(libsubdir)/ld
  2111. # Install the driver program as $(libsubdir)/gcc for collect2.
  2112.     $(INSTALL_PROGRAM) xgcc $(libsubdir)/gcc
  2113.  
  2114. # Cancel installation by deleting the installed files.
  2115. uninstall: lang.uninstall
  2116.     -rm -rf $(libsubdir)
  2117.     -rm -rf $(bindir)/gcc
  2118.     -rm -rf $(bindir)/protoize
  2119.     -rm -rf $(bindir)/unprotoize
  2120.     -rm -rf $(mandir)/gcc$(manext)
  2121.     -rm -rf $(mandir)/cccp$(manext)
  2122.     -rm -rf $(mandir)/protoize$(manext)
  2123.     -rm -rf $(mandir)/unprotoize$(manext)
  2124.  
  2125. # These exist for maintenance purposes.
  2126.  
  2127. # Update the tags table.
  2128. TAGS: force
  2129.     cd $(srcdir);                            \
  2130.     mkdir temp;                            \
  2131.     mv -f c-parse.[ch] objc-parse.c cexp.c =*.[chy] temp;        \
  2132.     etags *.y *.h *.c;                        \
  2133.     mv temp/* .;                            \
  2134.     rmdir temp
  2135.  
  2136. # Create the distribution tar file.
  2137. #dist: gcc-$(version).tar.gz
  2138. dist: gcc.xtar.gz
  2139.  
  2140. gcc.xtar.gz: gcc.xtar
  2141.     gzip --best < gcc.xtar > tmp-gcc.xtar.gz
  2142.     mv tmp-gcc.xtar.gz gcc.xtar.gz
  2143.  
  2144. #gcc-$(version).tar.gz: gcc-$(version).tar
  2145. #    gzip < gcc-$(version).tar > gcc-$(version).tar.gz
  2146.  
  2147. #gcc-$(version).tar:
  2148. gcc.xtar: distdir
  2149. # Make the distribution.
  2150.     tar -chf gcc.xtar gcc-$(version)
  2151.  
  2152. # This target exists to do the initial work before the language specific
  2153. # stuff gets done.
  2154. distdir-start: doc $(srcdir)/INSTALL c-parse.y $(srcdir)/c-gperf.h objc-parse.y \
  2155.   c-parse.c objc-parse.c cexp.c
  2156.     @if grep -s "for version ${mainversion}" gcc.texi > /dev/null; \
  2157.     then true; \
  2158.     else echo "You must update the version number in \`gcc.texi'"; sleep 10;\
  2159.     fi
  2160. # Update the version number in README
  2161.     awk '$$1 " " $$2 " " $$3 == "This directory contains" \
  2162.         { $$6 = version; print $$0 } \
  2163.          $$1 " " $$2 " " $$3 != "This directory contains"' \
  2164.       version=$(version) README > tmp.README
  2165.     mv tmp.README README
  2166.     -rm -rf gcc-$(version) tmp    
  2167. # Put all the files in a temporary subdirectory
  2168. # which has the name that we want to have in the tar file.
  2169.     mkdir tmp
  2170.     mkdir tmp/config
  2171.     mkdir tmp/ginclude
  2172.     mkdir tmp/objc
  2173.     for file in *[0-9a-zA-Z+]; do \
  2174.       $(HARDLINK) $$file tmp > /dev/null 2>&1 || cp $$file tmp; \
  2175.     done
  2176.     cd config; \
  2177.     for file in *[0-9a-zA-Z+]; do \
  2178.       if test -d $$file && test "$$file" != RCS; then \
  2179.         mkdir ../tmp/config/$$file; \
  2180.         cd $$file; \
  2181.         for subfile in *[0-9a-zA-Z+]; do \
  2182.           $(HARDLINK) $$subfile ../../tmp/config/$$file >/dev/null 2>&1 \
  2183.           || cp $$subfile ../../tmp/config/$$file; \
  2184.         done; \
  2185.         cd ..; \
  2186.       else \
  2187.         $(HARDLINK) $$file ../tmp/config >/dev/null 2>&1 \
  2188.         || cp $$file ../tmp/config; \
  2189.       fi; \
  2190.     done
  2191.     cd ginclude; \
  2192.     for file in *[0-9a-zA-Z+]; do \
  2193.       $(HARDLINK) $$file ../tmp/ginclude >/dev/null 2>&1 || cp $$file ../tmp/ginclude; \
  2194.     done
  2195.     cd objc; \
  2196.     for file in *[0-9a-zA-Z+]; do \
  2197.       $(HARDLINK) $$file ../tmp/objc >/dev/null 2>&1 || cp $$file ../tmp/objc; \
  2198.     done
  2199.     $(HARDLINK) .gdbinit tmp
  2200.  
  2201. # Finish making `distdir', after the languages have done their thing.
  2202. distdir-finish:
  2203.     mv tmp gcc-$(version)
  2204. # Get rid of everything we don't want in the distribution.  We'd want
  2205. # this to use Makefile.in, but it doesn't have the `lang.foo' targets
  2206. # expanded.
  2207.     cd gcc-$(version); make extraclean
  2208.  
  2209. distdir: distdir-start lang.distdir distdir-finish
  2210.  
  2211. # make diff oldversion=M.N 
  2212. # creates a diff file between an older distribution and this one.
  2213. # The -P option assumes this is GNU diff.
  2214. diff:
  2215.     diff -rc2P -x c-parse.y -x c-parse.c -x c-parse.h -x c-gperf.h \
  2216.       -x cexp.c -x bi-parser.c -x objc-parse.y -x objc-parse.c \
  2217.       -x TAGS \
  2218.       -x "gcc.??" -x "gcc.??s" -x gcc.aux -x "gcc.info*" \
  2219.       -x "cpp.??" -x "cpp.??s" -x cpp.aux -x "cpp.info*" \
  2220.       $(LANG_DIFF_EXCLUDES) \
  2221.       gcc-$(oldversion) gcc-$(version) > diffs
  2222.  
  2223. # do make -f ../gcc/Makefile maketest DIR=../gcc
  2224. # in the intended test directory to make it a suitable test directory.
  2225. # THIS IS OBSOLETE; use the -srcdir operand in configure instead. 
  2226. maketest:
  2227.     $(SYMLINK) $(DIR)/*.[chy] .
  2228.     $(SYMLINK) $(DIR)/configure .
  2229.     $(SYMLINK) $(DIR)/*.def .
  2230.     -rm -f =*
  2231.     $(SYMLINK) $(DIR)/.gdbinit .
  2232.     $(SYMLINK) $(DIR)/$(FIXINCLUDES) .
  2233.     -$(SYMLINK) $(DIR)/bison.simple .
  2234.     $(SYMLINK) $(DIR)/config .
  2235.     $(SYMLINK) $(DIR)/move-if-change .
  2236. # The then and else were swapped to avoid a problem on Ultrix.
  2237.     if [ ! -f Makefile ] ; then $(SYMLINK) $(DIR)/Makefile .; else false; fi
  2238.     -rm tm.h aux-output.c config.h md
  2239.     make clean
  2240. # You must then run config to set up for compilation.
  2241.  
  2242. bootstrap: force
  2243. # Only build the C compiler for stage1, because that is the only one that
  2244. # we can guarantee will build with the native compiler, and also it is the
  2245. # only thing useful for building stage2.
  2246.     $(MAKE) CC="$(CC)" libdir=$(libdir) LANGUAGES=c
  2247.     $(MAKE) stage1
  2248. # This used to define ALLOCA as empty, but that would lead to bad results
  2249. # for a subsequent `make install' since that would not have ALLOCA empty.
  2250. # To prevent `make install' from compiling alloca.o and then relinking cc1
  2251. # because alloca.o is newer, we permit these recursive makes to compile
  2252. # alloca.o.  Then cc1 is newer, so it won't have to be relinked.
  2253.     $(MAKE) CC="stage1/$(XGCC) -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  2254.     $(MAKE) stage2
  2255.     $(MAKE) CC="stage2/$(XGCC) -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  2256.  
  2257. bootstrap2: force
  2258.     $(MAKE) CC="stage1/$(XGCC) -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  2259.     $(MAKE) stage2
  2260.     $(MAKE) CC="stage2/$(XGCC) -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  2261.  
  2262. bootstrap3: force
  2263.     $(MAKE) CC="stage2/$(XGCC) -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  2264.  
  2265. # Compare the object files in the current directory with those in the
  2266. # stage2 directory.
  2267.  
  2268. # ./ avoids bug in some versions of tail.
  2269. compare: force
  2270.     for file in *.o; do \
  2271.       tail +16c ./$$file > tmp-foo1; \
  2272.       tail +16c stage2/$$file > tmp-foo2 2>/dev/null \
  2273.         && (cmp tmp-foo1 tmp-foo2 || echo $$file differs); \
  2274.     done
  2275.     for dir in tmp-foo $(SUBDIRS); do \
  2276.       if [ "`echo $$dir/*.o`" != "$$dir/*.o" ] ; then \
  2277.         for file in $$dir/*.o; do \
  2278.           tail +16c ./$$file > tmp-foo1; \
  2279.           tail +16c stage2/$$file > tmp-foo2 2>/dev/null \
  2280.             && (cmp tmp-foo1 tmp-foo2 || echo $$file differs); \
  2281.         done; \
  2282.       fi; \
  2283.     done
  2284.     -rm -f tmp-foo*
  2285.  
  2286. # Similar, but compare with stage3 directory
  2287. compare3: force
  2288.     for file in *.o; do \
  2289.       tail +16c ./$$file > tmp-foo1; \
  2290.       tail +16c stage3/$$file > tmp-foo2 2>/dev/null \
  2291.         && (cmp tmp-foo1 tmp-foo2 || echo $$file differs); \
  2292.     done
  2293.     for dir in tmp-foo $(SUBDIRS); do \
  2294.       if [ "`echo $$dir/*.o`" != "$$dir/*.o" ] ; then \
  2295.         for file in $$dir/*.o; do \
  2296.           tail +16c ./$$file > tmp-foo1; \
  2297.           tail +16c stage3/$$file > tmp-foo2 2>/dev/null \
  2298.             && (cmp tmp-foo1 tmp-foo2 || echo $$file differs); \
  2299.         done; \
  2300.       fi; \
  2301.     done
  2302.     -rm -f tmp-foo*
  2303.  
  2304. # Compare the object files in the current directory with those in the
  2305. # stage2 directory.  Use gnu cmp (diffutils v2.4 or later) to avoid
  2306. # running tail and the overhead of twice copying each object file.
  2307.  
  2308. gnucompare: force
  2309.     for file in *.o; do \
  2310.       cmp --ignore-initial=16 $$file stage2/$$file || true ; \
  2311.     done
  2312.     for dir in tmp-foo $(SUBDIRS); do \
  2313.       if [ "`echo $$dir/*.o`" != "$$dir/*.o" ] ; then \
  2314.         for file in $$dir/*.o; do \
  2315.           cmp --ignore-initial=16 $$file stage2/$$file || true ; \
  2316.         done; \
  2317.       fi; \
  2318.     done
  2319.  
  2320. # Similar, but compare with stage3 directory
  2321. gnucompare3: force
  2322.     for file in *.o; do \
  2323.       cmp --ignore-initial=16 $$file stage3/$$file || true ; \
  2324.     done
  2325.     for dir in tmp-foo $(SUBDIRS); do \
  2326.       if [ "`echo $$dir/*.o`" != "$$dir/*.o" ] ; then \
  2327.         for file in $$dir/*.o; do \
  2328.           cmp --ignore-initial=16 $$file stage3/$$file || true ; \
  2329.         done; \
  2330.       fi; \
  2331.     done
  2332.  
  2333. # Copy the object files from a particular stage into a subdirectory.
  2334. stage1-start:
  2335.     -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
  2336.     -for dir in . $(SUBDIRS) ; \
  2337.      do \
  2338.        if [ -d stage1/$$dir ] ; then true ; else mkdir stage1/$$dir ; fi; \
  2339.      done
  2340.     -mv $(STAGESTUFF) stage1
  2341.     -rm -f stage1/libgcc.a
  2342.     -cp libgcc.a stage1
  2343.     -if $(RANLIB_TEST) ; then $(RANLIB) stage1/libgcc.a; else true; fi
  2344. stage1: force stage1-start lang.stage1
  2345.  
  2346. stage2-start:
  2347.     -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
  2348.     -for dir in . $(SUBDIRS) ; \
  2349.      do \
  2350.        if [ -d stage2/$$dir ] ; then true ; else mkdir stage2/$$dir ; fi; \
  2351.      done
  2352.     -mv $(STAGESTUFF) stage2
  2353.     -rm -f stage2/libgcc.a
  2354.     -cp libgcc.a stage2
  2355.     -if $(RANLIB_TEST) ; then $(RANLIB) stage2/libgcc.a; else true; fi
  2356. stage2: force stage2-start lang.stage2
  2357.  
  2358. stage3-start:
  2359.     -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
  2360.     -for dir in . $(SUBDIRS) ; \
  2361.      do \
  2362.        if [ -d stage3/$$dir ] ; then true ; else mkdir stage3/$$dir ; fi; \
  2363.      done
  2364.     -mv $(STAGESTUFF) stage3
  2365.     -rm -f stage3/libgcc.a
  2366.     -cp libgcc.a stage3
  2367.     -if $(RANLIB_TEST) ; then $(RANLIB) stage3/libgcc.a; else true; fi
  2368. stage3: force stage3-start lang.stage3
  2369.  
  2370. stage4-start:
  2371.     -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
  2372.     -for dir in . $(SUBDIRS) ; \
  2373.      do \
  2374.        if [ -d stage4/$$dir ] ; then true ; else mkdir stage4/$$dir ; fi; \
  2375.      done
  2376.     -mv $(STAGESTUFF) stage4
  2377.     -rm -f stage4/libgcc.a
  2378.     -cp libgcc.a stage4
  2379.     -if $(RANLIB_TEST) ; then $(RANLIB) stage4/libgcc.a; else true; fi
  2380. stage4: force stage4-start lang.stage4
  2381.  
  2382. # Copy just the executable files from a particular stage into a subdirectory,
  2383. # and delete the object files.  Use this if you're just verifying a version
  2384. # that is pretty sure to work, and you are short of disk space.
  2385. risky-stage1: force
  2386.     -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
  2387.     -mv $(GCC_PARTS) stage1
  2388.     -rm -f stage1/libgcc.a
  2389.     -cp libgcc.a stage1 && $(RANLIB) stage1/libgcc.a
  2390.     -make clean
  2391.  
  2392. risky-stage2: force
  2393.     -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
  2394.     -mv $(GCC_PARTS) stage2
  2395.     -rm -f stage2/libgcc.a
  2396.     -cp libgcc.a stage2 && $(RANLIB) stage2/libgcc.a
  2397.     -make clean
  2398.  
  2399. risky-stage3: force
  2400.     -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
  2401.     -mv $(GCC_PARTS) stage3
  2402.     -rm -f stage3/libgcc.a
  2403.     -cp libgcc.a stage3 && $(RANLIB) stage3/libgcc.a
  2404.     -make clean
  2405.  
  2406. risky-stage4: force
  2407.     -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
  2408.     -mv $(GCC_PARTS) stage4
  2409.     -rm -f stage4/libgcc.a
  2410.     -cp libgcc.a stage4 && $(RANLIB) stage4/libgcc.a
  2411.     -make clean
  2412.  
  2413. #In GNU Make, ignore whether `stage*' exists.
  2414. .PHONY: stage1 stage2 stage3 stage4 clean maintainer-clean TAGS bootstrap
  2415. .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
  2416.  
  2417. force:
  2418.