Makefile.in revision 122190
1# Makefile for GNU C compiler. 2# Copyright (C) 1987, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 3# 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 4 5#This file is part of GCC. 6 7#GCC is free software; you can redistribute it and/or modify 8#it under the terms of the GNU General Public License as published by 9#the Free Software Foundation; either version 2, or (at your option) 10#any later version. 11 12#GCC is distributed in the hope that it will be useful, 13#but WITHOUT ANY WARRANTY; without even the implied warranty of 14#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15#GNU General Public License for more details. 16 17#You should have received a copy of the GNU General Public License 18#along with GCC; see the file COPYING. If not, write to 19#the Free Software Foundation, 59 Temple Place - Suite 330, 20#Boston MA 02111-1307, USA. 21 22# The targets for external use include: 23# all, doc, proto, install, install-cross, install-cross-rest, 24# uninstall, TAGS, mostlyclean, clean, distclean, maintainer-clean, 25# stage1, stage2, stage3, stage4. 26 27# This is the default target. 28all: 29 30# Suppress smart makes who think they know how to automake Yacc files 31.y.c: 32 33# Directory where sources are, from where we are. 34srcdir = @srcdir@ 35VPATH = @srcdir@ 36 37# Pointer to the GCC Project website 38website=http://gcc.gnu.org 39 40# Variables that exist for you to override. 41# See below for how to change them for certain systems. 42 43# List of language subdirectories. 44# This is overridden by configure. 45SUBDIRS =@subdirs@ 46 47# Selection of languages to be made. 48# This is overridden by configure. 49CONFIG_LANGUAGES = @all_languages@ 50LANGUAGES = c gcov$(exeext) $(CONFIG_LANGUAGES) 51 52# Selection of languages to be made during stage1 build. 53# This is overridden by configure. 54BOOT_LANGUAGES = c @all_boot_languages@ 55 56# Various ways of specifying flags for compilations: 57# CFLAGS is for the user to override to, e.g., do a cross build with -O2. 58# For recursive bootstrap builds CFLAGS is used to pass in STAGE1_CFLAGS 59# or BOOT_CFLAGS 60# STAGE1_CFLAGS is set by configure on some targets or passed from toplevel 61# and sets the CFLAGS passed to stage1 of a bootstrap compilation. 62# BOOT_CFLAGS is the value of CFLAGS to pass to the stage2, stage3 and stage4 63# bootstrap compilations. 64# XCFLAGS is used for most compilations but not when using the GCC just built. 65# TCFLAGS is used for compilations with the GCC just built. 66XCFLAGS = 67TCFLAGS = 68CFLAGS = -g 69STAGE1_CFLAGS = -g @stage1_cflags@ 70BOOT_CFLAGS = -g -O2 71 72# Flags to determine code coverage. When coverage is disabled, this will 73# contain the optimization flags, as you normally want code coverage 74# without optimization. The -dumpbase $@ makes sure that the auxilary 75# files end up near the object files. 76COVERAGE_FLAGS = @coverage_flags@ 77coverageexts = .{da,bb,bbg} 78 79# The warning flags are separate from BOOT_CFLAGS because people tend to 80# override optimization flags and we'd like them to still have warnings 81# turned on. These flags are also used to pass other stage dependent 82# flags from configure. The user is free to explicitly turn these flags 83# off if they wish. 84# LOOSE_WARN are the warning flags to use when compiling something 85# which is only compiled with gcc, such as libgcc and the frontends 86# other than C. 87# STRICT_WARN and STRICT2_WARN are the additional warning flags to 88# apply to the back end and the C front end, which may be compiled 89# with other compilers. This is partially controlled by configure in 90# stage1, as not all versions of gcc understand -Wno-long-long. 91LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 92STRICT_WARN = -Wtraditional @strict1_warn@ 93STRICT2_WARN = -Wtraditional -pedantic -Wno-long-long 94 95# This is set by --enable-checking. The idea is to catch forgotten 96# "extern" tags in header files. 97NOCOMMON_FLAG = @nocommon_flag@ 98 99# These are set by --enable-checking=valgrind. 100RUN_GEN = @valgrind_command@ 101VALGRIND_DRIVER_DEFINES = @valgrind_path_defines@ 102 103# This is how we control whether or not the additional warnings are applied. 104.-warn = $(STRICT_WARN) 105GCC_WARN_CFLAGS = $(LOOSE_WARN) $($(@D)-warn) $(NOCOMMON_FLAG) 106 107# All warnings have to be shut off in stage1 if the compiler used then 108# isn't gcc; configure determines that. WARN_CFLAGS will be either 109# $(GCC_WARN_CFLAGS), or nothing. 110WARN_CFLAGS = @warn_cflags@ 111 112# These exists to be overridden by the x-* and t-* files, respectively. 113X_CFLAGS = 114T_CFLAGS = 115 116X_CPPFLAGS = 117T_CPPFLAGS = 118 119ADAC = @ADAC@ 120AWK = @AWK@ 121CC = @CC@ 122BISON = @BISON@ 123BISONFLAGS = 124FLEX = @FLEX@ 125FLEXFLAGS = 126AR = ar 127AR_FLAGS = rc 128DLLTOOL = dlltool 129RANLIB = @RANLIB@ 130SHELL = @SHELL@ 131# pwd command to use. Allow user to override default by setting PWDCMD in 132# the environment to account for automounters. The make variable must not 133# be called PWDCMD, otherwise the value set here is passed to make 134# subprocesses and overrides the setting from the user's environment. 135# Don't use PWD since it is a common shell environment variable and we 136# don't want to corrupt it. 137PWD_COMMAND = $${PWDCMD-pwd} 138# on sysV, define this as cp. 139INSTALL = @INSTALL@ 140# Some systems may be missing symbolic links, regular links, or both. 141# Allow configure to check this and use "ln -s", "ln", or "cp" as appropriate. 142LN=@LN@ 143LN_S=@LN_S@ 144# These permit overriding just for certain files. 145INSTALL_PROGRAM = @INSTALL_PROGRAM@ 146INSTALL_DATA = @INSTALL_DATA@ 147INSTALL_SCRIPT = @INSTALL@ 148MAKEINFO = @MAKEINFO@ 149MAKEINFOFLAGS = 150TEXI2DVI = texi2dvi 151TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl 152POD2MAN = pod2man --center="GNU" --release="gcc-$(version)" 153# For GNUmake: let us decide what gets passed to recursive makes. 154MAKEOVERRIDES = 155@SET_MAKE@ 156# Some compilers can't handle cc -c blah.c -o foo/blah.o. 157# In stage2 and beyond, we force this to "-o $@" since we know we're using gcc. 158OUTPUT_OPTION = @OUTPUT_OPTION@ 159 160# Some versions of `touch' (such as the version on Solaris 2.8) 161# do not correctly set the timestamp due to buggy versions of `utime' 162# in the kernel. So, we use `echo' instead. 163STAMP = echo timestamp > 164 165# This is where we get zlib from. zlibdir is -L../zlib and zlibinc is 166# -I../zlib, unless we were configured with --with-system-zlib, in which 167# case both are empty. 168ZLIB = @zlibdir@ -lz 169ZLIBINC = @zlibinc@ 170 171# Substitution type for target's getgroups 2nd arg. 172TARGET_GETGROUPS_T = @TARGET_GETGROUPS_T@ 173 174# Target to use when installing include directory. Either 175# install-headers-tar, install-headers-cpio or install-headers-cp. 176INSTALL_HEADERS_DIR = @build_install_headers_dir@ 177 178# Header files that are made available under the same name 179# to programs compiled with GCC. 180USER_H = $(srcdir)/ginclude/float.h \ 181 $(srcdir)/ginclude/iso646.h \ 182 $(srcdir)/ginclude/stdarg.h \ 183 $(srcdir)/ginclude/stdbool.h \ 184 $(srcdir)/ginclude/stddef.h \ 185 $(srcdir)/ginclude/varargs.h \ 186 $(srcdir)/unwind.h \ 187 $(EXTRA_HEADERS) 188 189# The GCC to use for compiling libgcc.a and crt*.o. 190# Usually the one we just built. 191# Don't use this as a dependency--use $(GCC_PASSES) or $(GCC_PARTS). 192GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) ./xgcc -B./ -B$(build_tooldir)/bin/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include 193 194# This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET. 195# It omits XCFLAGS, and specifies -B./. 196# It also specifies -isystem ./include to find, e.g., stddef.h. 197GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_WARN) -isystem ./include $(TCFLAGS) 198 199# Sed command to transform gcc to installed name. Overwritten by configure. 200program_transform_name = @program_transform_name@ 201program_transform_cross_name = s,^,$(target_alias)-, 202 203build_canonical = @build_canonical@ 204host_canonical = @host_canonical@ 205 206# Tools to use when building a cross-compiler. 207# These are used because `configure' appends `cross-make' 208# to the makefile when making a cross-compiler. 209 210# Use the tools from the build tree, if they are available. 211 212# objdir is set by configure. 213objdir = @objdir@ 214 215AR_FOR_TARGET = ` \ 216 if [ -f $(objdir)/../binutils/ar ] ; then \ 217 echo $(objdir)/../binutils/ar ; \ 218 else \ 219 if [ "$(host_canonical)" = "$(target)" ] ; then \ 220 echo ar; \ 221 else \ 222 t='$(program_transform_cross_name)'; echo ar | sed -e $$t ; \ 223 fi; \ 224 fi` 225AR_FLAGS_FOR_TARGET = 226AR_CREATE_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) rc 227AR_EXTRACT_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) x 228RANLIB_FOR_TARGET = ` \ 229 if [ -f $(objdir)/../binutils/ranlib ] ; then \ 230 echo $(objdir)/../binutils/ranlib ; \ 231 else \ 232 if [ "$(host_canonical)" = "$(target)" ] ; then \ 233 echo ranlib; \ 234 else \ 235 t='$(program_transform_cross_name)'; echo ranlib | sed -e $$t ; \ 236 fi; \ 237 fi` 238RANLIB_TEST_FOR_TARGET = \ 239 [ -f $(RANLIB_FOR_TARGET) ] \ 240 || ( [ "$(host_canonical)" = "$(target)" ] \ 241 && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ) 242NM_FOR_TARGET = ` \ 243 if [ -f ./nm ] ; then \ 244 echo ./nm ; \ 245 elif [ -f $(objdir)/../binutils/nm-new ] ; then \ 246 echo $(objdir)/../binutils/nm-new ; \ 247 else \ 248 if [ "$(host_canonical)" = "$(target)" ] ; then \ 249 echo nm; \ 250 else \ 251 t='$(program_transform_cross_name)'; echo nm | sed -e $$t ; \ 252 fi; \ 253 fi` 254 255# Where to find some libiberty headers. 256HASHTAB_H = $(srcdir)/../include/hashtab.h 257OBSTACK_H = $(srcdir)/../include/obstack.h 258SPLAY_TREE_H= $(srcdir)/../include/splay-tree.h 259FIBHEAP_H = $(srcdir)/../include/fibheap.h 260PARTITION_H = $(srcdir)/../include/partition.h 261 262# Default native SYSTEM_HEADER_DIR, to be overridden by targets. 263NATIVE_SYSTEM_HEADER_DIR = /usr/include 264# Default cross SYSTEM_HEADER_DIR, to be overridden by targets. 265CROSS_SYSTEM_HEADER_DIR = $(build_tooldir)/sys-include 266 267# autoconf sets SYSTEM_HEADER_DIR to one of the above. 268SYSTEM_HEADER_DIR = @SYSTEM_HEADER_DIR@ 269 270# Control whether to run fixproto and fixincludes. 271STMP_FIXPROTO = @STMP_FIXPROTO@ 272STMP_FIXINC = @STMP_FIXINC@ 273 274# Test to see whether <limits.h> exists in the system header files. 275LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h ] 276 277target=@target@ 278target_alias=@target_alias@ 279xmake_file=@dep_host_xmake_file@ 280tmake_file=@dep_tmake_file@ 281out_file=$(srcdir)/config/@out_file@ 282out_object_file=@out_object_file@ 283md_file=$(srcdir)/config/@md_file@ 284tm_defines=@tm_defines@ 285tm_p_file_list=@tm_p_file_list@ 286tm_p_file=@tm_p_file@ 287build_xm_file_list=@build_xm_file_list@ 288build_xm_file=@build_xm_file@ 289build_xm_defines=@build_xm_defines@ 290host_xm_file_list=@host_xm_file_list@ 291host_xm_file=@host_xm_file@ 292host_xm_defines=@host_xm_defines@ 293xm_file=@xm_file@ 294xm_defines=@xm_defines@ 295lang_specs_files=@lang_specs_files@ 296lang_options_files=@lang_options_files@ 297lang_tree_files=@lang_tree_files@ 298target_cpu_default=@target_cpu_default@ 299GCC_THREAD_FILE=@thread_file@ 300OBJC_BOEHM_GC=@objc_boehm_gc@ 301GTHREAD_FLAGS=@gthread_flags@ 302# Be prepared for gcc2 merges. 303gcc_version=@gcc_version@ 304gcc_version_trigger=@gcc_version_trigger@ 305version=$(gcc_version) 306mainversion=`grep version_string $(srcdir)/version.c | sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/'` 307 308# Common prefix for installation directories. 309# NOTE: This directory must exist when you start installation. 310prefix = @prefix@ 311# Directory in which to put localized header files. On the systems with 312# gcc as the native cc, `local_prefix' may not be `prefix' which is 313# `/usr'. 314# NOTE: local_prefix *should not* default from prefix. 315local_prefix = @local_prefix@ 316# Directory in which to put host dependent programs and libraries 317exec_prefix = @exec_prefix@ 318# Directory in which to put the executable for the command `gcc' 319bindir = @bindir@ 320# Directory in which to put the directories used by the compiler. 321libdir = @libdir@ 322# Directory in which the compiler finds executables, libraries, etc. 323libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(version) 324# Used to produce a relative $(gcc_tooldir) in gcc.o 325unlibsubdir = ../../.. 326# Directory in which to find other cross-compilation tools and headers. 327dollar = @dollar@ 328# Used in install-cross. 329gcc_tooldir = @gcc_tooldir@ 330# Used to install the shared libgcc. 331slibdir = @slibdir@ 332# Since gcc_tooldir does not exist at build-time, use -B$(build_tooldir)/bin/ 333build_tooldir = $(exec_prefix)/$(target_alias) 334# Directory in which the compiler finds target-independent g++ includes. 335gcc_gxx_include_dir = @gcc_gxx_include_dir@ 336# Directory to search for site-specific includes. 337local_includedir = $(local_prefix)/include 338includedir = $(prefix)/include 339# where the info files go 340infodir = @infodir@ 341# Where cpp should go besides $prefix/bin if necessary 342cpp_install_dir = @cpp_install_dir@ 343# where the locale files go 344datadir = @datadir@ 345localedir = $(datadir)/locale 346# Extension (if any) to put in installed man-page filename. 347man1ext = .1 348man7ext = .7 349objext = .o 350exeext = @host_exeext@ 351build_exeext = @build_exeext@ 352 353# Directory in which to put man pages. 354mandir = @mandir@ 355man1dir = $(mandir)/man1 356man7dir = $(mandir)/man7 357# Dir for temp files. 358tmpdir = /tmp 359 360# Top build directory, relative to here. 361top_builddir = . 362 363# Whether we were configured with NLS. 364USE_NLS = @USE_NLS@ 365 366# Internationalization library. 367INTLLIBS = @INTLLIBS@ 368INTLDEPS = @INTLDEPS@ 369 370# Character encoding conversion library. 371LIBICONV = @LIBICONV@ 372 373# List of internationalization subdirectories. 374INTL_SUBDIRS = intl 375 376# The GC method to be used on this system. 377GGC=@GGC@.o 378 379# If a supplementary library is being used for the GC. 380GGC_LIB= 381 382# libgcc.a may be built directly or via stmp-multilib, 383# and installed likewise. Overridden by t-fragment. 384LIBGCC = libgcc.a 385INSTALL_LIBGCC = install-libgcc 386 387# Options to use when compiling libgcc2.a. 388# 389LIBGCC2_DEBUG_CFLAGS = -g 390LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED @inhibit_libc@ 391 392# Additional options to use when compiling libgcc2.a. 393# Some targets override this to -isystem include 394LIBGCC2_INCLUDES = 395 396# Additional target-dependent options for compiling libgcc2.a. 397TARGET_LIBGCC2_CFLAGS = 398 399# Options to use when compiling crtbegin/end. 400CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \ 401 -finhibit-size-directive -fno-inline-functions -fno-exceptions \ 402 -fno-zero-initialized-in-bss 403 404# Additional sources to handle exceptions; overridden by targets as needed. 405LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \ 406 $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c 407LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h 408 409# nm flags to list global symbols in libgcc object files. 410SHLIB_NM_FLAGS = -pg 411 412# List of extra executables that should be compiled for this target machine 413# that are used for compiling from source code to object code. 414# The rules for compiling them should be in the t-* file for the machine. 415EXTRA_PASSES =@extra_passes@ 416 417# Like EXTRA_PASSES, but these are used when linking. 418EXTRA_PROGRAMS = @extra_programs@ 419 420# List of extra object files that should be compiled for this target machine. 421# The rules for compiling them should be in the t-* file for the machine. 422EXTRA_PARTS = @extra_parts@ 423 424# List of extra object files that should be compiled and linked with 425# compiler proper (cc1, cc1obj, cc1plus). 426EXTRA_OBJS = @extra_objs@ 427 428# List of extra object files that should be compiled and linked with 429# the gcc driver. 430EXTRA_GCC_OBJS =@host_extra_gcc_objs@ 431 432# List of additional header files to install. 433# Often this is edited directly by `configure'. 434EXTRA_HEADERS =@extra_headers_list@ 435 436# It is convenient for configure to add the assignment at the beginning, 437# so don't override it here. 438USE_COLLECT2 = collect2$(exeext) 439 440# List of extra C and assembler files to add to static and shared libgcc2. 441# Assembler files should have names ending in `.asm'. 442LIB2FUNCS_EXTRA = 443 444# List of extra C and assembler files to add to static libgcc2. 445# Assembler files should have names ending in `.asm'. 446LIB2FUNCS_STATIC_EXTRA = 447 448# Program to convert libraries. 449LIBCONVERT = 450 451# Control whether header files are installed. 452INSTALL_HEADERS=install-headers install-mkheaders 453 454# Control whether Info documentation is built and installed. 455BUILD_INFO = @BUILD_INFO@ 456 457# Control whether manpages generated by texi2pod.pl can be rebuilt. 458GENERATED_MANPAGES = @GENERATED_MANPAGES@ 459 460# Additional directories of header files to run fixincludes on. 461# These should be directories searched automatically by default 462# just as /usr/include is. 463# *Do not* use this for directories that happen to contain 464# header files, but are not searched automatically by default. 465# On most systems, this is empty. 466OTHER_FIXINCLUDES_DIRS= 467 468# A list of all the language-specific executables. 469# This is overridden by configure. 470COMPILERS = cc1$(exeext) @all_compilers@ 471 472# List of things which should already be built whenever we try to use xgcc 473# to compile anything (without linking). 474GCC_PASSES=xgcc$(exeext) cc1$(exeext) specs $(EXTRA_PASSES) 475 476# List of things which should already be built whenever we try to use xgcc 477# to link anything. 478GCC_PARTS=$(GCC_PASSES) $(LIBGCC) $(EXTRA_PROGRAMS) $(USE_COLLECT2) $(EXTRA_PARTS) 479 480# Directory to link to, when using the target `maketest'. 481DIR = ../gcc 482 483# Flags to use when cross-building GCC. 484# Prefix to apply to names of object files when using them 485# to run on the machine we are compiling on. 486BUILD_PREFIX = @BUILD_PREFIX@ 487# Prefix to apply to names of object files when compiling them 488# to run on the machine we are compiling on. 489# The default for this variable is chosen to keep these rules 490# out of the way of the other rules for compiling the same source files. 491BUILD_PREFIX_1 = @BUILD_PREFIX_1@ 492# Native compiler for the build machine and its switches. 493HOST_CC = @HOST_CC@ 494HOST_CFLAGS= @HOST_CFLAGS@ -DGENERATOR_FILE 495 496# Native linker and preprocessor flags. For x-fragment overrides. 497HOST_LDFLAGS=$(LDFLAGS) 498HOST_CPPFLAGS=$(ALL_CPPFLAGS) 499 500# Actual name to use when installing a native compiler. 501GCC_INSTALL_NAME = `echo gcc|sed '$(program_transform_name)'` 502GCC_TARGET_INSTALL_NAME = $(target_alias)-`echo gcc|sed '$(program_transform_name)'` 503CPP_INSTALL_NAME = `echo cpp|sed '$(program_transform_name)'` 504PROTOIZE_INSTALL_NAME = `echo protoize|sed '$(program_transform_name)'` 505UNPROTOIZE_INSTALL_NAME = `echo unprotoize|sed '$(program_transform_name)'` 506GCOV_INSTALL_NAME = `echo gcov|sed '$(program_transform_name)'` 507GCCBUG_INSTALL_NAME = `echo gccbug|sed '$(program_transform_name)'` 508 509# Actual name to use when installing a cross-compiler. 510GCC_CROSS_NAME = `echo gcc|sed '$(program_transform_cross_name)'` 511CPP_CROSS_NAME = `echo cpp|sed '$(program_transform_cross_name)'` 512PROTOIZE_CROSS_NAME = `echo protoize|sed '$(program_transform_cross_name)'` 513UNPROTOIZE_CROSS_NAME = `echo unprotoize|sed '$(program_transform_cross_name)'` 514 515# Set by autoconf to "all.internal" for a native build, or 516# "all.cross" to build a cross compiler. 517ALL = @ALL@ 518 519# Setup the testing framework, if you have one 520EXPECT = `if [ -f $${rootme}/../expect/expect ] ; then \ 521 echo $${rootme}/../expect/expect ; \ 522 else echo expect ; fi` 523 524RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \ 525 echo $${srcdir}/../dejagnu/runtest ; \ 526 else echo runtest; fi` 527RUNTESTFLAGS = 528 529# Extra symbols for fixproto to define when parsing headers. 530FIXPROTO_DEFINES = 531 532# Extra flags to use when compiling crt{begin,end}.o. 533CRTSTUFF_T_CFLAGS = 534 535# Extra flags to use when compiling [m]crt0.o. 536CRT0STUFF_T_CFLAGS = 537 538# "t" or nothing, for building multilibbed versions of, say, crtbegin.o. 539T = 540 541# Should T contain a `=', libgcc.mk will make T_TARGET, setting 542# $(T_TARGET) to the name of the actual target filename. 543T_TARGET = 544T_TARGET : $(T_TARGET) 545 546# End of variables for you to override. 547 548# Definition of `all' is here so that new rules inserted by sed 549# do not specify the default target. 550# The real definition is under `all.internal' (for native compilers) 551# or `all.cross' (for cross compilers). 552all: all.indirect 553 554# This tells GNU Make version 3 not to put all variables in the environment. 555.NOEXPORT: 556 557# GCONFIG_H lists the config files that the generator files depend on, while 558# CONFIG_H lists the ones ordinary gcc files depend on, which includes 559# several files generated by those generators. 560GCONFIG_H = config.h $(host_xm_file_list) 561HCONFIG_H = hconfig.h $(build_xm_file_list) 562CONFIG_H = $(GCONFIG_H) insn-constants.h insn-flags.h 563TCONFIG_H = tconfig.h $(xm_file_list) 564TARGET_H = target.h 565HOOKS_H = hooks.h 566LANGHOOKS_DEF_H = langhooks-def.h $(HOOKS_H) 567TARGET_DEF_H = target-def.h $(HOOKS_H) 568TM_P_H = tm_p.h $(tm_p_file_list) tm-preds.h 569 570MACHMODE_H = machmode.h machmode.def @extra_modes_file@ 571RTL_BASE_H = rtl.h rtl.def $(MACHMODE_H) 572RTL_H = $(RTL_BASE_H) genrtl.h 573PARAMS_H = params.h params.def 574TREE_H = tree.h tree.def $(MACHMODE_H) tree-check.h version.h builtins.def \ 575 location.h 576BASIC_BLOCK_H = basic-block.h bitmap.h sbitmap.h varray.h $(PARTITION_H) \ 577 hard-reg-set.h 578DEMANGLE_H = $(srcdir)/../include/demangle.h 579RECOG_H = recog.h 580EXPR_H = expr.h 581OPTABS_H = optabs.h insn-codes.h 582REGS_H = regs.h varray.h $(MACHMODE_H) 583INTEGRATE_H = integrate.h varray.h 584LOOP_H = loop.h varray.h bitmap.h 585GCC_H = gcc.h version.h 586GGC_H = ggc.h varray.h gtype-desc.h 587TIMEVAR_H = timevar.h timevar.def 588INSN_ATTR_H = insn-attr.h $(srcdir)/insn-addr.h $(srcdir)/varray.h 589C_COMMON_H = c-common.h $(SPLAY_TREE_H) $(CPPLIB_H) 590C_TREE_H = c-tree.h $(C_COMMON_H) 591SYSTEM_H = system.h hwint.h $(srcdir)/../include/libiberty.h 592PREDICT_H = predict.h predict.def 593CPPLIB_H = cpplib.h line-map.h 594 595# sed inserts variable overrides after the following line. 596####target overrides 597@target_overrides@ 598 599####host overrides 600@host_overrides@ 601# 602# Now figure out from those variables how to compile and link. 603 604all.indirect: $(ALL) 605 606# IN_GCC distinguishes between code compiled into GCC itself and other 607# programs built during a bootstrap. 608# autoconf inserts -DCROSS_COMPILE if we are building a cross compiler. 609INTERNAL_CFLAGS = -DIN_GCC @CROSS@ 610 611# This is the variable actually used when we compile. 612# If you change this line, you probably also need to change the definition 613# of HOST_CFLAGS in build-make to match. 614ALL_CFLAGS = $(X_CFLAGS) $(T_CFLAGS) \ 615 $(CFLAGS) $(INTERNAL_CFLAGS) $(COVERAGE_FLAGS) $(WARN_CFLAGS) $(XCFLAGS) @DEFS@ 616 617# Likewise. 618ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS) 619 620# Build and host support libraries. FORBUILD is either 621# .. or ../$(build_alias) depending on whether host != build. 622LIBIBERTY = ../libiberty/libiberty.a 623BUILD_LIBIBERTY = @FORBUILD@/libiberty/libiberty.a 624 625# Dependencies on the intl and portability libraries. 626LIBDEPS= $(INTLDEPS) $(LIBIBERTY) 627 628# Likewise, for use in the tools that must run on this machine 629# even if we are cross-building GCC. 630HOST_LIBDEPS= $(BUILD_LIBIBERTY) 631 632# How to link with both our special library facilities 633# and the system's installed libraries. 634LIBS = $(INTLLIBS) @LIBS@ $(LIBIBERTY) 635 636# Any system libraries needed just for GNAT. 637SYSLIBS = @GNAT_LIBEXC@ 638 639# Libs needed (at present) just for jcf-dump. 640LDEXP_LIB = @LDEXP_LIB@ 641 642# Likewise, for use in the tools that must run on this machine 643# even if we are cross-building GCC. 644HOST_LIBS = $(BUILD_LIBIBERTY) 645 646HOST_RTL = $(BUILD_PREFIX)rtl.o read-rtl.o $(BUILD_PREFIX)bitmap.o \ 647 $(BUILD_PREFIX)ggc-none.o 648HOST_SUPPORT = gensupport.o insn-conditions.o 649HOST_EARLY_SUPPORT = gensupport.o dummy-conditions.o 650 651HOST_PRINT = print-rtl1.o 652HOST_ERRORS = $(BUILD_PREFIX)errors.o 653HOST_VARRAY = $(BUILD_PREFIX)varray.o 654 655# Specify the directories to be searched for header files. 656# Both . and srcdir are used, in that order, 657# so that *config.h will be found in the compilation 658# subdirectory rather than in the source directory. 659# -I$(@D) and -I$(srcdir)/$(@D) cause the subdirectory of the file 660# currently being compiled, in both source trees, to be examined as well. 661INCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \ 662 -I$(srcdir)/config -I$(srcdir)/../include 663 664# Always use -I$(srcdir)/config when compiling. 665.c.o: 666 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) 667 668# This tells GNU make version 3 not to export all the variables 669# defined in this file into the environment. 670.NOEXPORT: 671# 672# Support for additional languages (other than c and objc). 673# ??? objc can be supported this way too (leave for later). 674 675# These next lines are overridden by configure. 676LANG_MAKEFILES = @all_lang_makefiles@ 677LANG_STAGESTUFF = @all_stagestuff@ 678 679# Flags to pass to recursive makes. 680# CC is set by configure. Hosts without symlinks need special handling 681# because we need CC="stage1/xgcc -Bstage1/" to work in the language 682# subdirectories. 683# ??? The choices here will need some experimenting with. 684ORDINARY_FLAGS_TO_PASS = \ 685 "AR=$(AR)" \ 686 "AR_FLAGS_FOR_TARGET=$(AR_FLAGS_FOR_TARGET)" \ 687 "AR_CREATE_FOR_TARGET=$(AR_CREATE_FOR_TARGET)" \ 688 "AR_EXTRACT_FOR_TARGET=$(AR_EXTRACT_FOR_TARGET)" \ 689 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ 690 "BISON=$(BISON)" \ 691 "BISONFLAGS=$(BISONFLAGS)" \ 692 "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)" \ 693 "DESTDIR=$(DESTDIR)" \ 694 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ 695 "LDFLAGS=$(LDFLAGS)" \ 696 "FLEX=$(FLEX)" \ 697 "FLEXFLAGS=$(FLEXFLAGS)" \ 698 "LN=$(LN)" \ 699 "LN_S=$(LN_S)" \ 700 "MAKEINFO=$(MAKEINFO)" \ 701 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \ 702 "MAKEOVERRIDES=" \ 703 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ 704 "RANLIB_TEST_FOR_TARGET=$(RANLIB_TEST_FOR_TARGET)" \ 705 "SHELL=$(SHELL)" \ 706 "exeext=$(exeext)" \ 707 "build_exeext=$(build_exeext)" \ 708 "objext=$(objext)" \ 709 "exec_prefix=$(exec_prefix)" \ 710 "prefix=$(prefix)" \ 711 "local_prefix=$(local_prefix)" \ 712 "gxx_include_dir=$(gcc_gxx_include_dir)" \ 713 "build_tooldir=$(build_tooldir)" \ 714 "gcc_tooldir=$(gcc_tooldir)" \ 715 "bindir=$(bindir)" \ 716 "libsubdir=$(libsubdir)" \ 717 "datadir=$(datadir)" \ 718 "localedir=$(localedir)" 719FLAGS_TO_PASS = $(ORDINARY_FLAGS_TO_PASS) "CC=@cc_set_by_configure@" \ 720 "STAGE_PREFIX=@stage_prefix_set_by_configure@" 721PREPEND_DOTDOT_TO_RELATIVE_PATHS = sed \ 722 -e 's|^ *[^ /][^ /]*/|%&|' \ 723 -e 's| -B| -B%|g' \ 724 -e 's|% *[^- /]|%&|g' \ 725 -e 's|%% *|../|g' \ 726 -e 's|%||g' 727SUBDIR_FLAGS_TO_PASS = $(ORDINARY_FLAGS_TO_PASS) \ 728 "CC=`echo @quoted_cc_set_by_configure@ | $(PREPEND_DOTDOT_TO_RELATIVE_PATHS)`" \ 729 "STAGE_PREFIX=`echo @quoted_stage_prefix_set_by_configure@ | $(PREPEND_DOTDOT_TO_RELATIVE_PATHS)`" 730# 731# Lists of files for various purposes. 732 733# Target specific, C specific object file 734C_TARGET_OBJS=@c_target_objs@ 735 736# Target specific, C++ specific object file 737CXX_TARGET_OBJS=@cxx_target_objs@ 738 739# Language-specific object files for C and Objective C. 740C_AND_OBJC_OBJS = attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o \ 741 c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o \ 742 c-objc-common.o c-dump.o libcpp.a $(C_TARGET_OBJS) 743 744# Language-specific object files for C. 745C_OBJS = c-parse.o c-lang.o c-pretty-print.o $(C_AND_OBJC_OBJS) 746 747# Language-independent object files. 748 749OBJS = alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o \ 750 cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o \ 751 cfgrtl.o combine.o conflict.o convert.o cse.o cselib.o dbxout.o \ 752 debug.o df.o diagnostic.o doloop.o dominance.o \ 753 dwarf2asm.o dwarf2out.o dwarfout.o emit-rtl.o except.o explow.o \ 754 expmed.o expr.o final.o flow.o fold-const.o function.o gcse.o \ 755 genrtl.o ggc-common.o global.o graph.o gtype-desc.o \ 756 haifa-sched.o hashtable.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o \ 757 insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o \ 758 integrate.o intl.o jump.o langhooks.o lcm.o lists.o local-alloc.o \ 759 loop.o mbchar.o optabs.o params.o predict.o print-rtl.o print-tree.o \ 760 profile.o ra.o ra-build.o ra-colorize.o ra-debug.o ra-rewrite.o \ 761 real.o recog.o reg-stack.o regclass.o regmove.o regrename.o \ 762 reload.o reload1.o reorg.o resource.o rtl.o rtlanal.o rtl-error.o \ 763 sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o \ 764 sibcall.o simplify-rtx.o ssa.o ssa-ccp.o ssa-dce.o stmt.o \ 765 stor-layout.o stringpool.o timevar.o toplev.o tracer.o tree.o tree-dump.o \ 766 tree-inline.o unroll.o varasm.o varray.o version.o vmsdbgout.o xcoffout.o \ 767 et-forest.o $(GGC) $(out_object_file) $(EXTRA_OBJS) 768 769BACKEND = main.o libbackend.a 770 771# Files to be copied away after each stage in building. 772STAGESTUFF = *$(objext) insn-flags.h insn-config.h insn-codes.h \ 773 insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \ 774 insn-attr.h insn-attrtab.c insn-opinit.c insn-constants.h tm-preds.h \ 775 tree-check.h insn-conditions.c \ 776 s-flags s-config s-codes s-mlib s-genrtl s-gtype gtyp-gen.h \ 777 s-output s-recog s-emit s-extract s-peep s-check s-conditions \ 778 s-attr s-attrtab s-opinit s-preds s-constants s-crt0 \ 779 genemit$(build_exeext) genoutput$(build_exeext) genrecog$(build_exeext) \ 780 genextract$(build_exeext) genflags$(build_exeext) gencodes$(build_exeext) \ 781 genconfig$(build_exeext) genpeep$(build_exeext) genattrtab$(build_exeext) \ 782 genattr$(build_exeext) genopinit$(build_exeext) gengenrtl$(build_exeext) \ 783 gencheck$(build_exeext) genpreds$(build_exeext) genconstants$(build_exeext) \ 784 gengtype$(build_exeext) genconditions$(build_exeext) \ 785 genrtl.c genrtl.h gt-*.h gtype-*.h gtype-desc.c \ 786 xgcc$(exeext) cpp$(exeext) cc1$(exeext) $(EXTRA_PASSES) \ 787 $(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross$(exeext) cc1obj$(exeext) \ 788 protoize$(exeext) unprotoize$(exeext) \ 789 specs collect2$(exeext) $(USE_COLLECT2) \ 790 gcov$(exeext) *.[0-9][0-9].* *.[si] libcpp.a libbackend.a libgcc.mk \ 791 $(LANG_STAGESTUFF) 792 793# Library members defined in libgcc2.c. 794# Variable length limited to 255 charactes when passed to a shell script. 795LIB2FUNCS_1 = _muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _clz \ 796 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi \ 797 _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi 798 799LIB2FUNCS_2 = _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf \ 800 _clear_cache _trampoline __main _exit _absvsi2 _absvdi2 _addvsi3 \ 801 _addvdi3 _subvsi3 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2 _ctors 802 803# Defined in libgcc2.c, included only in the static library. 804LIB2FUNCS_ST = _eprintf _bb __gcc_bcmp 805 806FPBIT_FUNCS = _pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf \ 807 _fpcmp_parts_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf \ 808 _lt_sf _le_sf _unord_sf _si_to_sf _sf_to_si _negate_sf _make_sf \ 809 _sf_to_df _sf_to_tf _thenan_sf _sf_to_usi _usi_to_sf 810 811DPBIT_FUNCS = _pack_df _unpack_df _addsub_df _mul_df _div_df \ 812 _fpcmp_parts_df _compare_df _eq_df _ne_df _gt_df _ge_df \ 813 _lt_df _le_df _unord_df _si_to_df _df_to_si _negate_df _make_df \ 814 _df_to_sf _df_to_tf _thenan_df _df_to_usi _usi_to_df 815 816TPBIT_FUNCS = _pack_tf _unpack_tf _addsub_tf _mul_tf _div_tf \ 817 _fpcmp_parts_tf _compare_tf _eq_tf _ne_tf _gt_tf _ge_tf \ 818 _lt_tf _le_tf _unord_tf _si_to_tf _tf_to_si _negate_tf _make_tf \ 819 _tf_to_df _tf_to_sf _thenan_tf _tf_to_usi _usi_to_tf 820 821# These might cause a divide overflow trap and so are compiled with 822# unwinder info. 823LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4 824 825# The only suffixes we want for implicit rules are .c and .o, so clear 826# the list and add them. This speeds up GNU Make, and allows -r to work. 827# For i18n support, we also need .gmo, .po, .pox. 828# This must come before the language makefile fragments to allow them to 829# add suffixes and rules of their own. 830.SUFFIXES: 831.SUFFIXES: .c .o .po .pox .gmo 832 833# 834# Language makefile fragments. 835 836# The following targets define the interface between us and the languages. 837# 838# all.cross, start.encap, rest.encap, 839# info, dvi, 840# install-normal, install-common, install-info, install-man, 841# uninstall, 842# mostlyclean, clean, distclean, extraclean, maintainer-clean, 843# stage1, stage2, stage3, stage4 844# 845# Each language is linked in with a series of hooks (since we can't use `::' 846# targets). The name of each hooked is "lang.${target_name}" (eg: lang.info). 847# Configure computes and adds these here. 848 849####language hooks 850@language_hooks@ 851 852# sed inserts language fragments after the following line. 853####language fragments 854@language_fragments@ 855 856# End of language makefile fragments. 857# 858 859Makefile: $(srcdir)/Makefile.in config.status $(srcdir)/version.c \ 860 $(xmake_file) $(tmake_file) $(LANG_MAKEFILES) 861 $(SHELL) $(srcdir)/configure.frag $(srcdir) "$(SUBDIRS)" \ 862 "$(xmake_file)" "$(tmake_file)" 863 cp config.status config.run 864 LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.run 865 rm -f config.run 866 867config.h: cs-config.h ; @true 868hconfig.h: cs-hconfig.h ; @true 869tconfig.h: cs-tconfig.h ; @true 870tm_p.h: cs-tm_p.h ; @true 871 872cs-config.h: Makefile 873 TM_DEFINES="$(tm_defines)" \ 874 HEADERS="$(host_xm_file)" XM_DEFINES="$(host_xm_defines)" \ 875 TARGET_CPU_DEFAULT="$(target_cpu_default)" \ 876 $(SHELL) $(srcdir)/mkconfig.sh config.h 877 878cs-hconfig.h: Makefile 879 TM_DEFINES="$(tm_defines)" \ 880 HEADERS="$(build_xm_file)" XM_DEFINES="$(build_xm_defines)" \ 881 TARGET_CPU_DEFAULT="$(target_cpu_default)" \ 882 $(SHELL) $(srcdir)/mkconfig.sh hconfig.h 883 884cs-tconfig.h: Makefile 885 TM_DEFINES="$(tm_defines)" \ 886 HEADERS="$(xm_file)" XM_DEFINES="$(xm_defines)" \ 887 TARGET_CPU_DEFAULT="" \ 888 $(SHELL) $(srcdir)/mkconfig.sh tconfig.h 889 890cs-tm_p.h: Makefile 891 TM_DEFINES="" \ 892 HEADERS="$(tm_p_file)" XM_DEFINES="" TARGET_CPU_DEFAULT="" \ 893 $(SHELL) $(srcdir)/mkconfig.sh tm_p.h 894 895# Don't automatically run autoconf, since configure.in might be accidentally 896# newer than configure. Also, this writes into the source directory which 897# might be on a read-only file system. If configured for maintainer mode 898# then do allow autoconf to be run. 899 900$(srcdir)/configure: @MAINT@ $(srcdir)/configure.in 901 (cd $(srcdir) && autoconf) 902 903gccbug: $(srcdir)/gccbug.in 904 CONFIG_FILES=gccbug CONFIG_HEADERS= ./config.status 905 906mklibgcc: $(srcdir)/mklibgcc.in 907 CONFIG_FILES=mklibgcc CONFIG_HEADERS= ./config.status 908 909mkheaders: $(srcdir)/mkheaders.in 910 CONFIG_FILES=mkheaders CONFIG_HEADERS= ./config.status 911 912# cstamp-h.in controls rebuilding of config.in. 913# It is named cstamp-h.in and not stamp-h.in so the mostlyclean rule doesn't 914# delete it. A stamp file is needed as autoheader won't update the file if 915# nothing has changed. 916# It remains in the source directory and is part of the distribution. 917# This follows what is done in shellutils, fileutils, etc. 918# "echo timestamp" is used instead of touch to be consistent with other 919# packages that use autoconf (??? perhaps also to avoid problems with patch?). 920# ??? Newer versions have a maintainer mode that may be useful here. 921 922# Don't run autoheader automatically either. 923# Only run it if maintainer mode is enabled. 924@MAINT@ $(srcdir)/config.in: $(srcdir)/cstamp-h.in 925@MAINT@ $(srcdir)/cstamp-h.in: $(srcdir)/configure.in $(srcdir)/acconfig.h 926@MAINT@ (cd $(srcdir) && autoheader) 927@MAINT@ @rm -f $(srcdir)/cstamp-h.in 928@MAINT@ echo timestamp > $(srcdir)/cstamp-h.in 929auto-host.h: cstamp-h ; @true 930cstamp-h: config.in config.status 931 CONFIG_HEADERS=auto-host.h:config.in LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status 932 933# Really, really stupid make features, such as SUN's KEEP_STATE, may force 934# a target to build even if it is up-to-date. So we must verify that 935# config.status does not exist before failing. 936config.status: $(srcdir)/configure $(srcdir)/config.gcc version.c 937 @if [ ! -f config.status ] ; then \ 938 echo You must configure gcc. Look at http://gcc.gnu.org/install/ for details.; \ 939 false; \ 940 else \ 941 LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status --recheck; \ 942 fi 943 944all.internal: start.encap rest.encap doc 945# This is what to compile if making a cross-compiler. 946all.cross: native gcc-cross cpp$(exeext) specs \ 947 $(LIBGCC) $(EXTRA_PARTS) lang.all.cross doc 948# This is what must be made before installing GCC and converting libraries. 949start.encap: native xgcc$(exeext) cpp$(exeext) specs \ 950 xlimits.h lang.start.encap 951# These can't be made until after GCC can run. 952rest.encap: $(STMP_FIXPROTO) $(LIBGCC) $(EXTRA_PARTS) lang.rest.encap 953# This is what is made with the host's compiler 954# whether making a cross compiler or not. 955native: config.status auto-host.h intl.all build-@POSUB@ $(LANGUAGES) \ 956 $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2) 957 958# Define the names for selecting languages in LANGUAGES. 959C c: cc1$(exeext) 960PROTO: proto 961 962# Tell GNU make these are phony targets. 963.PHONY: C c PROTO proto 964 965# On the target machine, finish building a cross compiler. 966# This does the things that can't be done on the host machine. 967rest.cross: $(LIBGCC) specs 968 969# Recompile all the language-independent object files. 970# This is used only if the user explicitly asks for it. 971compilations: $(BACKEND) 972 973# Like libcpp.a, this archive is strictly for the host. 974libbackend.a: $(OBJS) 975 -rm -rf libbackend.a 976 $(AR) $(AR_FLAGS) libbackend.a $(OBJS) 977 -$(RANLIB) libbackend.a 978 979# We call this executable `xgcc' rather than `gcc' 980# to avoid confusion if the current directory is in the path 981# and CC is `gcc'. It is renamed to `gcc' when it is installed. 982xgcc$(exeext): gcc.o gccspec.o version.o intl.o prefix.o \ 983 version.o $(LIBDEPS) $(EXTRA_GCC_OBJS) 984 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o gccspec.o intl.o \ 985 prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS) 986 987# cpp is to cpp0 as gcc is to cc1. 988# The only difference from xgcc is that it's linked with cppspec.o 989# instead of gccspec.o. 990cpp$(exeext): gcc.o cppspec.o version.o intl.o prefix.o \ 991 version.o $(LIBDEPS) $(EXTRA_GCC_OBJS) 992 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o cppspec.o intl.o \ 993 prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS) 994 995# Dump a specs file to make -B./ read these specs over installed ones. 996specs: xgcc$(exeext) 997 $(GCC_FOR_TARGET) -dumpspecs > tmp-specs 998 mv tmp-specs specs 999 1000# We do want to create an executable named `xgcc', so we can use it to 1001# compile libgcc2.a. 1002# Also create gcc-cross, so that install-common will install properly. 1003gcc-cross: xgcc$(exeext) 1004 cp xgcc$(exeext) gcc-cross$(exeext) 1005 1006cc1$(exeext): $(C_OBJS) $(BACKEND) $(LIBDEPS) 1007 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cc1$(exeext) \ 1008 $(C_OBJS) $(BACKEND) $(LIBS) 1009 1010# Build the version of limits.h that we will install. 1011xlimits.h: glimits.h limitx.h limity.h 1012 if $(LIMITS_H_TEST) ; then \ 1013 cat $(srcdir)/limitx.h $(srcdir)/glimits.h $(srcdir)/limity.h > tmp-xlimits.h; \ 1014 else \ 1015 cat $(srcdir)/glimits.h > tmp-xlimits.h; \ 1016 fi 1017 mv tmp-xlimits.h xlimits.h 1018# 1019# Build libgcc.a. 1020 1021LIB2ADD = $(LIB2FUNCS_EXTRA) 1022LIB2ADD_ST = $(LIB2FUNCS_STATIC_EXTRA) 1023 1024libgcc.mk: config.status Makefile mklibgcc $(LIB2ADD) $(LIB2ADD_ST) xgcc$(exeext) specs 1025 objext='$(objext)' \ 1026 LIB1ASMFUNCS='$(LIB1ASMFUNCS)' \ 1027 LIB2FUNCS_1='$(LIB2FUNCS_1)' \ 1028 LIB2FUNCS_2='$(LIB2FUNCS_2)' \ 1029 LIB2FUNCS_ST='$(LIB2FUNCS_ST)' \ 1030 LIB2ADD='$(LIB2ADD)' \ 1031 LIB2ADD_ST='$(LIB2ADD_ST)' \ 1032 LIB2ADDEH='$(LIB2ADDEH)' \ 1033 LIB2ADDEHDEP='$(LIB2ADDEHDEP)' \ 1034 FPBIT='$(FPBIT)' \ 1035 FPBIT_FUNCS='$(FPBIT_FUNCS)' \ 1036 LIB2_DIVMOD_FUNCS='$(LIB2_DIVMOD_FUNCS)' \ 1037 DPBIT='$(DPBIT)' \ 1038 DPBIT_FUNCS='$(DPBIT_FUNCS)' \ 1039 TPBIT='$(TPBIT)' \ 1040 TPBIT_FUNCS='$(TPBIT_FUNCS)' \ 1041 MULTILIBS=`$(GCC_FOR_TARGET) --print-multi-lib` \ 1042 EXTRA_MULTILIB_PARTS='$(EXTRA_MULTILIB_PARTS)' \ 1043 SHLIB_LINK='$(SHLIB_LINK)' \ 1044 SHLIB_INSTALL='$(SHLIB_INSTALL)' \ 1045 SHLIB_EXT='$(SHLIB_EXT)' \ 1046 SHLIB_MULTILIB='$(SHLIB_MULTILIB)' \ 1047 SHLIB_MKMAP='$(SHLIB_MKMAP)' \ 1048 SHLIB_MKMAP_OPTS='$(SHLIB_MKMAP_OPTS)' \ 1049 SHLIB_MAPFILES='$(SHLIB_MAPFILES)' \ 1050 SHLIB_NM_FLAGS='$(SHLIB_NM_FLAGS)' \ 1051 MULTILIB_OSDIRNAMES='$(MULTILIB_OSDIRNAMES)' \ 1052 mkinstalldirs='$(SHELL) $(srcdir)/mkinstalldirs' \ 1053 $(SHELL) mklibgcc > tmp-libgcc.mk 1054 mv tmp-libgcc.mk libgcc.mk 1055 1056# All the things that might cause us to want to recompile bits of libgcc. 1057LIBGCC_DEPS = $(GCC_PASSES) $(LANGUAGES) stmp-int-hdrs $(STMP_FIXPROTO) \ 1058 libgcc.mk $(srcdir)/libgcc2.c $(TCONFIG_H) \ 1059 $(MACHMODE_H) longlong.h gbl-ctors.h config.status stmp-int-hdrs \ 1060 tsystem.h $(FPBIT) $(DPBIT) $(TPBIT) $(LIB2ADD) \ 1061 $(LIB2ADD_ST) $(LIB2ADDEH) $(LIB2ADDEHDEP) $(EXTRA_PARTS) \ 1062 $(srcdir)/config/$(LIB1ASMSRC) 1063 1064libgcc.a: $(LIBGCC_DEPS) 1065 $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \ 1066 BUILD_PREFIX="$(BUILD_PREFIX)" BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \ 1067 AR_FOR_TARGET="$(AR_FOR_TARGET)" \ 1068 AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \ 1069 AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \ 1070 CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \ 1071 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \ 1072 RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \ 1073 NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \ 1074 LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \ 1075 INCLUDES="$(INCLUDES)" \ 1076 CONFIG_H="$(TCONFIG_H)" MACHMODE_H="$(MACHMODE_H)" \ 1077 LIB1ASMSRC='$(LIB1ASMSRC)' \ 1078 MAKEOVERRIDES= \ 1079 -f libgcc.mk all 1080 1081# Use the genmultilib shell script to generate the information the gcc 1082# driver program needs to select the library directory based on the 1083# switches. 1084multilib.h: s-mlib; @true 1085s-mlib: $(srcdir)/genmultilib Makefile 1086 if test @enable_multilib@ = yes \ 1087 || test -n "$(MULTILIB_OSDIRNAMES)"; then \ 1088 $(SHELL) $(srcdir)/genmultilib \ 1089 "$(MULTILIB_OPTIONS)" \ 1090 "$(MULTILIB_DIRNAMES)" \ 1091 "$(MULTILIB_MATCHES)" \ 1092 "$(MULTILIB_EXCEPTIONS)" \ 1093 "$(MULTILIB_EXTRA_OPTS)" \ 1094 "$(MULTILIB_EXCLUSIONS)" \ 1095 "$(MULTILIB_OSDIRNAMES)" \ 1096 "@enable_multilib@" \ 1097 > tmp-mlib.h; \ 1098 else \ 1099 $(SHELL) $(srcdir)/genmultilib '' '' '' '' '' '' '' no \ 1100 > tmp-mlib.h; \ 1101 fi 1102 $(SHELL) $(srcdir)/move-if-change tmp-mlib.h multilib.h 1103 $(STAMP) s-mlib 1104 1105# Build multiple copies of libgcc.a, one for each target switch. 1106stmp-multilib: $(LIBGCC_DEPS) 1107 $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \ 1108 BUILD_PREFIX="$(BUILD_PREFIX)" BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \ 1109 AR_FOR_TARGET="$(AR_FOR_TARGET)" \ 1110 AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \ 1111 AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \ 1112 CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \ 1113 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \ 1114 RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \ 1115 NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \ 1116 LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \ 1117 INCLUDES="$(INCLUDES)" \ 1118 CONFIG_H="$(CONFIG_H)" MACHMODE_H="$(MACHMODE_H)" \ 1119 LIB1ASMSRC='$(LIB1ASMSRC)' \ 1120 MAKEOVERRIDES= \ 1121 -f libgcc.mk all 1122 $(STAMP) stmp-multilib 1123 1124# Compile two additional files that are linked with every program 1125# linked using GCC on systems using COFF or ELF, for the sake of C++ 1126# constructors. 1127$(T)crtbegin.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \ 1128 gbl-ctors.h stmp-int-hdrs tsystem.h 1129 $(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS) \ 1130 @inhibit_libc@ -c $(srcdir)/crtstuff.c -DCRT_BEGIN \ 1131 -o $(T)crtbegin$(objext) 1132 1133$(T)crtend.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \ 1134 gbl-ctors.h stmp-int-hdrs tsystem.h 1135 $(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS) \ 1136 @inhibit_libc@ -c $(srcdir)/crtstuff.c -DCRT_END \ 1137 -o $(T)crtend$(objext) 1138 1139# These are versions of crtbegin and crtend for shared libraries. 1140$(T)crtbeginS.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \ 1141 gbl-ctors.h stmp-int-hdrs tsystem.h 1142 $(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS_S) \ 1143 @inhibit_libc@ -c $(srcdir)/crtstuff.c -DCRT_BEGIN -DCRTSTUFFS_O \ 1144 -o $(T)crtbeginS$(objext) 1145 1146$(T)crtendS.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \ 1147 gbl-ctors.h stmp-int-hdrs tsystem.h 1148 $(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS_S) \ 1149 @inhibit_libc@ -c $(srcdir)/crtstuff.c -DCRT_END -DCRTSTUFFS_O \ 1150 -o $(T)crtendS$(objext) 1151 1152# This is a version of crtbegin for -static links. 1153$(T)crtbeginT.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \ 1154 gbl-ctors.h stmp-int-hdrs tsystem.h 1155 $(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS) \ 1156 @inhibit_libc@ -c $(srcdir)/crtstuff.c -DCRT_BEGIN -DCRTSTUFFT_O \ 1157 -o $(T)crtbeginT$(objext) 1158 1159# Compile the start modules crt0.o and mcrt0.o that are linked with 1160# every program 1161crt0.o: s-crt0 ; @true 1162mcrt0.o: s-crt0; @true 1163 1164s-crt0: $(CRT0_S) $(MCRT0_S) $(GCC_PASSES) $(CONFIG_H) 1165 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(CRT0STUFF_T_CFLAGS) \ 1166 -o crt0.o -c $(CRT0_S) 1167 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(CRT0STUFF_T_CFLAGS) \ 1168 -o mcrt0.o -c $(MCRT0_S) 1169 $(STAMP) s-crt0 1170# 1171# Compiling object files from source files. 1172 1173# Note that dependencies on obstack.h are not written 1174# because that file is not part of GCC. 1175 1176# C language specific files. 1177 1178c-errors.o: c-errors.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) flags.h \ 1179 diagnostic.h $(TM_P_H) 1180c-parse.o : $(srcdir)/c-parse.c $(CONFIG_H) $(TREE_H) $(GGC_H) intl.h \ 1181 $(C_TREE_H) input.h flags.h $(SYSTEM_H) toplev.h output.h $(CPPLIB_H) \ 1182 gt-c-parse.h 1183 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 1184 -c $(srcdir)/c-parse.c $(OUTPUT_OPTION) 1185 1186$(srcdir)/c-parse.c: $(srcdir)/c-parse.y 1187 cd $(srcdir) && \ 1188 if $(BISON) $(BISONFLAGS) -o c-p$$$$.c c-parse.y; then \ 1189 test -f c-p$$$$.output && mv -f c-p$$$$.output c-parse.output ; \ 1190 mv -f c-p$$$$.c c-parse.c ; \ 1191 else \ 1192 rm -f c-p$$$$.* ; \ 1193 false ; \ 1194 fi 1195 1196$(srcdir)/c-parse.y: c-parse.in 1197 echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y 1198 sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \ 1199 -e "/^ifc$$/d" -e "/^end ifc$$/d" \ 1200 $(srcdir)/c-parse.in >>tmp-c-parse.y 1201 $(SHELL) $(srcdir)/move-if-change tmp-c-parse.y $(srcdir)/c-parse.y 1202 1203c-decl.o : c-decl.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) $(C_TREE_H) \ 1204 $(GGC_H) $(TARGET_H) flags.h function.h output.h $(EXPR_H) \ 1205 debug.h toplev.h intl.h $(TM_P_H) tree-inline.h $(TIMEVAR_H) c-pragma.h \ 1206 gt-c-decl.h libfuncs.h except.h 1207c-typeck.o : c-typeck.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) \ 1208 $(TARGET_H) flags.h intl.h output.h $(EXPR_H) $(RTL_H) toplev.h $(TM_P_H) 1209c-lang.o : c-lang.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) \ 1210 $(GGC_H) langhooks.h $(LANGHOOKS_DEF_H) c-common.h gtype-c.h 1211c-lex.o : c-lex.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) \ 1212 debug.h $(C_TREE_H) c-common.h real.h \ 1213 c-pragma.h input.h intl.h flags.h toplev.h output.h \ 1214 mbchar.h $(CPPLIB_H) $(EXPR_H) $(TM_P_H) 1215c-objc-common.o : c-objc-common.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \ 1216 $(C_TREE_H) $(RTL_H) insn-config.h integrate.h $(EXPR_H) $(C_TREE_H) \ 1217 flags.h toplev.h tree-inline.h diagnostic.h integrate.h $(VARRAY_H) \ 1218 langhooks.h $(GGC_H) gt-c-objc-common.h $(TARGET_H) 1219c-aux-info.o : c-aux-info.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) \ 1220 flags.h toplev.h 1221c-convert.o : c-convert.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) flags.h toplev.h \ 1222 $(C_COMMON_H) 1223c-pragma.o: c-pragma.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) function.h \ 1224 c-pragma.h toplev.h output.h $(GGC_H) $(TM_P_H) $(C_COMMON_H) gt-c-pragma.h 1225mbchar.o: mbchar.c $(CONFIG_H) $(SYSTEM_H) mbchar.h 1226graph.o: graph.c $(CONFIG_H) $(SYSTEM_H) toplev.h flags.h output.h $(RTL_H) \ 1227 function.h hard-reg-set.h $(BASIC_BLOCK_H) graph.h 1228sbitmap.o: sbitmap.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h hard-reg-set.h \ 1229 $(BASIC_BLOCK_H) 1230 1231COLLECT2_OBJS = collect2.o tlink.o intl.o version.o 1232COLLECT2_LIBS = @COLLECT2_LIBS@ 1233collect2$(exeext): $(COLLECT2_OBJS) $(LIBDEPS) 1234# Don't try modifying collect2 (aka ld) in place--it might be linking this. 1235 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o T$@ \ 1236 $(COLLECT2_OBJS) $(LIBS) $(COLLECT2_LIBS) 1237 mv -f T$@ $@ 1238 1239collect2.o : collect2.c $(CONFIG_H) $(SYSTEM_H) gstab.h intl.h \ 1240 $(OBSTACK_H) $(DEMANGLE_H) collect2.h version.h 1241 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 1242 -DTARGET_MACHINE=\"$(target_alias)\" \ 1243 -c $(srcdir)/collect2.c $(OUTPUT_OPTION) 1244 1245tlink.o: tlink.c $(DEMANGLE_H) $(HASHTAB_H) $(CONFIG_H) $(SYSTEM_H) \ 1246 $(OBSTACK_H) collect2.h intl.h 1247 1248# A file used by all variants of C. 1249 1250c-common.o : c-common.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(OBSTACK_H) \ 1251 $(C_COMMON_H) flags.h toplev.h output.h c-pragma.h $(RTL_H) $(GGC_H) \ 1252 $(EXPR_H) $(TM_P_H) builtin-types.def builtin-attrs.def $(TARGET_H) \ 1253 diagnostic.h except.h gt-c-common.h real.h langhooks.h c-tree.h 1254c-pretty-print.o : c-pretty-print.c c-pretty-print.h pretty-print.h \ 1255 $(C_COMMON_H) $(CONFIG_H) $(SYSTEM_H) real.h 1256 1257c-opts.o : c-opts.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_COMMON_H) \ 1258 c-pragma.h flags.h toplev.h langhooks.h tree-inline.h diagnostic.h \ 1259 intl.h 1260 1261# A file used by all variants of C and some other languages. 1262 1263attribs.o : attribs.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) flags.h \ 1264 toplev.h output.h c-pragma.h $(RTL_H) $(GGC_H) $(EXPR_H) $(TM_P_H) \ 1265 builtin-types.def $(TARGET_H) langhooks.h 1266 1267c-format.o : c-format.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) langhooks.h \ 1268 $(C_COMMON_H) flags.h toplev.h intl.h diagnostic.h 1269 1270c-semantics.o : c-semantics.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) \ 1271 flags.h toplev.h output.h c-pragma.h $(RTL_H) $(GGC_H) \ 1272 $(EXPR_H) $(PREDICT_H) 1273 1274c-dump.o : c-dump.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) tree-dump.h 1275 1276# Language-independent files. 1277 1278DRIVER_DEFINES = \ 1279 -DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \ 1280 -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \ 1281 -DDEFAULT_TARGET_VERSION=\"$(version)\" \ 1282 -DDEFAULT_TARGET_MACHINE=\"$(target_alias)\" \ 1283 -DSTANDARD_BINDIR_PREFIX=\"$(bindir)/\" \ 1284 -DTOOLDIR_BASE_PREFIX=\"$(unlibsubdir)/../\" \ 1285 $(VALGRIND_DRIVER_DEFINES) \ 1286 `test "X$${SHLIB_LINK}" = "X" || test "@enable_shared@" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` \ 1287 `test "X$${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` 1288 1289gcc.o: gcc.c $(CONFIG_H) $(SYSTEM_H) intl.h multilib.h \ 1290 Makefile $(lang_specs_files) specs.h prefix.h $(GCC_H) 1291 (SHLIB_LINK='$(SHLIB_LINK)' \ 1292 SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \ 1293 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 1294 $(DRIVER_DEFINES) \ 1295 -c $(srcdir)/gcc.c $(OUTPUT_OPTION)) 1296 1297gccspec.o: gccspec.c $(CONFIG_H) $(SYSTEM_H) $(GCC_H) 1298 (SHLIB_LINK='$(SHLIB_LINK)' \ 1299 SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \ 1300 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 1301 $(DRIVER_DEFINES) \ 1302 -c $(srcdir)/gccspec.c $(OUTPUT_OPTION)) 1303 1304cppspec.o: cppspec.c $(CONFIG_H) $(SYSTEM_H) $(GCC_H) 1305 1306tree-check.h: s-check ; @true 1307s-check : gencheck$(build_exeext) $(srcdir)/move-if-change 1308 $(RUN_GEN) ./gencheck$(build_exeext) > tmp-check.h 1309 $(SHELL) $(srcdir)/move-if-change tmp-check.h tree-check.h 1310 $(STAMP) s-check 1311 1312gencheck$(build_exeext) : gencheck.o $(HOST_LIBDEPS) 1313 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 1314 gencheck.o $(HOST_LIBS) 1315 1316gencheck.o : gencheck.c gencheck.h tree.def $(HCONFIG_H) $(SYSTEM_H) \ 1317 $(lang_tree_files) 1318 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \ 1319 $(srcdir)/gencheck.c $(OUTPUT_OPTION) 1320 1321gencheck.h : s-gencheck ; @true 1322s-gencheck : Makefile 1323 ltf="$(lang_tree_files)"; for f in $$ltf; do \ 1324 echo "#include \"$$f\""; \ 1325 done | sed 's|$(srcdir)/||' > tmp-gencheck.h 1326 $(SHELL) $(srcdir)/move-if-change tmp-gencheck.h gencheck.h 1327 $(STAMP) s-gencheck 1328 1329options.h : s-options ; @true 1330s-options : Makefile 1331 lof="$(lang_options_files)"; for f in $$lof; do \ 1332 echo "#include \"$$f\""; \ 1333 done | sed 's|$(srcdir)/||' > tmp-options.h 1334 $(SHELL) $(srcdir)/move-if-change tmp-options.h options.h 1335 $(STAMP) s-options 1336 1337specs.h : s-specs ; @true 1338s-specs : Makefile 1339 lsf="$(lang_specs_files)"; for f in $$lsf; do \ 1340 echo "#include \"$$f\""; \ 1341 done | sed 's|$(srcdir)/||' > tmp-specs.h 1342 $(SHELL) $(srcdir)/move-if-change tmp-specs.h specs.h 1343 $(STAMP) s-specs 1344 1345dumpvers: dumpvers.c 1346 1347version.o: version.c version.h 1348 1349gtype-desc.o: gtype-desc.c $(CONFIG_H) $(SYSTEM_H) varray.h $(HASHTAB_H) \ 1350 $(TREE_H) $(RTL_H) function.h insn-config.h $(EXPR_H) $(OPTABS_H) \ 1351 libfuncs.h debug.h $(GGC_H) bitmap.h $(BASIC_BLOCK_H) hard-reg-set.h \ 1352 ssa.h cselib.h insn-addr.h 1353 1354ggc-common.o: ggc-common.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) \ 1355 flags.h $(GGC_H) varray.h $(HASHTAB_H) $(TM_P_H) langhooks.h \ 1356 $(PARAMS_H) 1357 1358ggc-simple.o: ggc-simple.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1359 $(GGC_H) varray.h $(TIMEVAR_H) $(TM_P_H) $(PARAMS_H) 1360 1361ggc-page.o: ggc-page.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1362 toplev.h $(GGC_H) $(TIMEVAR_H) $(TM_P_H) 1363 1364stringpool.o: stringpool.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(OBSTACK_H) \ 1365 flags.h toplev.h $(GGC_H) 1366 1367hashtable.o: hashtable.c hashtable.h $(CONFIG_H) $(SYSTEM_H) $(OBSTACK_H) 1368 1369line-map.o: line-map.c line-map.h intl.h $(CONFIG_H) $(SYSTEM_H) 1370 1371ggc-none.o: ggc-none.c $(GCONFIG_H) $(SYSTEM_H) $(GGC_H) 1372 $(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) 1373 1374prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_H) Makefile prefix.h 1375 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 1376 -DPREFIX=\"$(prefix)\" \ 1377 -c $(srcdir)/prefix.c $(OUTPUT_OPTION) 1378 1379convert.o: convert.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) flags.h convert.h \ 1380 toplev.h langhooks.h 1381 1382langhooks.o : langhooks.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) toplev.h \ 1383 tree-inline.h $(RTL_H) insn-config.h integrate.h langhooks.h \ 1384 $(LANGHOOKS_DEF_H) flags.h 1385tree.o : tree.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) flags.h function.h toplev.h \ 1386 $(GGC_H) $(HASHTAB_H) $(TARGET_H) output.h $(TM_P_H) langhooks.h \ 1387 real.h gt-tree.h 1388tree-dump.o: tree-dump.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) \ 1389 flags.h langhooks.h toplev.h output.h c-pragma.h $(RTL_H) $(GGC_H) \ 1390 $(EXPR_H) $(SPLAY_TREE_H) tree-dump.h 1391tree-inline.o : tree-inline.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) \ 1392 expr.h flags.h params.h input.h insn-config.h $(INTEGRATE_H) \ 1393 $(VARRAY_H) $(HASHTAB_H) $(SPLAY_TREE_H) toplev.h langhooks.h \ 1394 $(C_COMMON_H) tree-inline.h 1395print-tree.o : print-tree.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(GGC_H) \ 1396 langhooks.h real.h 1397stor-layout.o : stor-layout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) flags.h \ 1398 function.h $(EXPR_H) $(RTL_H) toplev.h $(GGC_H) $(TM_P_H) $(TARGET_H) \ 1399 langhooks.h 1400fold-const.o : fold-const.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) flags.h real.h \ 1401 toplev.h $(HASHTAB_H) $(EXPR_H) $(RTL_H) $(GGC_H) $(TM_P_H) langhooks.h 1402diagnostic.o : diagnostic.c diagnostic.h real.h diagnostic.def \ 1403 $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TM_P_H) flags.h $(GGC_H) \ 1404 input.h toplev.h intl.h langhooks.h $(LANGHOOKS_DEF_H) 1405toplev.o : toplev.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) function.h \ 1406 flags.h xcoffout.h input.h $(INSN_ATTR_H) output.h diagnostic.h \ 1407 debug.h insn-config.h intl.h $(RECOG_H) Makefile toplev.h \ 1408 dwarf2out.h sdbout.h dbxout.h $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) \ 1409 graph.h $(LOOP_H) except.h $(REGS_H) $(TIMEVAR_H) $(lang_options_files) \ 1410 ssa.h $(PARAMS_H) $(TM_P_H) reload.h dwarf2asm.h $(TARGET_H) \ 1411 langhooks.h insn-flags.h options.h cfglayout.h real.h 1412 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 1413 -DTARGET_NAME=\"$(target_alias)\" \ 1414 -c $(srcdir)/toplev.c $(OUTPUT_OPTION) 1415main.o : main.c $(CONFIG_H) $(SYSTEM_H) toplev.h 1416 1417rtl-error.o: rtl-error.c system.h $(RTL_H) $(INSN_ATTR_H) insn-config.h \ 1418 input.h toplev.h intl.h diagnostic.h $(CONFIG_H) 1419 1420rtl.o : rtl.c $(GCONFIG_H) $(SYSTEM_H) $(RTL_H) real.h $(GGC_H) errors.h 1421 $(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) 1422 1423print-rtl.o : print-rtl.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) \ 1424 hard-reg-set.h $(BASIC_BLOCK_H) real.h 1425rtlanal.o : rtlanal.c $(CONFIG_H) $(SYSTEM_H) toplev.h $(RTL_H) \ 1426 hard-reg-set.h $(TM_P_H) insn-config.h $(RECOG_H) real.h flags.h 1427 1428errors.o : errors.c $(GCONFIG_H) $(SYSTEM_H) errors.h 1429 $(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) 1430 1431varasm.o : varasm.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \ 1432 function.h $(EXPR_H) hard-reg-set.h $(REGS_H) \ 1433 output.h c-pragma.h toplev.h xcoffout.h debug.h $(GGC_H) $(TM_P_H) \ 1434 $(HASHTAB_H) $(TARGET_H) langhooks.h gt-varasm.h real.h 1435function.o : function.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1436 function.h $(EXPR_H) libfuncs.h $(REGS_H) hard-reg-set.h \ 1437 insn-config.h $(RECOG_H) output.h toplev.h except.h $(HASHTAB_H) $(GGC_H) \ 1438 $(TM_P_H) langhooks.h gt-function.h 1439stmt.o : stmt.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h function.h \ 1440 insn-config.h hard-reg-set.h $(EXPR_H) libfuncs.h except.h \ 1441 $(LOOP_H) $(RECOG_H) toplev.h output.h varray.h $(GGC_H) $(TM_P_H) \ 1442 langhooks.h $(PREDICT_H) gt-stmt.h 1443except.o : except.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1444 except.h function.h $(EXPR_H) libfuncs.h integrate.h langhooks.h \ 1445 insn-config.h hard-reg-set.h $(BASIC_BLOCK_H) output.h \ 1446 dwarf2asm.h dwarf2out.h toplev.h $(HASHTAB_H) intl.h $(GGC_H) \ 1447 gt-except.h 1448expr.o : expr.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h function.h \ 1449 $(REGS_H) $(EXPR_H) $(OPTABS_H) libfuncs.h insn-attr.h insn-config.h \ 1450 $(RECOG_H) output.h typeclass.h hard-reg-set.h toplev.h hard-reg-set.h \ 1451 except.h reload.h $(GGC_H) langhooks.h intl.h $(TM_P_H) real.h 1452builtins.o : builtins.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1453 $(TARGET_H) function.h $(REGS_H) $(EXPR_H) $(OPTABS_H) insn-config.h \ 1454 $(RECOG_H) output.h typeclass.h hard-reg-set.h toplev.h hard-reg-set.h \ 1455 except.h $(TM_P_H) $(PREDICT_H) libfuncs.h real.h langhooks.h 1456calls.o : calls.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1457 $(EXPR_H) langhooks.h $(TARGET_H) \ 1458 libfuncs.h $(REGS_H) toplev.h output.h function.h $(TIMEVAR_H) $(TM_P_H) \ 1459 except.h 1460expmed.o : expmed.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1461 insn-config.h $(EXPR_H) $(OPTABS_H) $(RECOG_H) real.h \ 1462 toplev.h $(TM_P_H) langhooks.h 1463explow.o : explow.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1464 hard-reg-set.h insn-config.h $(EXPR_H) $(OPTABS_H) $(RECOG_H) \ 1465 toplev.h function.h ggc.h $(TM_P_H) gt-explow.h 1466optabs.o : optabs.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1467 insn-config.h $(EXPR_H) $(OPTABS_H) libfuncs.h $(RECOG_H) reload.h \ 1468 toplev.h $(GGC_H) real.h $(TM_P_H) except.h gt-optabs.h $(BASIC_BLOCK_H) 1469dbxout.o : dbxout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \ 1470 $(REGS_H) debug.h $(TM_P_H) $(TARGET_H) function.h langhooks.h \ 1471 insn-config.h reload.h gstab.h xcoffout.h output.h dbxout.h toplev.h 1472debug.o : debug.c debug.h $(CONFIG_H) $(SYSTEM_H) 1473sdbout.o : sdbout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \ 1474 function.h $(EXPR_H) output.h hard-reg-set.h $(REGS_H) real.h \ 1475 insn-config.h xcoffout.h c-pragma.h ggc.h \ 1476 sdbout.h toplev.h $(TM_P_H) except.h debug.h langhooks.h gt-sdbout.h 1477dwarfout.o : dwarfout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) dwarf.h \ 1478 flags.h insn-config.h reload.h output.h toplev.h $(TM_P_H) \ 1479 debug.h langhooks.h 1480dwarf2out.o : dwarf2out.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) dwarf2.h \ 1481 debug.h flags.h insn-config.h reload.h output.h diagnostic.h real.h \ 1482 hard-reg-set.h $(REGS_H) $(EXPR_H) libfuncs.h toplev.h dwarf2out.h varray.h \ 1483 $(GGC_H) except.h dwarf2asm.h $(TM_P_H) langhooks.h $(HASHTAB_H) gt-dwarf2out.h 1484dwarf2asm.o : dwarf2asm.c $(CONFIG_H) $(SYSTEM_H) flags.h $(RTL_H) $(TREE_H) \ 1485 output.h dwarf2asm.h $(TM_P_H) $(GGC_H) 1486vmsdbgout.o : vmsdbgout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \ 1487 output.h vmsdbg.h debug.h langhooks.h function.h 1488xcoffout.o : xcoffout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) xcoffout.h \ 1489 flags.h toplev.h output.h dbxout.h $(GGC_H) $(TARGET_H) 1490emit-rtl.o : emit-rtl.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1491 function.h $(REGS_H) insn-config.h $(RECOG_H) real.h $(GGC_H) \ 1492 $(EXPR_H) $(srcdir)/../include/obstack.h hard-reg-set.h bitmap.h toplev.h \ 1493 $(HASHTAB_H) $(TM_P_H) debug.h langhooks.h 1494real.o : real.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) toplev.h $(TM_P_H) 1495integrate.o : integrate.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1496 debug.h $(INTEGRATE_H) insn-config.h $(EXPR_H) real.h $(REGS_H) \ 1497 intl.h function.h output.h $(RECOG_H) except.h toplev.h $(LOOP_H) \ 1498 $(PARAMS_H) $(TM_P_H) $(TARGET_H) langhooks.h gt-integrate.h 1499jump.o : jump.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h hard-reg-set.h $(REGS_H) \ 1500 insn-config.h $(RECOG_H) $(EXPR_H) real.h except.h function.h \ 1501 toplev.h $(INSN_ATTR_H) $(TM_P_H) reload.h $(PREDICT_H) 1502 1503simplify-rtx.o : simplify-rtx.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) \ 1504 hard-reg-set.h flags.h real.h insn-config.h $(RECOG_H) $(EXPR_H) toplev.h \ 1505 output.h function.h $(GGC_H) $(OBSTACK_H) $(TM_P_H) $(TREE_H) 1506cselib.o : cselib.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) \ 1507 hard-reg-set.h flags.h real.h insn-config.h $(RECOG_H) $(EXPR_H) toplev.h \ 1508 output.h function.h cselib.h $(GGC_H) $(TM_P_H) gt-cselib.h 1509cse.o : cse.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) hard-reg-set.h flags.h \ 1510 real.h insn-config.h $(RECOG_H) $(EXPR_H) toplev.h output.h function.h \ 1511 $(BASIC_BLOCK_H) $(GGC_H) $(TM_P_H) $(TIMEVAR_H) 1512gcse.o : gcse.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) hard-reg-set.h \ 1513 flags.h real.h insn-config.h ggc.h $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) \ 1514 function.h output.h toplev.h $(TM_P_H) $(PARAMS_H) except.h gt-gcse.h 1515sibcall.o : sibcall.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) function.h \ 1516 hard-reg-set.h flags.h insn-config.h $(RECOG_H) $(BASIC_BLOCK_H) 1517resource.o : resource.c $(CONFIG_H) $(RTL_H) hard-reg-set.h $(SYSTEM_H) \ 1518 $(BASIC_BLOCK_H) $(REGS_H) flags.h output.h resource.h function.h toplev.h \ 1519 $(INSN_ATTR_H) except.h $(PARAMS_H) $(TM_P_H) 1520lcm.o : lcm.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) hard-reg-set.h flags.h \ 1521 real.h insn-config.h $(INSN_ATTR_H) $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) \ 1522 $(TM_P_H) df.h 1523ssa.o : ssa.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) varray.h $(EXPR_H) \ 1524 hard-reg-set.h flags.h function.h real.h insn-config.h $(RECOG_H) \ 1525 $(BASIC_BLOCK_H) output.h ssa.h 1526ssa-dce.o : ssa-dce.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) hard-reg-set.h \ 1527 $(BASIC_BLOCK_H) ssa.h insn-config.h $(RECOG_H) output.h 1528ssa-ccp.o : ssa-ccp.c $(CONFIG_H) system.h $(RTL_H) hard-reg-set.h \ 1529 $(BASIC_BLOCK_H) ssa.h insn-config.h $(RECOG_H) output.h \ 1530 errors.h $(GGC_H) df.h function.h 1531df.o : df.c $(CONFIG_H) system.h $(RTL_H) insn-config.h $(RECOG_H) \ 1532 function.h $(REGS_H) $(OBSTACK_H) hard-reg-set.h $(BASIC_BLOCK_H) df.h \ 1533 $(FIBHEAP_H) 1534conflict.o : conflict.c $(CONFIG_H) $(SYSTEM_H) $(OBSTACK_H) $(HASHTAB_H) \ 1535 $(RTL_H) hard-reg-set.h $(BASIC_BLOCK_H) 1536profile.o : profile.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1537 insn-config.h output.h $(REGS_H) $(EXPR_H) function.h \ 1538 gcov-io.h toplev.h $(GGC_H) hard-reg-set.h $(BASIC_BLOCK_H) $(TARGET_H) \ 1539 langhooks.h profile.h libfuncs.h gt-profile.h 1540loop.o : loop.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h $(LOOP_H) \ 1541 insn-config.h $(REGS_H) hard-reg-set.h $(RECOG_H) $(EXPR_H) \ 1542 real.h $(PREDICT_H) $(BASIC_BLOCK_H) function.h \ 1543 toplev.h varray.h except.h cselib.h $(OPTABS_H) $(TM_P_H) 1544doloop.o : doloop.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h $(LOOP_H) \ 1545 $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) $(TM_P_H) toplev.h 1546unroll.o : unroll.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) insn-config.h function.h \ 1547 $(INTEGRATE_H) $(REGS_H) $(RECOG_H) flags.h $(EXPR_H) $(LOOP_H) toplev.h \ 1548 hard-reg-set.h varray.h $(BASIC_BLOCK_H) $(TM_P_H) $(PREDICT_H) $(PARAMS_H) 1549flow.o : flow.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h insn-config.h \ 1550 $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h $(RECOG_H) \ 1551 function.h except.h $(EXPR_H) ssa.h $(GGC_H) $(TM_P_H) 1552cfg.o : cfg.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h insn-config.h \ 1553 $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h $(RECOG_H) \ 1554 function.h except.h $(GGC_H) $(TM_P_H) 1555cfgrtl.o : cfgrtl.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h insn-config.h \ 1556 $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h $(RECOG_H) \ 1557 function.h except.h $(GGC_H) $(TM_P_H) insn-config.h 1558cfganal.o : cfganal.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(BASIC_BLOCK_H) \ 1559 hard-reg-set.h insn-config.h $(RECOG_H) $(GGC_H) $(TM_P_H) 1560cfgbuild.o : cfgbuild.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h insn-config.h \ 1561 $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h $(RECOG_H) \ 1562 function.h except.h $(GGC_H) 1563cfgcleanup.o : cfgcleanup.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TIMEVAR_H)\ 1564 $(BASIC_BLOCK_H) hard-reg-set.h output.h flags.h $(RECOG_H) toplev.h \ 1565 $(GGC_H) insn-config.h cselib.h $(TARGET_H) $(TM_P_H) $(PARAMS_H) 1566cfgloop.o : cfgloop.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \ 1567 $(BASIC_BLOCK_H) hard-reg-set.h 1568dominance.o : dominance.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) hard-reg-set.h \ 1569 $(BASIC_BLOCK_H) et-forest.h 1570et-forest.o : et-forest.c $(CONFIG_H) $(SYSTEM_H) et-forest.h 1571combine.o : combine.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h function.h \ 1572 insn-config.h $(INSN_ATTR_H) $(REGS_H) $(EXPR_H) \ 1573 $(BASIC_BLOCK_H) $(RECOG_H) real.h hard-reg-set.h toplev.h $(TM_P_H) 1574regclass.o : regclass.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) hard-reg-set.h flags.h \ 1575 $(BASIC_BLOCK_H) $(REGS_H) insn-config.h $(RECOG_H) reload.h real.h \ 1576 toplev.h function.h output.h $(GGC_H) $(TM_P_H) $(EXPR_H) 1577local-alloc.o : local-alloc.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h \ 1578 $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h insn-config.h $(RECOG_H) \ 1579 output.h function.h $(INSN_ATTR_H) toplev.h except.h $(TM_P_H) 1580bitmap.o : bitmap.c $(GCONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h \ 1581 $(BASIC_BLOCK_H) $(REGS_H) $(GGC_H) 1582 $(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) 1583global.o : global.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h reload.h function.h \ 1584 $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h insn-config.h output.h toplev.h \ 1585 $(TM_P_H) 1586varray.o : varray.c $(CONFIG_H) $(SYSTEM_H) varray.h $(GGC_H) errors.h 1587ra.o : ra.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TM_P_H) insn-config.h \ 1588 $(RECOG_H) integrate.h function.h $(REGS_H) $(OBSTACK_H) hard-reg-set.h \ 1589 $(BASIC_BLOCK_H) df.h expr.h output.h toplev.h flags.h reload.h ra.h 1590ra-build.o : ra-build.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TM_P_H) \ 1591 insn-config.h $(RECOG_H) function.h $(REGS_H) hard-reg-set.h \ 1592 $(BASIC_BLOCK_H) df.h output.h ggc.h ra.h gt-ra-build.h reload.h 1593ra-colorize.o : ra-colorize.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TM_P_H) \ 1594 function.h $(REGS_H) hard-reg-set.h $(BASIC_BLOCK_H) df.h output.h ra.h 1595ra-debug.o : ra-debug.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) insn-config.h \ 1596 $(RECOG_H) function.h hard-reg-set.h $(BASIC_BLOCK_H) df.h output.h ra.h \ 1597 $(TM_P_H) 1598ra-rewrite.o : ra-rewrite.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TM_P_H) \ 1599 function.h $(REGS_H) hard-reg-set.h $(BASIC_BLOCK_H) df.h expr.h \ 1600 output.h except.h ra.h reload.h insn-config.h 1601reload.o : reload.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h output.h \ 1602 $(EXPR_H) $(OPTABS_H) reload.h $(RECOG_H) hard-reg-set.h insn-config.h \ 1603 $(REGS_H) function.h real.h toplev.h $(TM_P_H) 1604reload1.o : reload1.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) real.h flags.h \ 1605 $(EXPR_H) $(OPTABS_H) reload.h $(REGS_H) hard-reg-set.h insn-config.h \ 1606 $(BASIC_BLOCK_H) $(RECOG_H) output.h function.h toplev.h cselib.h $(TM_P_H) \ 1607 except.h $(TREE_H) 1608caller-save.o : caller-save.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h \ 1609 $(REGS_H) hard-reg-set.h insn-config.h $(BASIC_BLOCK_H) function.h \ 1610 $(RECOG_H) reload.h $(EXPR_H) toplev.h $(TM_P_H) 1611reorg.o : reorg.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) conditions.h hard-reg-set.h \ 1612 $(BASIC_BLOCK_H) $(REGS_H) insn-config.h $(INSN_ATTR_H) except.h \ 1613 $(RECOG_H) function.h flags.h output.h $(EXPR_H) toplev.h $(PARAMS_H) $(TM_P_H) 1614alias.o : alias.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h hard-reg-set.h \ 1615 $(BASIC_BLOCK_H) $(REGS_H) toplev.h output.h $(EXPR_H) \ 1616 $(GGC_H) function.h cselib.h $(TREE_H) $(TM_P_H) langhooks.h $(TARGET_H) \ 1617 gt-alias.h 1618regmove.o : regmove.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) insn-config.h \ 1619 $(RECOG_H) output.h $(REGS_H) hard-reg-set.h flags.h function.h \ 1620 $(EXPR_H) $(BASIC_BLOCK_H) toplev.h $(TM_P_H) except.h reload.h 1621haifa-sched.o : haifa-sched.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) sched-int.h \ 1622 $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h flags.h insn-config.h function.h \ 1623 $(INSN_ATTR_H) toplev.h $(RECOG_H) except.h $(TM_P_H) $(TARGET_H) 1624sched-deps.o : sched-deps.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) sched-int.h \ 1625 $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h flags.h insn-config.h function.h \ 1626 $(INSN_ATTR_H) toplev.h $(RECOG_H) except.h cselib.h $(PARAMS_H) $(TM_P_H) 1627sched-rgn.o : sched-rgn.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) sched-int.h \ 1628 $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h flags.h insn-config.h function.h \ 1629 $(INSN_ATTR_H) toplev.h $(RECOG_H) except.h $(TM_P_H) $(TARGET_H) 1630sched-ebb.o : sched-ebb.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) sched-int.h \ 1631 $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h flags.h insn-config.h function.h \ 1632 $(INSN_ATTR_H) toplev.h $(RECOG_H) except.h $(TM_P_H) 1633sched-vis.o : sched-vis.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) sched-int.h \ 1634 hard-reg-set.h $(BASIC_BLOCK_H) $(INSN_ATTR_H) $(REGS_H) $(TM_P_H) \ 1635 $(TARGET_H) real.h 1636final.o : final.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h intl.h \ 1637 $(REGS_H) $(RECOG_H) conditions.h insn-config.h $(INSN_ATTR_H) function.h \ 1638 real.h output.h hard-reg-set.h except.h debug.h xcoffout.h profile.h \ 1639 toplev.h reload.h dwarf2out.h $(BASIC_BLOCK_H) $(TM_P_H) $(TARGET_H) $(EXPR_H) 1640recog.o : recog.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) function.h $(BASIC_BLOCK_H) \ 1641 $(REGS_H) $(RECOG_H) $(EXPR_H) hard-reg-set.h flags.h insn-config.h \ 1642 $(INSN_ATTR_H) real.h toplev.h output.h reload.h $(TM_P_H) 1643reg-stack.o : reg-stack.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) $(RECOG_H) \ 1644 $(REGS_H) hard-reg-set.h flags.h insn-config.h toplev.h reload.h \ 1645 varray.h function.h $(TM_P_H) $(GGC_H) gt-reg-stack.h 1646predict.o: predict.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ 1647 insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h \ 1648 $(RECOG_H) function.h except.h $(EXPR_H) $(TM_P_H) $(PREDICT_H) real.h \ 1649 $(PARAMS_H) $(TARGET_H) 1650lists.o: lists.c $(CONFIG_H) $(SYSTEM_H) toplev.h $(RTL_H) $(GGC_H) 1651bb-reorder.o : bb-reorder.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) \ 1652 flags.h $(BASIC_BLOCK_H) hard-reg-set.h output.h cfglayout.h $(TARGET_H) 1653tracer.o : tracer.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) \ 1654 $(BASIC_BLOCK_H) hard-reg-set.h output.h cfglayout.h flags.h \ 1655 $(PARAMS_H) profile.h 1656cfglayout.o : cfglayout.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) \ 1657 insn-config.h $(BASIC_BLOCK_H) hard-reg-set.h output.h function.h \ 1658 cfglayout.h 1659timevar.o : timevar.c $(CONFIG_H) $(SYSTEM_H) $(TIMEVAR_H) flags.h intl.h 1660regrename.o : regrename.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) insn-config.h \ 1661 $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h $(RECOG_H) function.h \ 1662 resource.h $(OBSTACK_H) flags.h $(TM_P_H) 1663ifcvt.o : ifcvt.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) toplev.h \ 1664 flags.h insn-config.h function.h $(RECOG_H) $(BASIC_BLOCK_H) $(EXPR_H) \ 1665 output.h except.h $(TM_P_H) real.h 1666params.o : params.c $(CONFIG_H) $(SYSTEM_H) $(PARAMS_H) toplev.h 1667hooks.o: hooks.c $(CONFIG_H) $(SYSTEM_H) $(HOOKS_H) 1668 1669$(out_object_file): $(out_file) $(CONFIG_H) $(TREE_H) $(GGC_H) \ 1670 $(RTL_H) $(REGS_H) hard-reg-set.h real.h insn-config.h conditions.h \ 1671 output.h $(INSN_ATTR_H) $(SYSTEM_H) toplev.h $(TARGET_H) libfuncs.h \ 1672 $(TARGET_DEF_H) function.h sched-int.h $(TM_P_H) $(EXPR_H) $(OPTABS_H) \ 1673 langhooks.h 1674 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 1675 $(out_file) $(OUTPUT_OPTION) 1676 1677# Build auxiliary files that support ecoff format. 1678mips-tfile: mips-tfile.o version.o $(LIBDEPS) 1679 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ mips-tfile.o version.o $(LIBS) 1680 1681mips-tfile.o : mips-tfile.c $(CONFIG_H) $(RTL_H) $(SYSTEM_H) version.h 1682 1683mips-tdump: mips-tdump.o version.o $(LIBDEPS) 1684 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ mips-tdump.o version.o $(LIBS) 1685 1686mips-tdump.o : mips-tdump.c $(CONFIG_H) $(RTL_H) $(SYSTEM_H) 1687 1688# 1689# Generate header and source files from the machine description, 1690# and compile them. 1691 1692.PRECIOUS: insn-config.h insn-flags.h insn-codes.h insn-constants.h \ 1693 insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \ 1694 insn-attr.h insn-attrtab.c 1695 1696# The following pair of rules has this effect: 1697# genconfig is run only if the md has changed since genconfig was last run; 1698# but the file insn-config.h is touched only when its contents actually change. 1699 1700# Each of the other insn-* files is handled by a similar pair of rules. 1701 1702# This causes an anomaly in the results of make -n 1703# because insn-* is older than s-* 1704# and thus make -n thinks that insn-* will be updated 1705# and force recompilation of things that depend on it. 1706# We use move-if-change precisely to avoid such recompilation. 1707# But there is no way to teach make -n that it will be avoided. 1708 1709# Each of the insn-*.[ch] rules has a semicolon at the end, 1710# for otherwise the system Make on SunOS 4.1 never tries 1711# to recompile insn-*.o. To avoid problems and extra noise from 1712# versions of make which don't like empty commands (nothing after the 1713# trailing `;'), we call true for each. 1714 1715insn-config.h: s-config ; @true 1716s-config : $(md_file) genconfig$(build_exeext) $(srcdir)/move-if-change 1717 $(RUN_GEN) ./genconfig$(build_exeext) $(md_file) > tmp-config.h 1718 $(SHELL) $(srcdir)/move-if-change tmp-config.h insn-config.h 1719 $(STAMP) s-config 1720 1721insn-conditions.c: s-conditions ; @true 1722s-conditions : $(md_file) genconditions$(build_exeext) $(srcdir)/move-if-change 1723 $(RUN_GEN) ./genconditions$(build_exeext) $(md_file) > tmp-conditions.c 1724 $(SHELL) $(srcdir)/move-if-change tmp-conditions.c insn-conditions.c 1725 $(STAMP) s-conditions 1726 1727insn-conditions.o : insn-conditions.c $(GCONFIG_H) $(SYSTEM_H) $(RTL_H) \ 1728 $(TM_P_H) $(REGS_H) function.h $(RECOG_H) real.h output.h flags.h \ 1729 hard-reg-set.h resource.h toplev.h reload.h gensupport.h insn-constants.h 1730 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) insn-conditions.c 1731 1732dummy-conditions.o : dummy-conditions.c $(HCONFIG_H) $(SYSTEM_H) gensupport.h 1733 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \ 1734 $(srcdir)/dummy-conditions.c $(OUTPUT_OPTION) 1735 1736insn-flags.h: s-flags ; @true 1737s-flags : $(md_file) genflags$(build_exeext) $(srcdir)/move-if-change 1738 $(RUN_GEN) ./genflags$(build_exeext) $(md_file) > tmp-flags.h 1739 $(SHELL) $(srcdir)/move-if-change tmp-flags.h insn-flags.h 1740 $(STAMP) s-flags 1741 1742insn-codes.h: s-codes ; @true 1743s-codes : $(md_file) gencodes$(build_exeext) $(srcdir)/move-if-change 1744 $(RUN_GEN) ./gencodes$(build_exeext) $(md_file) > tmp-codes.h 1745 $(SHELL) $(srcdir)/move-if-change tmp-codes.h insn-codes.h 1746 $(STAMP) s-codes 1747 1748insn-constants.h: s-constants ; @true 1749s-constants : $(md_file) genconstants$(build_exeext) $(srcdir)/move-if-change 1750 $(RUN_GEN) ./genconstants$(build_exeext) $(md_file) > tmp-constants.h 1751 $(SHELL) $(srcdir)/move-if-change tmp-constants.h insn-constants.h 1752 $(STAMP) s-constants 1753 1754insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) $(EXPR_H) real.h output.h \ 1755 insn-config.h $(OPTABS_H) $(SYSTEM_H) reload.h $(RECOG_H) toplev.h \ 1756 function.h flags.h hard-reg-set.h resource.h $(TM_P_H) 1757 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-emit.c \ 1758 $(OUTPUT_OPTION) 1759 1760insn-emit.c: s-emit ; @true 1761s-emit : $(md_file) genemit$(build_exeext) $(srcdir)/move-if-change 1762 $(RUN_GEN) ./genemit$(build_exeext) $(md_file) > tmp-emit.c 1763 $(SHELL) $(srcdir)/move-if-change tmp-emit.c insn-emit.c 1764 $(STAMP) s-emit 1765 1766insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h $(RECOG_H) \ 1767 real.h output.h flags.h $(SYSTEM_H) function.h hard-reg-set.h resource.h \ 1768 $(TM_P_H) toplev.h reload.h 1769 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-recog.c \ 1770 $(OUTPUT_OPTION) 1771 1772insn-recog.c: s-recog ; @true 1773s-recog : $(md_file) genrecog$(build_exeext) $(srcdir)/move-if-change 1774 $(RUN_GEN) ./genrecog$(build_exeext) $(md_file) > tmp-recog.c 1775 $(SHELL) $(srcdir)/move-if-change tmp-recog.c insn-recog.c 1776 $(STAMP) s-recog 1777 1778insn-opinit.o : insn-opinit.c $(CONFIG_H) $(RTL_H) \ 1779 insn-config.h flags.h $(RECOG_H) $(EXPR_H) $(OPTABS_H) reload.h $(SYSTEM_H) 1780 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-opinit.c \ 1781 $(OUTPUT_OPTION) 1782 1783insn-opinit.c: s-opinit ; @true 1784s-opinit : $(md_file) genopinit$(build_exeext) $(srcdir)/move-if-change 1785 $(RUN_GEN) ./genopinit$(build_exeext) $(md_file) > tmp-opinit.c 1786 $(SHELL) $(srcdir)/move-if-change tmp-opinit.c insn-opinit.c 1787 $(STAMP) s-opinit 1788 1789insn-extract.o : insn-extract.c $(CONFIG_H) $(RTL_H) $(SYSTEM_H) toplev.h \ 1790 insn-config.h $(RECOG_H) 1791 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-extract.c \ 1792 $(OUTPUT_OPTION) 1793 1794insn-extract.c: s-extract ; @true 1795s-extract : $(md_file) genextract$(build_exeext) $(srcdir)/move-if-change 1796 $(RUN_GEN) ./genextract$(build_exeext) $(md_file) > tmp-extract.c 1797 $(SHELL) $(srcdir)/move-if-change tmp-extract.c insn-extract.c 1798 $(STAMP) s-extract 1799 1800insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) $(REGS_H) output.h real.h \ 1801 $(SYSTEM_H) insn-config.h $(RECOG_H) except.h function.h $(TM_P_H) 1802 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-peep.c \ 1803 $(OUTPUT_OPTION) 1804 1805insn-peep.c: s-peep ; @true 1806s-peep : $(md_file) genpeep$(build_exeext) $(srcdir)/move-if-change 1807 $(RUN_GEN) ./genpeep$(build_exeext) $(md_file) > tmp-peep.c 1808 $(SHELL) $(srcdir)/move-if-change tmp-peep.c insn-peep.c 1809 $(STAMP) s-peep 1810 1811insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) $(REGS_H) real.h \ 1812 output.h $(INSN_ATTR_H) insn-config.h $(SYSTEM_H) toplev.h $(RECOG_H) \ 1813 $(TM_P_H) flags.h 1814 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-attrtab.c \ 1815 $(OUTPUT_OPTION) 1816 1817insn-attr.h: s-attr ; @true 1818s-attr : $(md_file) genattr$(build_exeext) $(srcdir)/move-if-change 1819 $(RUN_GEN) ./genattr$(build_exeext) $(md_file) > tmp-attr.h 1820 $(SHELL) $(srcdir)/move-if-change tmp-attr.h insn-attr.h 1821 $(STAMP) s-attr 1822 1823insn-attrtab.c: s-attrtab ; @true 1824s-attrtab : $(md_file) genattrtab$(build_exeext) $(srcdir)/move-if-change 1825 $(RUN_GEN) ./genattrtab$(build_exeext) $(md_file) > tmp-attrtab.c 1826 $(SHELL) $(srcdir)/move-if-change tmp-attrtab.c insn-attrtab.c 1827 $(STAMP) s-attrtab 1828 1829insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) $(GGC_H) $(REGS_H) real.h \ 1830 conditions.h hard-reg-set.h insn-config.h $(INSN_ATTR_H) $(EXPR_H) \ 1831 output.h $(RECOG_H) function.h $(SYSTEM_H) toplev.h flags.h \ 1832 insn-codes.h $(TM_P_H) 1833 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-output.c \ 1834 $(OUTPUT_OPTION) 1835 1836insn-output.c: s-output ; @true 1837s-output : $(md_file) genoutput$(build_exeext) $(srcdir)/move-if-change 1838 $(RUN_GEN) ./genoutput$(build_exeext) $(md_file) > tmp-output.c 1839 $(SHELL) $(srcdir)/move-if-change tmp-output.c insn-output.c 1840 $(STAMP) s-output 1841 1842genrtl.o : genrtl.c $(CONFIG_H) $(RTL_H) $(SYSTEM_H) $(GGC_H) 1843genrtl.c genrtl.h : s-genrtl 1844 @true # force gnu make to recheck modification times. 1845 1846s-genrtl: gengenrtl$(build_exeext) $(srcdir)/move-if-change $(RTL_BASE_H) 1847 $(RUN_GEN) ./gengenrtl$(build_exeext) -h > tmp-genrtl.h 1848 $(SHELL) $(srcdir)/move-if-change tmp-genrtl.h genrtl.h 1849 $(RUN_GEN) ./gengenrtl$(build_exeext) > tmp-genrtl.c 1850 $(SHELL) $(srcdir)/move-if-change tmp-genrtl.c genrtl.c 1851 $(STAMP) s-genrtl 1852 1853tm-preds.h: s-preds; @true 1854 1855s-preds: genpreds$(build_exeext) $(srcdir)/move-if-change 1856 $(RUN_GEN) ./genpreds$(build_exeext) > tmp-preds.h 1857 $(SHELL) $(srcdir)/move-if-change tmp-preds.h tm-preds.h 1858 $(STAMP) s-preds 1859 1860GTFILES = $(GCONFIG_H) $(srcdir)/location.h \ 1861 $(HASHTAB_H) \ 1862 $(srcdir)/bitmap.h $(srcdir)/function.h $(srcdir)/rtl.h $(srcdir)/optabs.h \ 1863 $(srcdir)/tree.h $(srcdir)/libfuncs.h $(srcdir)/hashtable.h $(srcdir)/real.h \ 1864 $(srcdir)/varray.h $(srcdir)/ssa.h $(srcdir)/insn-addr.h $(srcdir)/cselib.h \ 1865 $(srcdir)/c-common.h $(srcdir)/c-tree.h \ 1866 $(srcdir)/basic-block.h \ 1867 $(srcdir)/alias.c $(srcdir)/bitmap.c $(srcdir)/cselib.c \ 1868 $(srcdir)/dwarf2out.c $(srcdir)/emit-rtl.c \ 1869 $(srcdir)/except.c $(srcdir)/explow.c $(srcdir)/expr.c \ 1870 $(srcdir)/fold-const.c $(srcdir)/function.c \ 1871 $(srcdir)/gcse.c $(srcdir)/integrate.c $(srcdir)/lists.c $(srcdir)/optabs.c \ 1872 $(srcdir)/profile.c $(srcdir)/ra-build.c $(srcdir)/regclass.c \ 1873 $(srcdir)/reg-stack.c \ 1874 $(srcdir)/sdbout.c $(srcdir)/stmt.c $(srcdir)/stor-layout.c \ 1875 $(srcdir)/tree.c $(srcdir)/varasm.c \ 1876 $(out_file) \ 1877 @all_gtfiles@ 1878 1879GTFILES_FILES_LANGS = @all_gtfiles_files_langs@ 1880GTFILES_FILES_FILES = @all_gtfiles_files_files@ 1881GTFILES_LANG_DIR_NAMES = @subdirs@ 1882GTFILES_SRCDIR = @srcdir@ 1883 1884gtype-desc.h gtype-desc.c gt-except.h gt-function.h : s-gtype; @true 1885gt-integrate.h gt-stmt.h gt-tree.h gt-varasm.h gt-emit-rtl.h : s-gtype; @true 1886gt-explow.h gt-stor-layout.h gt-regclass.h gt-lists.h : s-gtype; @true 1887gt-alias.h gt-cselib.h gt-fold-const.h gt-gcse.h gt-profile.h : s-gtype; @true 1888gt-expr.h gt-sdbout.h gt-optabs.h gt-bitmap.h gt-dwarf2out.h : s-gtype ; @true 1889gt-ra-build.h gt-reg-stack.h : s-gtype ; @true 1890gt-c-common.h gt-c-decl.h gt-c-parse.h gt-c-pragma.h : s-gtype; @true 1891gt-c-objc-common.h gtype-c.h gt-location.h : s-gtype ; @true 1892 1893gtyp-gen.h: Makefile 1894 echo "/* This file is machine generated. Do not edit. */" > tmp-gtyp.h 1895 echo "static const char *srcdir = " >> tmp-gtyp.h 1896 echo "\"$(GTFILES_SRCDIR)\"" >> tmp-gtyp.h 1897 echo ";" >> tmp-gtyp.h 1898 echo "static const char *lang_files[] = {" >> tmp-gtyp.h 1899 ll="$(GTFILES_FILES_FILES)"; \ 1900 for f in $$ll; do \ 1901 echo "\"$$f\", "; done >> tmp-gtyp.h 1902 echo "NULL};" >> tmp-gtyp.h 1903 echo "static const char *langs_for_lang_files[] = {" >> tmp-gtyp.h 1904 ff="$(GTFILES_FILES_LANGS)"; \ 1905 for f in $$ff; do \ 1906 echo "\"$$f\", " ; done >> tmp-gtyp.h 1907 echo "NULL};" >> tmp-gtyp.h 1908 echo "static const char *all_files[] = {" >> tmp-gtyp.h 1909 gf="$(GTFILES)"; \ 1910 for f in $$gf; do \ 1911 echo "\"$$f\", "; done >> tmp-gtyp.h 1912 echo " NULL};" >> tmp-gtyp.h 1913 echo "static const char *lang_dir_names[] = { \"c\", " >> tmp-gtyp.h 1914 gf="$(GTFILES_LANG_DIR_NAMES)"; \ 1915 for l in $$gf; do \ 1916 echo "\"$$l\", "; done >> tmp-gtyp.h 1917 echo "NULL};" >> tmp-gtyp.h 1918 $(SHELL) $(srcdir)/move-if-change tmp-gtyp.h gtyp-gen.h 1919 1920s-gtype: gengtype$(build_exeext) $(GTFILES) 1921 $(RUN_GEN) ./gengtype 1922 $(STAMP) s-gtype 1923 1924# 1925# Compile the programs that generate insn-* from the machine description. 1926# They are compiled with $(HOST_CC), and associated libraries, 1927# since they need to run on this machine 1928# even if GCC is being compiled to run on some other machine. 1929 1930# $(CONFIG_H) is omitted from the deps of the gen*.o 1931# because these programs don't really depend on anything 1932# about the target machine. They do depend on config.h itself, 1933# since that describes the host machine. 1934 1935read-rtl.o: read-rtl.c $(HCONFIG_H) $(SYSTEM_H) $(RTL_H) \ 1936 $(OBSTACK_H) $(HASHTAB_H) 1937 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/read-rtl.c $(OUTPUT_OPTION) 1938 1939gensupport.o: gensupport.c $(RTL_H) $(OBSTACK_H) $(SYSTEM_H) errors.h gensupport.h 1940 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gensupport.c $(OUTPUT_OPTION) 1941 1942genconfig$(build_exeext) : genconfig.o $(HOST_RTL) $(HOST_SUPPORT) \ 1943 $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBDEPS) 1944 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 1945 genconfig.o $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) \ 1946 $(HOST_ERRORS) $(HOST_LIBS) 1947 1948genconfig.o : genconfig.c $(RTL_H) $(HCONFIG_H) \ 1949 $(SYSTEM_H) errors.h gensupport.h 1950 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genconfig.c $(OUTPUT_OPTION) 1951 1952genflags$(build_exeext) : genflags.o $(HOST_RTL) $(HOST_SUPPORT) \ 1953 $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBDEPS) 1954 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 1955 genflags.o $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) \ 1956 $(HOST_ERRORS) $(HOST_LIBS) 1957 1958genflags.o : genflags.c $(RTL_H) $(OBSTACK_H) $(HCONFIG_H) \ 1959 $(SYSTEM_H) errors.h gensupport.h 1960 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genflags.c $(OUTPUT_OPTION) 1961 1962gencodes$(build_exeext) : gencodes.o $(HOST_RTL) $(HOST_SUPPORT) \ 1963 $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBDEPS) 1964 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 1965 gencodes.o $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) \ 1966 $(HOST_ERRORS) $(HOST_LIBS) 1967 1968gencodes.o : gencodes.c $(RTL_H) $(HCONFIG_H) \ 1969 $(SYSTEM_H) errors.h gensupport.h 1970 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gencodes.c $(OUTPUT_OPTION) 1971 1972genconstants$(build_exeext) : genconstants.o $(HOST_RTL) $(HOST_EARLY_SUPPORT) \ 1973 $(HOST_ERRORS) $(HOST_LIBDEPS) 1974 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 1975 genconstants.o $(HOST_EARLY_SUPPORT) $(HOST_RTL) \ 1976 $(HOST_ERRORS) $(HOST_LIBS) 1977 1978genconstants.o : genconstants.c $(RTL_H) $(HCONFIG_H) $(SYSTEM_H) errors.h 1979 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genconstants.c $(OUTPUT_OPTION) 1980 1981genemit$(build_exeext) : genemit.o $(HOST_RTL) $(HOST_SUPPORT) \ 1982 $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBDEPS) 1983 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 1984 genemit.o $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) \ 1985 $(HOST_ERRORS) $(HOST_LIBS) 1986 1987genemit.o : genemit.c $(RTL_H) $(HCONFIG_H) $(SYSTEM_H) errors.h gensupport.h 1988 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genemit.c $(OUTPUT_OPTION) 1989 1990genopinit$(build_exeext) : genopinit.o $(HOST_RTL) $(HOST_SUPPORT) \ 1991 $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBDEPS) 1992 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 1993 genopinit.o $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) \ 1994 $(HOST_ERRORS) $(HOST_LIBS) 1995 1996genopinit.o : genopinit.c $(RTL_H) $(HCONFIG_H) \ 1997 $(SYSTEM_H) errors.h gensupport.h 1998 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genopinit.c $(OUTPUT_OPTION) 1999 2000genrecog$(build_exeext) : genrecog.o $(HOST_RTL) $(HOST_SUPPORT) \ 2001 $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBDEPS) 2002 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 2003 genrecog.o $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) \ 2004 $(HOST_ERRORS) $(HOST_LIBS) 2005 2006genrecog.o : genrecog.c $(RTL_H) $(HCONFIG_H) \ 2007 $(SYSTEM_H) errors.h gensupport.h 2008 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genrecog.c $(OUTPUT_OPTION) 2009 2010genextract$(build_exeext) : genextract.o $(HOST_RTL) $(HOST_SUPPORT) \ 2011 $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBDEPS) 2012 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 2013 genextract.o $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) \ 2014 $(HOST_ERRORS) $(HOST_LIBS) 2015 2016genextract.o : genextract.c $(RTL_H) $(HCONFIG_H) \ 2017 $(SYSTEM_H) insn-config.h errors.h gensupport.h 2018 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genextract.c $(OUTPUT_OPTION) 2019 2020genpeep$(build_exeext) : genpeep.o $(HOST_RTL) $(HOST_SUPPORT) \ 2021 $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBDEPS) 2022 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 2023 genpeep.o $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) \ 2024 $(HOST_ERRORS) $(HOST_LIBS) 2025 2026genpeep.o : genpeep.c $(RTL_H) $(HCONFIG_H) $(SYSTEM_H) errors.h gensupport.h 2027 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genpeep.c $(OUTPUT_OPTION) 2028 2029genattr$(build_exeext) : genattr.o $(HOST_RTL) $(HOST_SUPPORT) \ 2030 $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBDEPS) 2031 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 2032 genattr.o $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) \ 2033 $(HOST_ERRORS) $(HOST_LIBS) 2034 2035genattr.o : genattr.c $(RTL_H) $(HCONFIG_H) $(SYSTEM_H) errors.h gensupport.h 2036 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattr.c $(OUTPUT_OPTION) 2037 2038genattrtab$(build_exeext) : genattrtab.o genautomata.o \ 2039 $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_VARRAY) \ 2040 $(HOST_LIBDEPS) 2041 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 2042 genattrtab.o genautomata.o \ 2043 $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) $(HOST_ERRORS) \ 2044 $(HOST_VARRAY) $(HOST_LIBS) -lm 2045 2046genattrtab.o : genattrtab.c $(RTL_H) $(OBSTACK_H) $(HCONFIG_H) \ 2047 $(SYSTEM_H) errors.h $(GGC_H) gensupport.h genattrtab.h 2048 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattrtab.c $(OUTPUT_OPTION) 2049 2050genautomata.o : genautomata.c $(RTL_H) $(OBSTACK_H) $(HCONFIG_H) \ 2051 $(SYSTEM_H) errors.h varray.h genattrtab.h $(HASHTAB_H) 2052 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genautomata.c $(OUTPUT_OPTION) 2053 2054genoutput$(build_exeext) : genoutput.o $(HOST_RTL) $(HOST_SUPPORT) \ 2055 $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBDEPS) 2056 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 2057 genoutput.o $(HOST_RTL) $(HOST_SUPPORT) $(HOST_PRINT) \ 2058 $(HOST_ERRORS) $(HOST_LIBS) 2059 2060genoutput.o : genoutput.c $(RTL_H) $(HCONFIG_H) \ 2061 $(SYSTEM_H) errors.h gensupport.h 2062 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genoutput.c $(OUTPUT_OPTION) 2063 2064gengenrtl$(build_exeext) : gengenrtl.o $(HOST_LIBDEPS) 2065 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 2066 gengenrtl.o $(HOST_LIBS) 2067 2068gengenrtl.o : gengenrtl.c $(RTL_BASE_H) $(HCONFIG_H) $(SYSTEM_H) real.h 2069 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gengenrtl.c $(OUTPUT_OPTION) 2070 2071genpreds$(build_exeext) : genpreds.o $(HOST_LIBDEPS) 2072 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 2073 genpreds.o $(HOST_LIBS) 2074 2075genpreds.o : genpreds.c $(RTL_BASE_H) $(HCONFIG_H) $(SYSTEM_H) 2076 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genpreds.c $(OUTPUT_OPTION) 2077 2078gengtype$(build_exeext) : gengtype.o gengtype-lex.o gengtype-yacc.o \ 2079 $(HOST_LIBDEPS) 2080 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 2081 gengtype.o gengtype-lex.o gengtype-yacc.o $(HOST_LIBS) 2082 2083gengtype.o : gengtype.c gengtype.h $(HCONFIG_H) $(SYSTEM_H) real.h rtl.def \ 2084 gtyp-gen.h 2085 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \ 2086 $(srcdir)/gengtype.c $(OUTPUT_OPTION) 2087 2088gengtype-lex.o : $(srcdir)/gengtype-lex.c gengtype.h $(srcdir)/gengtype-yacc.c \ 2089 $(HCONFIG_H) $(SYSTEM_H) 2090 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \ 2091 $(srcdir)/gengtype-lex.c $(OUTPUT_OPTION) 2092 2093gengtype-yacc.o : $(srcdir)/gengtype-yacc.c gengtype.h $(HCONFIG_H) $(SYSTEM_H) 2094 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \ 2095 $(srcdir)/gengtype-yacc.c $(OUTPUT_OPTION) 2096 2097# The sed command works around a bug in flex-2.5.4. 2098$(srcdir)/gengtype-lex.c : $(srcdir)/gengtype-lex.l 2099 cd $(srcdir) && \ 2100 $(FLEX) $(FLEXFLAGS) -t -o$@ gengtype-lex.l | \ 2101 sed 's/^\(char msg\[\];\)/yyconst \1/' > g-$$$$ ; \ 2102 if test $$? -eq 0 ; then \ 2103 mv -f g-$$$$ gengtype-lex.c ; \ 2104 else \ 2105 rm -f g-$$$$.* ; \ 2106 false ; \ 2107 fi 2108 2109$(srcdir)/gengtype-yacc.c: $(srcdir)/gengtype-yacc.y 2110 (cd $(srcdir) && \ 2111 $(BISON) $(BISONFLAGS) -d -o gengtype-yacc.c gengtype-yacc.y || \ 2112 ( rm -f $@ && false ) ) 2113 2114genconditions$(build_exeext) : genconditions.o $(HOST_EARLY_SUPPORT) \ 2115 $(HOST_RTL) $(HOST_ERRORS) $(HOST_LIBDEPS) 2116 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 2117 genconditions.o $(HOST_EARLY_SUPPORT) $(HOST_RTL) \ 2118 $(HOST_ERRORS) $(HOST_LIBS) 2119 2120genconditions.o : genconditions.c $(RTL_H) $(HCONFIG_H) $(SYSTEM_H) errors.h 2121 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \ 2122 $(srcdir)/genconditions.c $(OUTPUT_OPTION) 2123 2124# 2125# Compile the libraries to be used by gen*. 2126# If we are not cross-building, gen* use the same .o's that cc1 will use, 2127# and BUILD_PREFIX_1 is `loser-', just to ensure these rules don't conflict 2128# with the rules for rtl.o, etc. 2129$(BUILD_PREFIX_1)rtl.o: $(srcdir)/rtl.c $(HCONFIG_H) $(SYSTEM_H) $(RTL_H) \ 2130 real.h $(GGC_H) errors.h 2131 rm -f $(BUILD_PREFIX)rtl.c 2132 sed -e 's/config[.]h/hconfig.h/' $(srcdir)/rtl.c > $(BUILD_PREFIX)rtl.c 2133 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(BUILD_PREFIX)rtl.c $(OUTPUT_OPTION) 2134 2135print-rtl1.o: $(srcdir)/print-rtl.c $(HCONFIG_H) \ 2136 $(RTL_H) $(TREE_H) hard-reg-set.h $(BASIC_BLOCK_H) 2137 rm -f print-rtl1.c 2138 sed -e 's/config[.]h/hconfig.h/' $(srcdir)/print-rtl.c > print-rtl1.c 2139 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) print-rtl1.c $(OUTPUT_OPTION) 2140 2141$(BUILD_PREFIX_1)bitmap.o: $(srcdir)/bitmap.c $(HCONFIG_H) $(SYSTEM_H) \ 2142 $(RTL_H) flags.h $(BASIC_BLOCK_H) $(REGS_H) $(GGC_H) 2143 rm -f $(BUILD_PREFIX)bitmap.c 2144 sed -e 's/config[.]h/hconfig.h/' $(srcdir)/bitmap.c > $(BUILD_PREFIX)bitmap.c 2145 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(BUILD_PREFIX)bitmap.c $(OUTPUT_OPTION) 2146 2147$(BUILD_PREFIX_1)errors.o: errors.c $(HCONFIG_H) $(SYSTEM_H) errors.h 2148 rm -f $(BUILD_PREFIX)errors.c 2149 sed -e 's/config[.]h/hconfig.h/' $(srcdir)/errors.c > $(BUILD_PREFIX)errors.c 2150 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(BUILD_PREFIX)errors.c $(OUTPUT_OPTION) 2151 2152$(BUILD_PREFIX_1)varray.o: varray.c $(HCONFIG_H) $(SYSTEM_H) varray.h \ 2153 $(RTL_H) $(GGC_H) $(TREE_H) bitmap.h errors.h 2154 rm -f $(BUILD_PREFIX)varray.c 2155 sed -e 's/config[.]h/hconfig.h/' $(srcdir)/varray.c > \ 2156 $(BUILD_PREFIX)varray.c 2157 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \ 2158 $(BUILD_PREFIX)varray.c $(OUTPUT_OPTION) 2159 2160$(BUILD_PREFIX_1)ggc-none.o: ggc-none.c $(HCONFIG_H) $(SYSTEM_H) $(GGC_H) 2161 rm -f $(BUILD_PREFIX)ggc-none.c 2162 sed -e 's/config[.]h/hconfig.h/' $(srcdir)/ggc-none.c > $(BUILD_PREFIX)ggc-none.c 2163 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(BUILD_PREFIX)ggc-none.c $(OUTPUT_OPTION) 2164 2165# 2166# Remake internationalization support. 2167intl.o: intl.c $(CONFIG_H) system.h intl.h Makefile 2168 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 2169 -DLOCALEDIR=\"$(localedir)\" \ 2170 -c $(srcdir)/intl.c $(OUTPUT_OPTION) 2171 2172$(top_builddir)/intl/libintl.a: intl.all 2173 2174intl.all intl.install intl.uninstall \ 2175 intl.mostlyclean intl.clean intl.distclean intl.maintainer-clean: 2176 @for d in $(INTL_SUBDIRS); do \ 2177 target=`expr $@ : 'intl.\(.*\)'` && \ 2178 echo "(cd $$d && $(MAKE) $$target)" && \ 2179 (cd $$d && AWK='$(AWK)' $(MAKE) $(SUBDIR_FLAGS_TO_PASS) $$target); \ 2180 if [ $$? -eq 0 ] ; then true ; else exit 1 ; fi ; \ 2181 done 2182 2183# intl.all and intl.install need config.h to exist, and the files it includes. 2184# (FIXME: intl/*.c shouldn't need to see insn-foo.h!) 2185intl.all intl.install: config.h insn-flags.h insn-constants.h 2186 2187# Make-lang.in should add dependencies of po-generated on any generated 2188# files which need to be scanned by gettext (usually Yacc-generated parsers). 2189po-generated: c-parse.c 2190 2191# 2192# Remake cpp and protoize. 2193 2194PREPROCESSOR_DEFINES = \ 2195 -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ 2196 -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ 2197 -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/$(target_alias)\" \ 2198 -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/backward\" \ 2199 -DLOCAL_INCLUDE_DIR=\"$(local_includedir)\" \ 2200 -DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \ 2201 -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" 2202 2203LIBCPP_OBJS = cpplib.o cpplex.o cppmacro.o cppexp.o cppfiles.o cpptrad.o \ 2204 cpphash.o cpperror.o cppinit.o cppdefault.o cppmain.o \ 2205 hashtable.o line-map.o mkdeps.o prefix.o mbchar.o 2206 2207LIBCPP_DEPS = $(CPPLIB_H) cpphash.h line-map.h hashtable.h intl.h \ 2208 $(OBSTACK_H) $(SYSTEM_H) 2209 2210# Most of the other archives built/used by this makefile are for 2211# targets. This one is strictly for the host. 2212libcpp.a: $(LIBCPP_OBJS) 2213 -rm -rf libcpp.a 2214 $(AR) $(AR_FLAGS) libcpp.a $(LIBCPP_OBJS) 2215 -$(RANLIB) libcpp.a 2216 2217cppmain.o: cppmain.c $(CONFIG_H) $(LIBCPP_DEPS) 2218 2219cpperror.o: cpperror.c $(CONFIG_H) $(LIBCPP_DEPS) 2220cppexp.o: cppexp.c $(CONFIG_H) $(LIBCPP_DEPS) 2221cpplex.o: cpplex.c $(CONFIG_H) $(LIBCPP_DEPS) mbchar.h 2222cppmacro.o: cppmacro.c $(CONFIG_H) $(LIBCPP_DEPS) 2223cpplib.o: cpplib.c $(CONFIG_H) $(LIBCPP_DEPS) 2224cpphash.o: cpphash.c $(CONFIG_H) $(LIBCPP_DEPS) 2225cpptrad.o: cpptrad.c $(CONFIG_H) $(LIBCPP_DEPS) 2226cppfiles.o: cppfiles.c $(CONFIG_H) $(LIBCPP_DEPS) $(SPLAY_TREE_H) mkdeps.h 2227cppinit.o: cppinit.c $(CONFIG_H) $(LIBCPP_DEPS) cppdefault.h \ 2228 mkdeps.h prefix.h 2229 2230cppdefault.o: cppdefault.c $(CONFIG_H) $(SYSTEM_H) cppdefault.h Makefile 2231 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 2232 $(PREPROCESSOR_DEFINES) \ 2233 -c $(srcdir)/cppdefault.c $(OUTPUT_OPTION) 2234 2235mkdeps.o: mkdeps.c $(CONFIG_H) $(SYSTEM_H) mkdeps.h 2236 2237# Note for the stamp targets, we run the program `true' instead of 2238# having an empty command (nothing following the semicolon). 2239 2240proto: config.status protoize$(exeext) unprotoize$(exeext) SYSCALLS.c.X 2241 2242PROTO_OBJS = intl.o version.o cppdefault.o 2243 2244protoize$(exeext): protoize.o $(PROTO_OBJS) $(LIBDEPS) 2245 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ protoize.o $(PROTO_OBJS) $(LIBS) 2246 2247unprotoize$(exeext): unprotoize.o $(PROTO_OBJS) $(LIBDEPS) 2248 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ unprotoize.o $(PROTO_OBJS) $(LIBS) 2249 2250protoize.o: protoize.c $(srcdir)/../include/getopt.h $(CONFIG_H) $(SYSTEM_H) \ 2251 Makefile version.h 2252 (SHLIB_LINK='$(SHLIB_LINK)' \ 2253 SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \ 2254 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 2255 $(DRIVER_DEFINES) \ 2256 $(srcdir)/protoize.c $(OUTPUT_OPTION)) 2257 2258unprotoize.o: protoize.c $(srcdir)/../include/getopt.h \ 2259 $(CONFIG_H) $(SYSTEM_H) Makefile version.h 2260 (SHLIB_LINK='$(SHLIB_LINK)' \ 2261 SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \ 2262 $(CC) -c -DUNPROTOIZE $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 2263 $(DRIVER_DEFINES) \ 2264 $(srcdir)/protoize.c $(OUTPUT_OPTION)) 2265 2266# This info describes the target machine, so compile with GCC just built. 2267SYSCALLS.c.X: $(srcdir)/sys-types.h $(srcdir)/sys-protos.h $(GCC_PASSES) \ 2268 stmp-int-hdrs 2269 -rm -f SYSCALLS.c tmp-SYSCALLS.s 2270 sed -e s/TARGET_GETGROUPS_T/$(TARGET_GETGROUPS_T)/ \ 2271 $(srcdir)/sys-types.h $(srcdir)/sys-protos.h > SYSCALLS.c 2272 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 2273 -aux-info $@ -S -o tmp-SYSCALLS.s SYSCALLS.c 2274 -rm -f SYSCALLS.c tmp-SYSCALLS.s 2275 2276 2277test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES) 2278 -rm -f tmp-proto.[cso] 2279 cp $(srcdir)/protoize.c tmp-proto.c 2280 chmod u+w tmp-proto.c 2281 ./protoize -N -B ./ -x getopt.h -c "-B./ -Wall -Wwrite-strings \ 2282 $(GCC_CFLAGS) $(INCLUDES) \ 2283 -DGCC_INCLUDE_DIR=0 \ 2284 -DGPLUSPLUS_INCLUDE_DIR=0 \ 2285 -DCROSS_INCLUDE_DIR=0 \ 2286 -DTOOL_INCLUDE_DIR=0 \ 2287 -DSTANDARD_EXEC_PREFIX=0 \ 2288 -DDEFAULT_TARGET_MACHINE=0 \ 2289 -DDEFAULT_TARGET_VERSION=0" tmp-proto.c 2290 @echo '**********' Expect 400 lines of differences. 2291 -diff $(srcdir)/protoize.c tmp-proto.c > tmp-proto.diff 2292 -wc -l tmp-proto.diff 2293 ./unprotoize -N -x getopt.h -c "-B./ -Wall -Wwrite-strings \ 2294 $(GCC_CFLAGS) $(INCLUDES) \ 2295 -DGCC_INCLUDE_DIR=0 \ 2296 -DGPLUSPLUS_INCLUDE_DIR=0 \ 2297 -DCROSS_INCLUDE_DIR=0 \ 2298 -DTOOL_INCLUDE_DIR=0 \ 2299 -DSTANDARD_EXEC_PREFIX=0 \ 2300 -DDEFAULT_TARGET_MACHINE=0 \ 2301 -DDEFAULT_TARGET_VERSION=0" tmp-proto.c 2302 @echo Expect zero differences. 2303 diff $(srcdir)/protoize.c tmp-proto.c | cat 2304 -rm -f tmp-proto.[cs] tmp-proto$(objext) 2305 2306gcov.o: gcov.c gcov-io.h intl.h $(SYSTEM_H) $(CONFIG_H) 2307 2308# Only one of 'gcov' or 'gcov.exe' is actually built, depending 2309# upon whether $(exeext) is empty or not. 2310GCOV_OBJS = gcov.o intl.o version.o 2311gcov$(exeext): $(GCOV_OBJS) $(LIBDEPS) 2312 $(CC) $(ALL_CFLAGS) $(LDFLAGS) $(GCOV_OBJS) $(LIBS) -o $@ 2313# 2314# Build the include directory. The stamp files are stmp-* rather than 2315# s-* so that mostlyclean does not force the include directory to 2316# be rebuilt. 2317 2318# Build the include directory 2319stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) xlimits.h 2320# Copy in the headers provided with gcc. 2321# The sed command gets just the last file name component; 2322# this is necessary because VPATH could add a dirname. 2323# Using basename would be simpler, but some systems don't have it. 2324# The touch command is here to workaround an AIX/Linux NFS bug. 2325 -if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi 2326 for file in .. $(USER_H); do \ 2327 if [ X$$file != X.. ]; then \ 2328 realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \ 2329 $(STAMP) include/$$realfile; \ 2330 rm -f include/$$realfile; \ 2331 cp $$file include; \ 2332 chmod a+r include/$$realfile; \ 2333 fi; \ 2334 done 2335 rm -f include/limits.h 2336 cp xlimits.h include/limits.h 2337 chmod a+r include/limits.h 2338# Install the README 2339 rm -f include/README 2340 cp $(srcdir)/README-fixinc include/README 2341 chmod a+r include/README 2342 $(STAMP) $@ 2343 2344# fixinc.sh depends on this, not on specs directly. 2345# The idea is to make sure specs gets built, but not rerun fixinc.sh 2346# after each stage just because specs' mtime has changed. 2347specs.ready: specs 2348 -if [ -f specs.ready ] ; then \ 2349 true; \ 2350 else \ 2351 $(STAMP) specs.ready; \ 2352 fi 2353 2354FIXINCSRCDIR=$(srcdir)/fixinc 2355fixinc.sh: $(FIXINCSRCDIR)/mkfixinc.sh $(FIXINCSRCDIR)/fixincl.c \ 2356 $(FIXINCSRCDIR)/procopen.c $(FIXINCSRCDIR)/gnu-regex.c \ 2357 $(FIXINCSRCDIR)/server.c $(FIXINCSRCDIR)/gnu-regex.h \ 2358 $(FIXINCSRCDIR)/server.h $(FIXINCSRCDIR)/inclhack.def specs.ready 2359 (MAKE="$(MAKE)"; srcdir=`cd $(srcdir)/fixinc && ${PWD_COMMAND}` ; \ 2360 CC="$(HOST_CC)"; CFLAGS="$(HOST_CFLAGS)"; LDFLAGS="$(HOST_LDFLAGS)"; \ 2361 WARN_CFLAGS="$(WARN_CFLAGS)"; \ 2362 export MAKE srcdir CC CFLAGS LDFLAGS WARN_CFLAGS; cd ./fixinc && \ 2363 $(SHELL) $${srcdir}/mkfixinc.sh $(build_canonical) $(target)) 2364 2365# Build fixed copies of system files. 2366stmp-fixinc: fixinc.sh gsyslimits.h 2367 rm -rf include; mkdir include 2368 -chmod a+rx include 2369 (TARGET_MACHINE='$(target)'; srcdir=`cd $(srcdir); ${PWD_COMMAND}`; \ 2370 SHELL='$(SHELL)' ;\ 2371 export TARGET_MACHINE srcdir SHELL ; \ 2372 $(SHELL) ./fixinc.sh `${PWD_COMMAND}`/include $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS); \ 2373 rm -f include/syslimits.h; \ 2374 if [ -f include/limits.h ]; then \ 2375 mv include/limits.h include/syslimits.h; \ 2376 else \ 2377 cp $(srcdir)/gsyslimits.h include/syslimits.h; \ 2378 fi; \ 2379 chmod a+r include/syslimits.h) 2380# If $(SYSTEM_HEADER_DIR) is $(build_tooldir)/sys-include, and 2381# that directory exists, then make sure that $(libsubdir) exists. 2382# This is because cpp is compiled to find $(gcc_tooldir)/include via 2383# $(libsubdir)/$(unlibsubdir), which will only work if $(libsubdir) 2384# exists. 2385# ??? Better would be to use -isystem $(build_tooldir)/sys-include, 2386# but fixincludes does not take such arguments. 2387 if [ "$(SYSTEM_HEADER_DIR)" = "$(build_tooldir)/sys-include" ] \ 2388 && [ -d $(build_tooldir)/sys-include ]; then \ 2389 if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi; \ 2390 if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib; fi; \ 2391 if [ -d $(libdir)/gcc-lib/$(target_alias) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias) ; fi; \ 2392 if [ -d $(libdir)/gcc-lib/$(target_alias)/$(version) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias)/$(version) ; fi; \ 2393 else true; fi 2394 $(STAMP) stmp-fixinc 2395 2396# Files related to the fixproto script. 2397# gen-protos and fix-header are compiled with HOST_CC, but they are only 2398# used in native and host-x-target builds, so it's safe to link them with 2399# libiberty.a. 2400 2401deduced.h: $(GCC_PASSES) $(srcdir)/scan-types.sh stmp-int-hdrs 2402 if [ -d $(SYSTEM_HEADER_DIR) ]; \ 2403 then \ 2404 CC="$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -I. -I$(srcdir) -isystem include -isystem ${SYSTEM_HEADER_DIR}"; \ 2405 export CC; \ 2406 $(SHELL) $(srcdir)/scan-types.sh "$(srcdir)" >tmp-deduced.h; \ 2407 mv tmp-deduced.h deduced.h; \ 2408 else \ 2409 $(STAMP) deduced.h; \ 2410 fi 2411 2412GEN_PROTOS_OBJS = gen-protos.o scan.o 2413gen-protos$(build_exeext): $(GEN_PROTOS_OBJS) 2414 ${HOST_CC} $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ 2415 $(GEN_PROTOS_OBJS) $(HOST_LIBS) 2416 2417gen-protos.o: gen-protos.c scan.h $(HCONFIG_H) $(SYSTEM_H) 2418 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gen-protos.c $(OUTPUT_OPTION) 2419 2420scan.o: scan.c scan.h $(HCONFIG_H) $(SYSTEM_H) 2421 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan.c $(OUTPUT_OPTION) 2422 2423xsys-protos.h: $(GCC_PASSES) $(srcdir)/sys-protos.h deduced.h gen-protos$(build_exeext) Makefile 2424 sed -e s/TARGET_GETGROUPS_T/$(TARGET_GETGROUPS_T)/ \ 2425 deduced.h $(srcdir)/sys-protos.h > tmp-fixtmp.c 2426 mv tmp-fixtmp.c fixtmp.c 2427 $(GCC_FOR_TARGET) fixtmp.c -w -U__SIZE_TYPE__ -U__PTRDIFF_TYPE__ -U__WCHAR_TYPE__ -E \ 2428 | sed -e 's/ / /g' -e 's/ *(/ (/g' -e 's/ [ ]*/ /g' -e 's/( )/()/' \ 2429 | $(RUN_GEN) ./gen-protos >xsys-protos.hT 2430 mv xsys-protos.hT xsys-protos.h 2431 rm -rf fixtmp.c 2432 2433# This is nominally a 'build' program, but it's run only when host==build, 2434# so we can (indeed, must) use $(LIBDEPS) and $(LIBS). 2435fix-header$(build_exeext): fix-header.o scan-decls.o scan.o xsys-protos.h \ 2436 $(LIBDEPS) libcpp.a 2437 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ fix-header.o \ 2438 scan-decls.o scan.o libcpp.a $(LIBS) 2439 2440fix-header.o: fix-header.c $(OBSTACK_H) scan.h \ 2441 xsys-protos.h $(HCONFIG_H) $(SYSTEM_H) $(CPPLIB_H) 2442 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/fix-header.c $(OUTPUT_OPTION) 2443 2444scan-decls.o: scan-decls.c scan.h $(CPPLIB_H) $(HCONFIG_H) $(SYSTEM_H) 2445 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan-decls.c $(OUTPUT_OPTION) 2446 2447# stmp-fixproto depends on this, not on fix-header directly. 2448# The idea is to make sure fix-header gets built, 2449# but not rerun fixproto after each stage 2450# just because fix-header's mtime has changed. 2451fixhdr.ready: fix-header$(build_exeext) 2452 -if [ -f fixhdr.ready ] ; then \ 2453 true; \ 2454 else \ 2455 $(STAMP) fixhdr.ready; \ 2456 fi 2457 2458# stmp-int-headers is to make sure fixincludes has already finished. 2459# The if statement is so that we don't run fixproto a second time 2460# if it has already been run on the files in `include'. 2461stmp-fixproto: fixhdr.ready fixproto stmp-int-hdrs 2462 if [ -f include/fixed ] ; then true; \ 2463 else \ 2464 : This line works around a 'make' bug in BSDI 1.1.; \ 2465 FIXPROTO_DEFINES="$(FIXPROTO_DEFINES)"; export FIXPROTO_DEFINES; \ 2466 mkinstalldirs="$(SHELL) $(srcdir)/mkinstalldirs"; \ 2467 export mkinstalldirs; \ 2468 if [ -d $(SYSTEM_HEADER_DIR) ] ; then \ 2469 $(SHELL) ${srcdir}/fixproto include include $(SYSTEM_HEADER_DIR); \ 2470 if [ $$? -eq 0 ] ; then true ; else exit 1 ; fi ; \ 2471 else true; fi; \ 2472 $(STAMP) include/fixed; \ 2473 fi 2474 $(STAMP) stmp-fixproto 2475# 2476# Remake the info files. 2477 2478docdir = $(srcdir)/doc 2479 2480doc: $(BUILD_INFO) $(GENERATED_MANPAGES) gccbug 2481info: $(docdir)/cpp.info $(docdir)/gcc.info $(docdir)/gccint.info $(docdir)/gccinstall.info lang.info $(docdir)/cppinternals.info 2482 2483TEXI_CPP_FILES = $(docdir)/cpp.texi $(docdir)/include/fdl.texi \ 2484 $(docdir)/cppenv.texi $(docdir)/cppopts.texi 2485 2486TEXI_GCC_FILES = $(docdir)/gcc.texi $(docdir)/include/gcc-common.texi \ 2487 $(docdir)/frontends.texi $(docdir)/standards.texi \ 2488 $(docdir)/invoke.texi $(docdir)/extend.texi $(docdir)/md.texi \ 2489 $(docdir)/objc.texi $(docdir)/gcov.texi $(docdir)/trouble.texi \ 2490 $(docdir)/bugreport.texi $(docdir)/service.texi \ 2491 $(docdir)/contribute.texi $(docdir)/compat.texi \ 2492 $(docdir)/include/funding.texi $(docdir)/gnu.texi \ 2493 $(docdir)/include/gpl.texi $(docdir)/include/fdl.texi \ 2494 $(docdir)/contrib.texi $(docdir)/cppenv.texi $(docdir)/cppopts.texi 2495 2496TEXI_GCCINT_FILES = $(docdir)/gccint.texi \ 2497 $(docdir)/include/gcc-common.texi $(docdir)/contribute.texi \ 2498 $(docdir)/makefile.texi $(docdir)/configterms.texi \ 2499 $(docdir)/portability.texi $(docdir)/interface.texi \ 2500 $(docdir)/passes.texi $(docdir)/c-tree.texi \ 2501 $(docdir)/rtl.texi $(docdir)/md.texi $(docdir)/tm.texi \ 2502 $(docdir)/hostconfig.texi $(docdir)/fragments.texi \ 2503 $(docdir)/configfiles.texi $(docdir)/collect2.texi \ 2504 $(docdir)/headerdirs.texi $(docdir)/include/funding.texi \ 2505 $(docdir)/gnu.texi $(docdir)/include/gpl.texi \ 2506 $(docdir)/include/fdl.texi $(docdir)/contrib.texi \ 2507 $(docdir)/languages.texi $(docdir)/sourcebuild.texi \ 2508 $(docdir)/gty.texi 2509 2510TEXI_GCCINSTALL_FILES = $(docdir)/install.texi $(docdir)/install-old.texi \ 2511 $(docdir)/include/fdl.texi 2512 2513TEXI_CPPINT_FILES = $(docdir)/cppinternals.texi 2514 2515$(docdir)/cpp.info: $(TEXI_CPP_FILES) 2516 cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -I doc -I doc/include -o doc/cpp.info doc/cpp.texi 2517 2518$(docdir)/gcc.info: $(TEXI_GCC_FILES) 2519 cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -I doc -I doc/include -o doc/gcc.info doc/gcc.texi 2520 2521$(docdir)/gccint.info: $(TEXI_GCCINT_FILES) 2522 cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -I doc -I doc/include -o doc/gccint.info doc/gccint.texi 2523 2524$(docdir)/gccinstall.info: $(TEXI_GCCINSTALL_FILES) 2525 cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -I doc -I doc/include -o doc/gccinstall.info doc/install.texi 2526 2527$(docdir)/cppinternals.info: $(TEXI_CPPINT_FILES) 2528 cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -I doc -I doc/include -o doc/cppinternals.info \ 2529 doc/cppinternals.texi 2530 2531dvi: gcc.dvi gccint.dvi gccinstall.dvi cpp.dvi lang.dvi cppinternals.dvi 2532 2533# This works with GNU Make's default rule. 2534cpp.dvi: $(TEXI_CPP_FILES) 2535 $(TEXI2DVI) -I $(docdir) -I $(docdir)/include $(docdir)/cpp.texi 2536 2537gcc.dvi: $(TEXI_GCC_FILES) 2538 $(TEXI2DVI) -I $(docdir) -I $(docdir)/include $(docdir)/gcc.texi 2539 2540gccint.dvi: $(TEXI_GCCINT_FILES) 2541 $(TEXI2DVI) -I $(docdir) -I $(docdir)/include $(docdir)/gccint.texi 2542 2543gccinstall.dvi: $(TEXI_GCCINSTALL_FILES) 2544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ 2545 $(TEXI2DVI) -I $$s/doc -I $$s/doc/include -o $@ $$s/doc/install.texi 2546 2547cppinternals.dvi: $(TEXI_CPPINT_FILES) 2548 $(TEXI2DVI) -I $(docdir) -I $(docdir)/include $(docdir)/cppinternals.texi 2549 2550generated-manpages: $(docdir)/gcov.1 $(docdir)/cpp.1 $(docdir)/gcc.1 \ 2551 $(docdir)/gfdl.7 $(docdir)/gpl.7 $(docdir)/fsf-funding.7 \ 2552 lang.generated-manpages 2553 2554$(docdir)/gcov.1: $(docdir)/gcov.texi 2555 $(STAMP) $(docdir)/gcov.1 2556 -$(TEXI2POD) $(docdir)/gcov.texi > gcov.pod 2557 -($(POD2MAN) --section=1 gcov.pod > $(docdir)/gcov.1.T$$$$ && \ 2558 mv -f $(docdir)/gcov.1.T$$$$ $(docdir)/gcov.1) || \ 2559 (rm -f $(docdir)/gcov.1.T$$$$ && exit 1) 2560 -rm -f gcov.pod 2561 2562$(docdir)/cpp.1: $(docdir)/cpp.texi $(docdir)/cppenv.texi \ 2563 $(docdir)/cppopts.texi 2564 $(STAMP) $(docdir)/cpp.1 2565 -$(TEXI2POD) $(docdir)/cpp.texi > cpp.pod 2566 -($(POD2MAN) --section=1 cpp.pod > $(docdir)/cpp.1.T$$$$ && \ 2567 mv -f $(docdir)/cpp.1.T$$$$ $(docdir)/cpp.1) || \ 2568 (rm -f $(docdir)/cpp.1.T$$$$ && exit 1) 2569 -rm -f cpp.pod 2570 2571$(docdir)/gcc.1: $(docdir)/invoke.texi $(docdir)/cppenv.texi \ 2572 $(docdir)/cppopts.texi 2573 $(STAMP) $(docdir)/gcc.1 2574 -$(TEXI2POD) $(docdir)/invoke.texi > gcc.pod 2575 -($(POD2MAN) --section=1 gcc.pod > $(docdir)/gcc.1.T$$$$ && \ 2576 mv -f $(docdir)/gcc.1.T$$$$ $(docdir)/gcc.1) || \ 2577 (rm -f $(docdir)/gcc.1.T$$$$ && exit 1) 2578 -rm -f gcc.pod 2579 2580$(docdir)/gfdl.7: $(docdir)/include/fdl.texi 2581 $(STAMP) $(docdir)/gfdl.7 2582 -$(TEXI2POD) $(docdir)/include/fdl.texi > gfdl.pod 2583 -($(POD2MAN) --section=7 gfdl.pod > $(docdir)/gfdl.7.T$$$$ && \ 2584 mv -f $(docdir)/gfdl.7.T$$$$ $(docdir)/gfdl.7) || \ 2585 (rm -f $(docdir)/gfdl.7.T$$$$ && exit 1) 2586 -rm -f gfdl.pod 2587 2588$(docdir)/gpl.7: $(docdir)/include/gpl.texi 2589 $(STAMP) $(docdir)/gpl.7 2590 -$(TEXI2POD) $(docdir)/include/gpl.texi > gpl.pod 2591 -($(POD2MAN) --section=7 gpl.pod > $(docdir)/gpl.7.T$$$$ && \ 2592 mv -f $(docdir)/gpl.7.T$$$$ $(docdir)/gpl.7) || \ 2593 (rm -f $(docdir)/gpl.7.T$$$$ && exit 1) 2594 -rm -f gpl.pod 2595 2596$(docdir)/fsf-funding.7: $(docdir)/include/funding.texi 2597 $(STAMP) $(docdir)/fsf-funding.7 2598 -$(TEXI2POD) $(docdir)/include/funding.texi > fsf-funding.pod 2599 -($(POD2MAN) --section=7 fsf-funding.pod \ 2600 > $(docdir)/fsf-funding.7.T$$$$ && \ 2601 mv -f $(docdir)/fsf-funding.7.T$$$$ $(docdir)/fsf-funding.7) || \ 2602 (rm -f $(docdir)/fsf-funding.7.T$$$$ && exit 1) 2603 -rm -f fsf-funding.pod 2604 2605# 2606# Deletion of files made during compilation. 2607# There are four levels of this: 2608# `mostlyclean', `clean', `distclean' and `maintainer-clean'. 2609# `mostlyclean' is useful while working on a particular type of machine. 2610# It deletes most, but not all, of the files made by compilation. 2611# It does not delete libgcc.a or its parts, so it won't have to be recompiled. 2612# `clean' deletes everything made by running `make all'. 2613# `distclean' also deletes the files made by config. 2614# `maintainer-clean' also deletes everything that could be regenerated 2615# automatically, except for `configure'. 2616# We remove as much from the language subdirectories as we can 2617# (less duplicated code). 2618 2619INTL_MOSTLYCLEAN = intl.mostlyclean 2620mostlyclean: $(INTL_MOSTLYCLEAN) lang.mostlyclean 2621 -rm -f $(STAGESTUFF) 2622 -rm -f *$(coverageexts) 2623 -rm -rf libgcc 2624# Delete the temporary source copies for cross compilation. 2625 -rm -f $(BUILD_PREFIX_1)rtl.c $(BUILD_PREFIX_1)print-rtl.c 2626 -rm -f $(BUILD_PREFIX_1)bitmap.c $(BUILD_PREFIX_1)errors.c 2627 -rm -f $(BUILD_PREFIX_1)ggc-none.c 2628# Delete the temp files made in the course of building libgcc.a. 2629 -rm -f xlimits.h 2630# Delete other built files. 2631 -rm -f xsys-protos.hT 2632 -rm -f specs.h options.h gencheck.h 2633# Delete the stamp and temporary files. 2634 -rm -f s-* tmp-* stamp-* stmp-* 2635 -rm -f */stamp-* */tmp-* 2636# Delete debugging dump files. 2637 -rm -f *.[0-9][0-9].* */*.[0-9][0-9].* 2638# Delete some files made during installation. 2639 -rm -f specs SYSCALLS.c.X SYSCALLS.c 2640 -rm -f collect collect2 mips-tfile mips-tdump 2641# Delete files generated for fixproto 2642 -rm -rf fix-header$(build_exeext) xsys-protos.h deduced.h tmp-deduced.h \ 2643 gen-protos$(build_exeext) fixproto.list fixtmp.* fixhdr.ready 2644# Delete files generated for fixincl 2645 -rm -rf fixincl fixinc.sh specs.ready 2646 (cd fixinc && $(MAKE) clean) 2647# Delete unwanted output files from TeX. 2648 -rm -f *.toc *.log *.vr *.fn *.cp *.tp *.ky *.pg 2649 -rm -f */*.toc */*.log */*.vr */*.fn */*.cp */*.tp */*.ky */*.pg 2650# Delete sorted indices we don't actually use. 2651 -rm -f gcc.vrs gcc.kys gcc.tps gcc.pgs gcc.fns 2652# Delete core dumps. 2653 -rm -f core */core 2654# Delete file generated for gengtype.c 2655 -rm -f gtyp-gen.h 2656# Delete files generated by gengtype.c 2657 -rm -f gtype-* 2658 -rm -f gt-* 2659 2660# Delete all files made by compilation 2661# that don't exist in the distribution. 2662INTL_CLEAN = intl.clean 2663clean: mostlyclean $(INTL_CLEAN) lang.clean 2664 -rm -f libgcc.a libgcc_eh.a libgcc_s$(SHLIB_EXT) libgcc_s$(SHLIB_EXT).1 2665 -rm -f config.h tconfig.h hconfig.h tm_p.h 2666 -rm -f cs-* 2667 -rm -rf libgcc 2668 -rm -f *.dvi 2669 -rm -f */*.dvi 2670# Delete the include directory. 2671 -rm -rf include 2672# Delete files used by the "multilib" facility (including libgcc subdirs). 2673 -rm -f multilib.h tmpmultilib* 2674 -if [ "x$(MULTILIB_DIRNAMES)" != x ] ; then \ 2675 rm -rf $(MULTILIB_DIRNAMES); \ 2676 else if [ "x$(MULTILIB_OPTIONS)" != x ] ; then \ 2677 rm -rf `echo $(MULTILIB_OPTIONS) | sed -e 's/\// /g'`; \ 2678 fi ; fi 2679 -rm -fr stage1 stage2 stage3 stage4 2680# Delete stamps of bootstrap stages 2681 -rm -f stage?_* 2682 -rm -f clean?_* 2683 -rm -f stage_last 2684 2685# Delete all files that users would normally create 2686# while building and installing GCC. 2687INTL_DISTCLEAN = intl.distclean 2688distclean: clean $(INTL_DISTCLEAN) lang.distclean 2689 -rm -f auto-host.h auto-build.h 2690 -rm -f cstamp-h 2691 -rm -f config.status config.run config.cache config.bak 2692 -rm -f Make-lang Make-hooks Make-host Make-target 2693 -rm -f Makefile *.oaux 2694 -rm -f gthr-default.h 2695 -rm -f */stage1 */stage2 */stage3 */stage4 */include 2696 -rm -f c-parse.output 2697 -rm -f *.asm 2698 -rm -f site.exp site.bak testsuite/site.exp testsuite/site.bak 2699 -rm -f testsuite/*.log testsuite/*.sum 2700 -cd testsuite && rm -f x *.x *.x? *.exe *.rpo *.o *.s *.S *.c 2701 -cd testsuite && rm -f *.out *.gcov *.bb *.bbg 2702 -rm -rf ${QMTEST_DIR} stamp-qmtest 2703 -rm -f intl/libintl.h libintl.h 2704 -rm -f cxxmain.c 2705 -rm -f mklibgcc mkheaders gccbug .gdbinit configargs.h 2706 -rm -f gcov.pod 2707 -rm -f fixinc/Makefile 2708# Delete po/*.gmo only if we are not building in the source directory. 2709 -if [ ! -f po/exgettext ]; then rm -f po/*.gmo; fi 2710 -rmdir ada cp f java objc fixinc intl po testsuite 2>/dev/null 2711 2712# Delete anything likely to be found in the source directory 2713# that shouldn't be in the distribution. 2714extraclean: distclean lang.extraclean 2715 -rm -rf =* ./"#"* *~* config/=* config/"#"* config/*~* 2716 -rm -f patch* *.orig *.rej config/patch* config/*.orig config/*.rej 2717 -rm -f config/*/=* config/*/"#"* config/*/*~* 2718 -rm -f config/*/*.orig config/*/*.rej 2719 -rm -f *.dvi *.ps *.oaux *.d *.[zZ] *.gz 2720 -rm -f *.tar *.xtar *diff *.diff.* *.tar.* *.xtar.* *diffs 2721 -rm -f *lose config/*lose config/*/*lose 2722 -rm -f *.s *.s[0-9] *.i config/ChangeLog 2723 -rm -f y.tab.c yacc.* 2724 -rm -f */=* */"#"* */*~* 2725 -rm -f */patch* */*.orig */*.rej 2726 -rm -f */*.dvi */*.oaux */*.d */*.[zZ] */*.gz 2727 -rm -f */*.tar */*.xtar */*diff */*.diff.* */*.tar.* */*.xtar.* */*diffs 2728 -rm -f */*lose */*.s */*.s[0-9] */*.i 2729 2730# Get rid of every file that's generated from some other file, except for `configure'. 2731# Most of these files ARE PRESENT in the GCC distribution. 2732# We define INTL_DISTCLEAN, INTL_CLEAN & INTL_MOSTLYCLEAN to be empty in the 2733# submake, so that we don't descend into intl after its makefile has been 2734# removed. 2735maintainer-clean: 2736 @echo 'This command is intended for maintainers to use; it' 2737 @echo 'deletes files that may need special tools to rebuild.' 2738 $(MAKE) INTL_DISTCLEAN= INTL_CLEAN= INTL_MOSTLYCLEAN= \ 2739 intl.maintainer-clean lang.maintainer-clean distclean 2740 -rm -f c-parse.y c-parse.c c-parse.output TAGS 2741 -rm -f cpp.??s cpp.*aux 2742 -rm -f gcc.??s gcc.*aux 2743 -rm -f $(docdir)/cpp.info* $(docdir)/gcc.info* $(docdir)/gccint.info* 2744 -rm -f $(docdir)/cppinternals.info* 2745 -rm -f $(docdir)/gcov.1 $(docdir)/cpp.1 $(docdir)/gcc.1 2746 -rm -f $(docdir)/fsf-funding.7 $(docdir)/gfdl.7 $(docdir)/gpl.7 2747# 2748# Entry points `install' and `uninstall'. 2749# Also use `install-collect2' to install collect2 when the config files don't. 2750 2751# Copy the compiler files into directories where they will be run. 2752# Install the driver last so that the window when things are 2753# broken is small. 2754install: install-common $(INSTALL_HEADERS) $(INSTALL_LIBGCC) \ 2755 install-cpp install-man install-info intl.install install-@POSUB@ \ 2756 lang.install-normal install-driver 2757 2758# Handle cpp installation. 2759install-cpp: cpp$(exeext) 2760 -if [ -f gcc-cross$(exeext) ] ; then \ 2761 rm -f $(DESTDIR)$(bindir)/$(CPP_CROSS_NAME)$(exeext); \ 2762 $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(bindir)/$(CPP_CROSS_NAME)$(exeext); \ 2763 if [ x$(cpp_install_dir) != x ]; then \ 2764 rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \ 2765 $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \ 2766 else true; fi; \ 2767 else \ 2768 rm -f $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext); \ 2769 $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext); \ 2770 if [ x$(cpp_install_dir) != x ]; then \ 2771 rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \ 2772 $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \ 2773 else true; fi; \ 2774 fi 2775 2776# Create the installation directories. 2777# $(libdir)/gcc-lib/include isn't currently searched by cpp. 2778installdirs: 2779 $(SHELL) ${srcdir}/mkinstalldirs $(DESTDIR)$(libsubdir) 2780 $(SHELL) ${srcdir}/mkinstalldirs $(DESTDIR)$(bindir) 2781 $(SHELL) ${srcdir}/mkinstalldirs $(DESTDIR)$(includedir) 2782 $(SHELL) ${srcdir}/mkinstalldirs $(DESTDIR)$(infodir) 2783 $(SHELL) ${srcdir}/mkinstalldirs $(DESTDIR)$(slibdir) 2784 $(SHELL) ${srcdir}/mkinstalldirs $(DESTDIR)$(man1dir) 2785 $(SHELL) ${srcdir}/mkinstalldirs $(DESTDIR)$(man7dir) 2786 2787# Install the compiler executables built during cross compilation. 2788install-common: native $(EXTRA_PARTS) lang.install-common 2789 for file in $(COMPILERS); do \ 2790 if [ -f $$file ] ; then \ 2791 rm -f $(DESTDIR)$(libsubdir)/$$file; \ 2792 $(INSTALL_PROGRAM) $$file $(DESTDIR)$(libsubdir)/$$file; \ 2793 else true; \ 2794 fi; \ 2795 done 2796 for file in $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2) ..; do \ 2797 if [ x"$$file" != x.. ]; then \ 2798 rm -f $(DESTDIR)$(libsubdir)/$$file; \ 2799 $(INSTALL_PROGRAM) $$file $(DESTDIR)$(libsubdir)/$$file; \ 2800 else true; fi; \ 2801 done 2802 for file in $(EXTRA_PARTS) ..; do \ 2803 if [ x"$$file" != x.. ]; then \ 2804 rm -f $(DESTDIR)$(libsubdir)/$$file; \ 2805 $(INSTALL_DATA) $$file $(DESTDIR)$(libsubdir)/$$file; \ 2806 chmod a-x $(DESTDIR)$(libsubdir)/$$file; \ 2807 else true; fi; \ 2808 done 2809# Don't mess with specs if it doesn't exist yet. 2810 -if [ -f specs ] ; then \ 2811 rm -f $(DESTDIR)$(libsubdir)/specs; \ 2812 $(INSTALL_DATA) specs $(DESTDIR)$(libsubdir)/specs; \ 2813 chmod a-x $(DESTDIR)$(libsubdir)/specs; \ 2814 fi 2815# Install protoize if it was compiled. 2816 -if [ -f protoize$(exeext) ]; \ 2817 then \ 2818 if [ -f gcc-cross$(exeext) ] ; then \ 2819 rm -f $(DESTDIR)$(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext); \ 2820 $(INSTALL_PROGRAM) protoize$(exeext) $(DESTDIR)$(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext); \ 2821 rm -f $(DESTDIR)$(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext); \ 2822 $(INSTALL_PROGRAM) unprotoize$(exeext) $(DESTDIR)$(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext); \ 2823 else \ 2824 rm -f $(DESTDIR)$(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext); \ 2825 $(INSTALL_PROGRAM) protoize$(exeext) $(DESTDIR)$(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext); \ 2826 rm -f $(DESTDIR)$(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \ 2827 $(INSTALL_PROGRAM) unprotoize$(exeext) $(DESTDIR)$(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \ 2828 fi ; \ 2829 rm -f $(DESTDIR)$(libsubdir)/SYSCALLS.c.X; \ 2830 $(INSTALL_DATA) SYSCALLS.c.X $(DESTDIR)$(libsubdir)/SYSCALLS.c.X; \ 2831 chmod a-x $(DESTDIR)$(libsubdir)/SYSCALLS.c.X; \ 2832 fi 2833# Install gcov if it was compiled. 2834 -if [ -f gcov$(exeext) ]; \ 2835 then \ 2836 rm -f $(DESTDIR)$(bindir)/gcov$(exeext); \ 2837 $(INSTALL_PROGRAM) gcov$(exeext) $(DESTDIR)$(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \ 2838 fi 2839 $(INSTALL_SCRIPT) gccbug $(DESTDIR)$(bindir)/$(GCCBUG_INSTALL_NAME) 2840 2841# Install the driver program as $(target_alias)-gcc, 2842# $(target-alias)-gcc-$(version) 2843# and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc. 2844install-driver: installdirs xgcc$(exeext) 2845 -if [ -f gcc-cross$(exeext) ] ; then \ 2846 rm -f $(DESTDIR)$(bindir)/$(GCC_CROSS_NAME)$(exeext); \ 2847 $(INSTALL_PROGRAM) gcc-cross$(exeext) $(DESTDIR)$(bindir)/$(GCC_CROSS_NAME)$(exeext); \ 2848 rm -f $(DESTDIR)$(bindir)/$(target_alias)-gcc-$(version); \ 2849 ( cd $(DESTDIR)$(bindir) && \ 2850 $(LN) $(GCC_CROSS_NAME)$(exeext) $(target_alias)-gcc-$(version) ); \ 2851 if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \ 2852 rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \ 2853 $(INSTALL_PROGRAM) gcc-cross$(exeext) $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \ 2854 else true; fi; \ 2855 else \ 2856 rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext); \ 2857 $(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext); \ 2858 rm -f $(DESTDIR)$(bindir)/$(target_alias)-gcc-$(version); \ 2859 ( cd $(DESTDIR)$(bindir) && \ 2860 $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_alias)-gcc-$(version) ); \ 2861 rm -f $(DESTDIR)$(bindir)/$(target_alias)-gcc-tmp$(exeext); \ 2862 ( cd $(DESTDIR)$(bindir) && \ 2863 $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_alias)-gcc-tmp$(exeext) && \ 2864 mv -f $(target_alias)-gcc-tmp$(exeext) $(GCC_TARGET_INSTALL_NAME)$(exeext) ); \ 2865 fi 2866 2867# Install the info files. 2868# $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir 2869# to do the install. 2870install-info: doc installdirs lang.install-info 2871 -rm -f $(DESTDIR)$(infodir)/cpp.info* $(DESTDIR)$(infodir)/gcc.info* 2872 -rm -f $(DESTDIR)$(infodir)/cppinternals.info* $(DESTDIR)$(infodir)/gccint.info* 2873 if [ -f $(docdir)/gcc.info ]; then \ 2874 for f in $(docdir)/cpp.info* $(docdir)/gcc.info* \ 2875 $(docdir)/cppinternals.info* $(docdir)/gccint.info*; do \ 2876 realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \ 2877 $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/$$realfile; \ 2878 done; \ 2879 else true; fi 2880 -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \ 2881 if [ -f $(DESTDIR)$(infodir)/dir ] ; then \ 2882 for f in cpp.info gcc.info gccint.info cppinternals.info; do \ 2883 if [ -f $(DESTDIR)$(infodir)/$$f ]; then \ 2884 install-info --dir-file=$(DESTDIR)$(infodir)/dir $(DESTDIR)$(infodir)/$$f; \ 2885 else true; fi; \ 2886 done; \ 2887 else true; fi; \ 2888 else true; fi; 2889 -chmod a-x $(DESTDIR)$(infodir)/cpp.info* $(DESTDIR)$(infodir)/gcc.info* 2890 -chmod a-x $(DESTDIR)$(infodir)/cppinternals.info* $(DESTDIR)$(infodir)/gccint.info* 2891 2892# Install the man pages. 2893install-man: installdirs $(GENERATED_MANPAGES) lang.install-man 2894 -if [ -f gcc-cross$(exeext) ] ; then \ 2895 rm -f $(DESTDIR)$(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \ 2896 $(INSTALL_DATA) $(docdir)/gcc.1 $(DESTDIR)$(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \ 2897 chmod a-x $(DESTDIR)$(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \ 2898 else \ 2899 rm -f $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \ 2900 $(INSTALL_DATA) $(docdir)/gcc.1 $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \ 2901 chmod a-x $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \ 2902 fi 2903 -rm -f $(DESTDIR)$(man1dir)/cpp$(man1ext) 2904 -$(INSTALL_DATA) $(docdir)/cpp.1 $(DESTDIR)$(man1dir)/cpp$(man1ext) 2905 -chmod a-x $(DESTDIR)$(man1dir)/cpp$(man1ext) 2906 -rm -f $(DESTDIR)$(man1dir)/gcov$(man1ext) 2907 -$(INSTALL_DATA) $(docdir)/gcov.1 $(DESTDIR)$(man1dir)/gcov$(man1ext) 2908 -chmod a-x $(DESTDIR)$(man1dir)/gcov$(man1ext) 2909 -rm -f $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) 2910 -$(INSTALL_DATA) $(docdir)/fsf-funding.7 $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) 2911 -chmod a-x $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) 2912 -rm -f $(DESTDIR)$(man7dir)/gfdl$(man7ext) 2913 -$(INSTALL_DATA) $(docdir)/gfdl.7 $(DESTDIR)$(man7dir)/gfdl$(man7ext) 2914 -chmod a-x $(DESTDIR)$(man7dir)/gfdl$(man7ext) 2915 -rm -f $(DESTDIR)$(man7dir)/gpl$(man7ext) 2916 -$(INSTALL_DATA) $(docdir)/gpl.7 $(DESTDIR)$(man7dir)/gpl$(man7ext) 2917 -chmod a-x $(DESTDIR)$(man7dir)/gpl$(man7ext) 2918 2919# Install the library. 2920install-libgcc: libgcc.mk libgcc.a installdirs 2921 if $(RANLIB_TEST_FOR_TARGET); then \ 2922 r_f_t=$(RANLIB_FOR_TARGET); \ 2923 else \ 2924 r_f_t=: ; \ 2925 fi; \ 2926 $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \ 2927 BUILD_PREFIX="$(BUILD_PREFIX)" BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \ 2928 AR_FOR_TARGET="$(AR_FOR_TARGET)" \ 2929 AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \ 2930 AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \ 2931 CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \ 2932 RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \ 2933 NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \ 2934 LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \ 2935 INCLUDES="$(INCLUDES)" \ 2936 CONFIG_H="$(TCONFIG_H)" MACHMODE_H="$(MACHMODE_H)" \ 2937 LIB1ASMSRC='$(LIB1ASMSRC)' \ 2938 MAKEOVERRIDES= \ 2939 INSTALL_DATA="$(INSTALL_DATA)" \ 2940 RANLIB_FOR_TARGET="$$r_f_t" \ 2941 DESTDIR="$(DESTDIR)" \ 2942 libsubdir="$(libsubdir)" \ 2943 slibdir="$(slibdir)" \ 2944 -f libgcc.mk install 2945 2946# Install multiple versions of libgcc.a. 2947install-multilib: stmp-multilib installdirs 2948 if $(RANLIB_TEST_FOR_TARGET); then \ 2949 r_f_t=$(RANLIB_FOR_TARGET); \ 2950 else \ 2951 r_f_t=: ; \ 2952 fi; \ 2953 $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \ 2954 BUILD_PREFIX="$(BUILD_PREFIX)" BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \ 2955 AR_FOR_TARGET="$(AR_FOR_TARGET)" \ 2956 AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \ 2957 AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \ 2958 CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \ 2959 RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \ 2960 NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \ 2961 LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \ 2962 INCLUDES="$(INCLUDES)" \ 2963 CONFIG_H="$(CONFIG_H)" MACHMODE_H="$(MACHMODE_H)" \ 2964 LIB1ASMSRC='$(LIB1ASMSRC)' \ 2965 MAKEOVERRIDES= \ 2966 INSTALL_DATA="$(INSTALL_DATA)" \ 2967 RANLIB_FOR_TARGET="$$r_f_t" \ 2968 DESTDIR="$(DESTDIR)" \ 2969 libsubdir="$(libsubdir)" \ 2970 slibdir="$(slibdir)" \ 2971 -f libgcc.mk install 2972 2973# Install all the header files built in the include subdirectory. 2974install-headers: $(INSTALL_HEADERS_DIR) 2975# Fix symlinks to absolute paths in the installed include directory to 2976# point to the installed directory, not the build directory. 2977# Don't need to use LN_S here since we really do need ln -s and no substitutes. 2978 -files=`cd $(DESTDIR)$(libsubdir)/include; find . -type l -print 2>/dev/null`; \ 2979 if [ $$? -eq 0 ]; then \ 2980 dir=`cd include; ${PWD_COMMAND}`; \ 2981 for i in $$files; do \ 2982 dest=`ls -ld $(DESTDIR)$(libsubdir)/include/$$i | sed -n 's/.*-> //p'`; \ 2983 if expr "$$dest" : "$$dir.*" > /dev/null; then \ 2984 rm -f $(DESTDIR)$(libsubdir)/include/$$i; \ 2985 ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(DESTDIR)$(libsubdir)/include/$$i; \ 2986 fi; \ 2987 done; \ 2988 fi 2989 2990# Create or recreate the gcc private include file directory. 2991install-include-dir: installdirs 2992 -rm -rf $(DESTDIR)$(libsubdir)/include 2993 mkdir $(DESTDIR)$(libsubdir)/include 2994 -chmod a+rx $(DESTDIR)$(libsubdir)/include 2995 2996# Install the include directory using tar. 2997install-headers-tar: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir 2998# We use `pwd`/include instead of just include to problems with CDPATH 2999# Unless a full pathname is provided, some shells would print the new CWD, 3000# found in CDPATH, corrupting the output. We could just redirect the 3001# output of `cd', but some shells lose on redirection within `()'s 3002 (cd `${PWD_COMMAND}`/include ; \ 3003 tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include; tar xpf - ) 3004# /bin/sh on some systems returns the status of the first tar, 3005# and that can lose with GNU tar which always writes a full block. 3006# So use `exit 0' to ignore its exit status. 3007 3008# Install the include directory using cpio. 3009install-headers-cpio: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir 3010# See discussion about the use of `pwd` above 3011 cd `${PWD_COMMAND}`/include ; \ 3012 find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include 3013 3014# Install the include directory using cp. 3015install-headers-cp: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir 3016 cp -p -r include $(DESTDIR)$(libsubdir) 3017 3018itoolsdir = $(libsubdir)/install-tools 3019# Don't install the headers. Instead, install appropriate scripts 3020# and supporting files for fixincludes to be run later. 3021install-mkheaders: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir \ 3022 mkheaders xlimits.h 3023 -rm -rf $(DESTDIR)$(itoolsdir) 3024 $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(itoolsdir)/include 3025 for file in $(USER_H); do \ 3026 realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \ 3027 $(INSTALL_DATA) $$file \ 3028 $(DESTDIR)$(itoolsdir)/include/$$realfile ; \ 3029 done 3030 $(INSTALL_DATA) xlimits.h $(DESTDIR)$(itoolsdir)/include/limits.h 3031 if [ x$(STMP_FIXINC) != x ] ; then \ 3032 $(INSTALL_DATA) $(srcdir)/README-fixinc \ 3033 $(DESTDIR)$(itoolsdir)/include/README ; \ 3034 $(INSTALL_PROGRAM) fixinc.sh $(DESTDIR)$(itoolsdir)/fixinc.sh ; \ 3035 $(INSTALL_PROGRAM) fixinc/fixincl $(DESTDIR)$(itoolsdir)/fixincl ; \ 3036 $(INSTALL_DATA) $(srcdir)/gsyslimits.h $(DESTDIR)$(itoolsdir)/gsyslimits.h ; \ 3037 else :; fi 3038 if [ x$(STMP_FIXPROTO) != x ] ; then \ 3039 $(INSTALL_PROGRAM) $(srcdir)/mkinstalldirs \ 3040 $(DESTDIR)$(itoolsdir)/mkinstalldirs ; \ 3041 $(INSTALL_PROGRAM) $(srcdir)/fixproto $(DESTDIR)$(itoolsdir)/fixproto ; \ 3042 $(INSTALL_PROGRAM) fix-header$(build_exeext) \ 3043 $(DESTDIR)$(itoolsdir)/fix-header$(build_exeext) ; \ 3044 else :; fi 3045 $(INSTALL_PROGRAM) mkheaders $(DESTDIR)$(itoolsdir)/mkheaders 3046 echo 'SYSTEM_HEADER_DIR="$(SYSTEM_HEADER_DIR)"' \ 3047 > $(DESTDIR)$(itoolsdir)/mkheaders.conf 3048 echo 'OTHER_FIXINCLUDES_DIRS="$(OTHER_FIXINCLUDES_DIRS)"' \ 3049 >> $(DESTDIR)$(itoolsdir)/mkheaders.conf 3050 echo 'FIXPROTO_DEFINES="$(FIXPROTO_DEFINES)"' \ 3051 >> $(DESTDIR)$(itoolsdir)/mkheaders.conf 3052 echo 'STMP_FIXPROTO="$(STMP_FIXPROTO)"' >> $(DESTDIR)$(itoolsdir)/mkheaders.conf 3053 echo 'STMP_FIXINC="$(STMP_FIXINC)"' >> $(DESTDIR)$(itoolsdir)/mkheaders.conf 3054 3055# Use this target to install the program `collect2' under the name `collect2'. 3056install-collect2: collect2 installdirs 3057 $(INSTALL_PROGRAM) collect2$(exeext) $(DESTDIR)$(libsubdir)/collect2$(exeext) 3058# Install the driver program as $(libsubdir)/gcc for collect2. 3059 $(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(libsubdir)/gcc$(exeext) 3060 3061# Cancel installation by deleting the installed files. 3062uninstall: intl.uninstall lang.uninstall 3063 -rm -rf $(DESTDIR)$(libsubdir) 3064 -rm -rf $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext) 3065 -rm -rf $(DESTDIR)$(bindir)/$(GCC_CROSS_NAME)$(exeext) 3066 -rm -f $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext) 3067 -rm -f $(DESTDIR)$(bindir)/$(CPP_CROSS_NAME)$(exeext) 3068 -if [ x$(cpp_install_dir) != x ]; then \ 3069 rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \ 3070 rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \ 3071 else true; fi 3072 -rm -rf $(DESTDIR)$(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext) 3073 -rm -rf $(DESTDIR)$(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext) 3074 -rm -rf $(DESTDIR)$(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext) 3075 -rm -rf $(DESTDIR)$(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext) 3076 -rm -rf $(DESTDIR)$(bindir)/$(GCOV_INSTALL_NAME)$(exeext) 3077 -rm -rf $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) 3078 -rm -rf $(DESTDIR)$(man1dir)/$(GCC_CROSS_NAME)$(man1ext) 3079 -rm -rf $(DESTDIR)$(man1dir)/cpp$(man1ext) 3080 -rm -rf $(DESTDIR)$(man1dir)/protoize$(man1ext) 3081 -rm -rf $(DESTDIR)$(man1dir)/unprotoize$(man1ext) 3082 -rm -f $(DESTDIR)$(infodir)/cpp.info* $(DESTDIR)$(infodir)/gcc.info* 3083 -rm -f $(DESTDIR)$(infodir)/cppinternals.info* $(DESTDIR)$(infodir)/gccint.info* 3084# 3085# These targets are for the dejagnu testsuites. The file site.exp 3086# contains global variables that all the testsuites will use. 3087 3088# Set to $(target_alias)/ for cross. 3089target_subdir = @target_subdir@ 3090 3091site.exp: ./config.status Makefile 3092 @echo "Making a new config file..." 3093 -@rm -f ./tmp? 3094 @$(STAMP) site.exp 3095 -@mv site.exp site.bak 3096 @echo "## these variables are automatically generated by make ##" > ./tmp0 3097 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0 3098 @echo "# add them to the last section" >> ./tmp0 3099 @echo "set rootme \"`${PWD_COMMAND}`\"" >> ./tmp0 3100 @echo "set srcdir \"`cd ${srcdir}; ${PWD_COMMAND}`\"" >> ./tmp0 3101 @echo "set host_triplet $(host_canonical)" >> ./tmp0 3102 @echo "set build_triplet $(build_canonical)" >> ./tmp0 3103 @echo "set target_triplet $(target)" >> ./tmp0 3104 @echo "set target_alias $(target_alias)" >> ./tmp0 3105# CFLAGS is set even though it's empty to show we reserve the right to set it. 3106 @echo "set CFLAGS \"\"" >> ./tmp0 3107 @echo "set CXXFLAGS \"-I$(objdir)/../$(target_subdir)libio -I\$$srcdir/../libg++/src -I\$$srcdir/../libio -I\$$srcdir/../libstdc++ -I\$$srcdir/../libstdc++/stl -L$(objdir)/../$(target_subdir)libg++ -L$(objdir)/../$(target_subdir)libstdc++\"" >> ./tmp0 3108 @echo "set TESTING_IN_BUILD_TREE 1" >> ./tmp0 3109 @echo "set HAVE_LIBSTDCXX_V3 1" >> ./tmp0 3110# If newlib has been configured, we need to pass -B to gcc so it can find 3111# newlib's crt0.o if it exists. This will cause a "path prefix not used" 3112# message if it doesn't, but the testsuite is supposed to ignore the message - 3113# it's too difficult to tell when to and when not to pass -B (not all targets 3114# have crt0's). We could only add the -B if ../newlib/crt0.o exists, but that 3115# seems like too selective a test. 3116# ??? Another way to solve this might be to rely on linker scripts. Then 3117# theoretically the -B won't be needed. 3118# We also need to pass -L ../ld so that the linker can find ldscripts. 3119 @if [ -d $(objdir)/../$(target_subdir)newlib ] ; then \ 3120 echo "set newlib_cflags \"-I$(objdir)/../$(target_subdir)newlib/targ-include -I\$$srcdir/../newlib/libc/include\"" >> ./tmp0; \ 3121 echo "set newlib_ldflags \"-B$(objdir)/../$(target_subdir)newlib/\"" >> ./tmp0; \ 3122 echo "append CFLAGS \" \$$newlib_cflags\"" >> ./tmp0; \ 3123 echo "append CXXFLAGS \" \$$newlib_cflags\"" >> ./tmp0; \ 3124 echo "append LDFLAGS \" \$$newlib_ldflags\"" >> ./tmp0; \ 3125 else true; \ 3126 fi 3127 @if [ -d $(objdir)/../ld ] ; then \ 3128 echo "append LDFLAGS \" -L$(objdir)/../ld\"" >> ./tmp0; \ 3129 else true; \ 3130 fi 3131 echo "set tmpdir $(objdir)/testsuite" >> ./tmp0 3132 @echo "set srcdir \"\$${srcdir}/testsuite\"" >> ./tmp0 3133 @if [ "X$(ALT_CXX_UNDER_TEST)" != "X" ] ; then \ 3134 echo "set ALT_CXX_UNDER_TEST $(ALT_CXX_UNDER_TEST)" >> ./tmp0; \ 3135 else true; \ 3136 fi 3137 @if [ "X$(COMPAT_OPTIONS)" != "X" ] ; then \ 3138 echo "set COMPAT_OPTIONS $(COMPAT_OPTIONS)" >> ./tmp0; \ 3139 else true; \ 3140 fi 3141 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0 3142 @cat ./tmp0 > site.exp 3143 @cat site.bak | sed \ 3144 -e '1,/^## All variables above are.*##/ d' >> site.exp 3145 -@rm -f ./tmp? 3146 3147CHECK_TARGETS = check-gcc @check_languages@ 3148 3149check-c++ : check-g++ 3150check-f77 : check-g77 3151check-java : 3152 3153check: $(CHECK_TARGETS) 3154 3155# The idea is to parallelize testing of multilibs, for example: 3156# make -j3 check-gcc//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu} 3157# will run 3 concurrent sessions of check-gcc, eventually testing 3158# all 10 combinations. GNU make is required, as is a shell that expands 3159# alternations within braces. 3160check-gcc//% check-g++//% check-g77//% check-objc//%: site.exp 3161 target=`echo "$@" | sed 's,//.*,,'`; \ 3162 variant=`echo "$@" | sed 's,^[^/]*//,,'`; \ 3163 vardots=`echo "$$variant" | sed 's,/,.,g'`; \ 3164 $(MAKE) TESTSUITEDIR="testsuite.$$vardots" \ 3165 RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \ 3166 "$$target" 3167 3168TESTSUITEDIR = testsuite 3169 3170$(TESTSUITEDIR)/site.exp: site.exp 3171 test -d $(TESTSUITEDIR) || mkdir $(TESTSUITEDIR) 3172 -rm -f $@ 3173 sed '/set tmpdir/ s|testsuite|$(TESTSUITEDIR)|' < site.exp > $@ 3174 3175check-g++: $(TESTSUITEDIR)/site.exp 3176 -(rootme=`${PWD_COMMAND}`; export rootme; \ 3177 srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \ 3178 cd $(TESTSUITEDIR); \ 3179 EXPECT=${EXPECT} ; export EXPECT ; \ 3180 if [ -f $${rootme}/../expect/expect ] ; then \ 3181 TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \ 3182 export TCL_LIBRARY ; fi ; \ 3183 $(RUNTEST) --tool g++ $(RUNTESTFLAGS)) 3184 3185check-gcc: $(TESTSUITEDIR)/site.exp 3186 -(rootme=`${PWD_COMMAND}`; export rootme; \ 3187 srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \ 3188 cd $(TESTSUITEDIR); \ 3189 EXPECT=${EXPECT} ; export EXPECT ; \ 3190 if [ -f $${rootme}/../expect/expect ] ; then \ 3191 TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \ 3192 export TCL_LIBRARY ; fi ; \ 3193 $(RUNTEST) --tool gcc $(RUNTESTFLAGS)) 3194 3195check-g77: $(TESTSUITEDIR)/site.exp 3196 -(rootme=`${PWD_COMMAND}`; export rootme; \ 3197 srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \ 3198 cd $(TESTSUITEDIR); \ 3199 EXPECT=${EXPECT} ; export EXPECT ; \ 3200 if [ -f $${rootme}/../expect/expect ] ; then \ 3201 TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \ 3202 export TCL_LIBRARY ; fi ; \ 3203 $(RUNTEST) --tool g77 $(RUNTESTFLAGS)) 3204 3205check-objc: $(TESTSUITEDIR)/site.exp 3206 -(rootme=`${PWD_COMMAND}`; export rootme; \ 3207 srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \ 3208 cd $(TESTSUITEDIR); \ 3209 EXPECT=${EXPECT} ; export EXPECT ; \ 3210 if [ -f $${rootme}/../expect/expect ] ; then \ 3211 TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \ 3212 export TCL_LIBRARY ; fi ; \ 3213 $(RUNTEST) --tool objc $(RUNTESTFLAGS)) 3214 3215check-consistency: testsuite/site.exp 3216 -rootme=`${PWD_COMMAND}`; export rootme; \ 3217 srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \ 3218 cd testsuite; \ 3219 EXPECT=${EXPECT} ; export EXPECT ; \ 3220 if [ -f $${rootme}/../expect/expect ] ; then \ 3221 TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \ 3222 export TCL_LIBRARY ; fi ; \ 3223 $(RUNTEST) --tool consistency $(RUNTESTFLAGS) 3224 3225# QMTest targets 3226 3227# The path to qmtest. 3228QMTEST_PATH=qmtest 3229 3230# The flags to pass to qmtest. 3231QMTESTFLAGS= 3232 3233# The flags to pass to "qmtest run". 3234QMTESTRUNFLAGS= 3235 3236# The command to use to invoke qmtest. 3237QMTEST=${QMTEST_PATH} ${QMTESTFLAGS} 3238 3239# The tests (or suites) to run. 3240QMTEST_GPP_TESTS=gpp 3241 3242# The subdirectory of the OBJDIR that will be used to store the QMTest 3243# test database configuration and that will be used for temporary 3244# scratch space during QMTest's execution. 3245QMTEST_DIR=qmtestsuite 3246 3247# Create the QMTest database configuration. 3248${QMTEST_DIR} stamp-qmtest: 3249 debug_options=""; \ 3250 ${STAMP} empty.C; \ 3251 for option in \ 3252 -gdwarf-2 -gstabs -gstabs+ -gxcoff -gxcoff+ -gcoff; do \ 3253 (./cc1plus -q $${option} empty.C 2>&1 | \ 3254 grep "unknown or unsupported -g option" > /dev/null) || \ 3255 debug_options="$${debug_options}$${option} "; done; \ 3256 ${QMTEST} -D ${QMTEST_DIR} create-tdb \ 3257 -c gcc_database.GCCDatabase \ 3258 -a GCCDatabase.testsuite_root=`cd ${srcdir}/testsuite && pwd` \ 3259 -a GCCDatabase.debug_options="$${debug_options}" 3260 rm -f empty.C empty.s 3261 $(STAMP) stamp-qmtest 3262 3263# Create the QMTest context file. 3264${QMTEST_DIR}/context: stamp-qmtest 3265 echo "GCCTest.flags=-B${objdir}" >> $@ 3266 echo "GCCTest.objdir=${objdir}/.." >> $@ 3267 echo "GCCTest.host=${host_canonical}" >> $@ 3268 echo "GCCTest.target=${target}" >> $@ 3269 echo "GCCTest.gcov=${objdir}/gcov" >> $@ 3270 echo "GPPTest.gpp=${objdir}/g++" >> $@ 3271 echo "DGTest.demangler=${objdir}/c++filt" >> $@ 3272 3273# Run the G++ testsuite using QMTest. 3274qmtest-g++: ${QMTEST_DIR}/context ${QMTEST_DIR}/gpp-expected.qmr 3275 cd ${QMTEST_DIR} && ${QMTEST} run ${QMTESTRUNFLAGS} -C context \ 3276 -o gpp.qmr -O gpp-expected.qmr \ 3277 ${QMTEST_GPP_TESTS} 3278 3279# Use the QMTest GUI. 3280qmtest-gui: ${QMTEST_DIR}/context 3281 cd ${QMTEST_DIR} && ${QMTEST} gui -C context 3282 3283# Build the set of expected G++ failures. 3284${QMTEST_DIR}/gpp-expected.qmr: ${QMTEST_DIR}/context 3285 echo "Determining expected results..." 3286 cd ${QMTEST_DIR} && ${QMTEST} run ${QMTESTRUNFLAGS} -C context \ 3287 -c "GCCTest.generate_xfails=1" -o gpp-expected.qmr \ 3288 ${QMTEST_GPP_TESTS} \ 3289 > /dev/null 3290 3291.PHONY: qmtest-g++ 3292 3293# Run Paranoia on real.c. 3294 3295paranoia.o: $(srcdir)/../contrib/paranoia.cc $(CONFIG_H) $(SYSTEM_H) \ 3296 real.h $(TREE_H) 3297 g++ -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) 3298 3299paranoia: paranoia.o real.o $(LIBIBERTY) 3300 g++ -o $@ paranoia.o real.o $(LIBIBERTY) 3301 3302# These exist for maintenance purposes. 3303 3304# Update the tags table. 3305TAGS: force 3306 (cd $(srcdir); \ 3307 mkdir tmp-tags; \ 3308 mv -f c-parse.[ch] =*.[chy] tmp-tags; \ 3309 etags *.y *.h *.c; \ 3310 mv tmp-tags/* .; \ 3311 rmdir tmp-tags) 3312 3313# A list of files to be destroyed during "lean" builds. 3314VOL_FILES=`echo $(BACKEND) $(OBJS) $(C_OBJS) $(LIBCPP_OBJS) *.c *.h gen*` 3315 3316# Flags to pass to stage2 and later recursive makes. Note that the 3317# WARN_CFLAGS setting can't be to the expansion of GCC_WARN_CFLAGS in 3318# the context of the stage_x rule. 3319STAGE2_FLAGS_TO_PASS = \ 3320 ADAC="\$$(CC)" \ 3321 AR_FOR_TARGET="$(AR_FOR_TARGET)" \ 3322 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \ 3323 CFLAGS="$(BOOT_CFLAGS)" \ 3324 LDFLAGS="$(BOOT_LDFLAGS)" \ 3325 WARN_CFLAGS="\$$(GCC_WARN_CFLAGS)" \ 3326 STRICT_WARN="$(STRICT2_WARN)" \ 3327 libdir=$(libdir) \ 3328 LANGUAGES="$(LANGUAGES)" \ 3329 MAKEOVERRIDES= \ 3330 OUTPUT_OPTION="-o \$$@" 3331 3332# Only build the C compiler for stage1, because that is the only one that 3333# we can guarantee will build with the native compiler, and also it is the 3334# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS), 3335# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them 3336# overrideable (for a bootstrap build stage1 also builds gcc.info). 3337stage1_build: 3338 $(MAKE) AR_FOR_TARGET="$(AR_FOR_TARGET)" \ 3339 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \ 3340 CC="$(CC)" libdir=$(libdir) LANGUAGES="$(BOOT_LANGUAGES)" \ 3341 CFLAGS="$(STAGE1_CFLAGS)" MAKEINFO="$(MAKEINFO)" \ 3342 MAKEINFOFLAGS="$(MAKEINFOFLAGS)" COVERAGE_FLAGS= 3343 $(STAMP) stage1_build 3344 echo stage1_build > stage_last 3345 3346stage1_copy: stage1_build 3347 $(MAKE) stage1 3348 $(STAMP) stage1_copy 3349 echo stage2_build > stage_last 3350 3351stage2_build: stage1_copy 3352 $(MAKE) CC="$(STAGE_CC_WRAPPER) stage1/xgcc$(exeext) -Bstage1/ -B$(build_tooldir)/bin/" \ 3353 STAGE_PREFIX=stage1/ \ 3354 $(STAGE2_FLAGS_TO_PASS) 3355 $(STAMP) stage2_build 3356 echo stage2_build > stage_last 3357 3358stage2_copy: stage2_build 3359 $(MAKE) stage2 3360 $(STAMP) stage2_copy 3361 echo stage3_build > stage_last 3362 3363stage3_build: stage2_copy 3364 $(MAKE) CC="$(STAGE_CC_WRAPPER) stage2/xgcc$(exeext) -Bstage2/ -B$(build_tooldir)/bin/" \ 3365 STAGE_PREFIX=stage2/ \ 3366 $(STAGE2_FLAGS_TO_PASS) 3367 $(STAMP) stage3_build 3368 echo stage3_build > stage_last 3369 3370# For bootstrap4: 3371stage3_copy: stage3_build 3372 $(MAKE) stage3 3373 $(STAMP) stage3_copy 3374 echo stage4_build > stage_last 3375 3376stage4_build: stage3_copy 3377 $(MAKE) CC="$(STAGE_CC_WRAPPER) stage3/xgcc$(exeext) -Bstage3/ -B$(build_tooldir)/bin/" \ 3378 STAGE_PREFIX=stage3/ \ 3379 $(STAGE2_FLAGS_TO_PASS) 3380 $(STAMP) stage4_build 3381 echo stage4_build > stage_last 3382 3383# Additional steps for *-lean targets: 3384clean_s1: stage1_copy 3385 -(cd stage1 && rm -f $(VOL_FILES)) 3386 $(STAMP) clean_s1 3387 3388clean_s2: stage2_copy 3389 -rm -rf stage1 3390 $(STAMP) clean_s2 3391 3392# The various entry points for bootstrapping. 3393 3394bootstrap: stage3_build 3395 @echo 3396 @echo Bootstrap complete - make \"quickstrap\" to redo last build, 3397 @echo \"restage1\" through \"restage3\" to rebuild specific stages, 3398 @echo \"restrap\" to redo the bootstrap from stage1, or 3399 @echo \"cleanstrap\" to redo the bootstrap from scratch. 3400 3401bootstrap-lean : clean_s1 clean_s2 stage3_build 3402 @echo 3403 @echo Bootstrap complete - make \"quickstrap\" to redo last build, 3404 @echo or \"cleanstrap\" to redo the bootstrap from scratch. 3405 3406bootstrap2: bootstrap 3407 3408bootstrap2-lean : bootstrap-lean 3409 3410bootstrap3 bootstrap3-lean: bootstrap 3411 3412bootstrap4 bootstrap4-lean: stage4_build 3413 3414unstage1 unstage2 unstage3 unstage4: 3415 -set -vx; stage=`echo $@ | sed -e 's/un//'`; \ 3416 rm -f $$stage/as$(exeext); \ 3417 rm -f $$stage/ld$(exeext); \ 3418 rm -f $$stage/collect-ld$(exeext); \ 3419 if test -d $$stage; then \ 3420 mv $$stage/* . 2>/dev/null; \ 3421 for i in `cd $$stage; echo *` ; do \ 3422 if test -d $$stage/$$i; then \ 3423 mv $$stage/$$i/* $$i/. 2>/dev/null; \ 3424 else \ 3425 mv $$stage/$$i .; \ 3426 fi; \ 3427 done \ 3428 fi ; \ 3429 rm -f $${stage}_build $${stage}_copy ;\ 3430 echo $${stage}_build > stage_last 3431 3432restage1: unstage1 3433 $(MAKE) stage1_build 3434 3435restage2: unstage2 3436 $(MAKE) LANGUAGES="$(LANGUAGES)" stage2_build 3437 3438restage3: unstage3 3439 $(MAKE) LANGUAGES="$(LANGUAGES)" stage3_build 3440 3441restage4: unstage4 3442 $(MAKE) LANGUAGES="$(LANGUAGES)" stage4_build 3443 3444bubblestrap: 3445 if test -f stage3_build; then true; else \ 3446 echo; echo You must \"make bootstrap\" first.; \ 3447 exit 1; \ 3448 fi 3449 for i in stage3 \ 3450 unstage1 stage1_build stage1_copy \ 3451 unstage2 stage2_build stage2_copy \ 3452 unstage3 stage3_build ; \ 3453 do \ 3454 $(MAKE) LANGUAGES="$(LANGUAGES)" $$i || exit 1 ; \ 3455 done 3456 3457quickstrap: 3458 if test -f stage_last ; then \ 3459 LAST=`cat stage_last`; rm $$LAST; $(MAKE) LANGUAGES="$(LANGUAGES)" $$LAST; \ 3460 else \ 3461 $(MAKE) stage1_build; \ 3462 fi 3463 3464cleanstrap: 3465 -$(MAKE) clean 3466 $(MAKE) LANGUAGES="$(LANGUAGES)" bootstrap 3467 3468unstrap: 3469 -rm -rf stage[234]* 3470 $(MAKE) unstage1 3471 3472# Differs from cleanstrap in that it starts from the earlier stage1 build, 3473# not from scratch. 3474restrap: 3475 $(MAKE) unstrap 3476 $(MAKE) LANGUAGES="$(LANGUAGES)" bootstrap 3477 3478# Compare the object files in the current directory with those in the 3479# stage2 directory. 3480 3481# ./ avoids bug in some versions of tail. 3482compare compare3 compare4 compare-lean compare3-lean compare4-lean: force 3483 -rm -f .bad_compare 3484 case "$@" in compare | compare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \ 3485 for file in *$(objext); do \ 3486 tail +16c ./$$file > tmp-foo1; \ 3487 tail +16c stage$$stage/$$file > tmp-foo2 \ 3488 && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \ 3489 done 3490 case "$@" in compare | compare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \ 3491 for dir in tmp-foo intl $(SUBDIRS); do \ 3492 if [ "`echo $$dir/*$(objext)`" != "$$dir/*$(objext)" ] ; then \ 3493 for file in $$dir/*$(objext); do \ 3494 tail +16c ./$$file > tmp-foo1; \ 3495 tail +16c stage$$stage/$$file > tmp-foo2 \ 3496 && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \ 3497 done; \ 3498 else true; fi; \ 3499 done 3500 -rm -f tmp-foo* 3501 case "$@" in compare | compare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \ 3502 if [ -f .bad_compare ]; then \ 3503 echo "Bootstrap comparison failure!"; \ 3504 cat .bad_compare; \ 3505 exit 1; \ 3506 else \ 3507 case "$@" in \ 3508 *-lean ) rm -rf stage$$stage ;; \ 3509 *) ;; \ 3510 esac; true; \ 3511 fi 3512 3513# Compare the object files in the current directory with those in the 3514# stage2 directory. Use gnu cmp (diffutils v2.4 or later) to avoid 3515# running tail and the overhead of twice copying each object file. 3516# An exit status of 1 is precisely the result we're looking for (other 3517# values mean other problems). 3518gnucompare gnucompare3 gnucompare4 gnucompare-lean gnucompare3-lean gnucompare4-lean: force 3519 -rm -f .bad_compare 3520 case "$@" in gnucompare | gnucompare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^gnucompare\([0-9][0-9]*\).*,\1,'` ;; esac; \ 3521 for file in *$(objext); do \ 3522 cmp --ignore-initial=16 $$file stage$$stage/$$file > /dev/null 2>&1; \ 3523 test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \ 3524 done 3525 case "$@" in gnucompare | gnucompare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^gnucompare\([0-9][0-9]*\).*,\1,'` ;; esac; \ 3526 for dir in tmp-foo intl $(SUBDIRS); do \ 3527 if [ "`echo $$dir/*$(objext)`" != "$$dir/*$(objext)" ] ; then \ 3528 for file in $$dir/*$(objext); do \ 3529 cmp --ignore-initial=16 $$file stage$$stage/$$file > /dev/null 2>&1; \ 3530 test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \ 3531 done; \ 3532 else true; fi; \ 3533 done 3534 case "$@" in gnucompare | gnucompare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^gnucompare\([0-9][0-9]*\).*,\1,'` ;; esac; \ 3535 if [ -f .bad_compare ]; then \ 3536 echo "Bootstrap comparison failure!"; \ 3537 cat .bad_compare; \ 3538 exit 1; \ 3539 else \ 3540 case "$@" in \ 3541 *-lean ) rm -rf stage$$stage ;; \ 3542 esac; true; \ 3543 fi 3544 3545# Copy the object files from a particular stage into a subdirectory. 3546stage1-start: 3547 -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi 3548 $(MAKE) -f libgcc.mk libgcc-stage-start stage=stage1 3549 -for dir in intl $(SUBDIRS) ; \ 3550 do \ 3551 if [ -d stage1/$$dir ] ; then true ; else mkdir stage1/$$dir ; fi ; \ 3552 done 3553 -mv $(STAGESTUFF) stage1 3554 -mv intl/*$(objext) stage1/intl 3555# Copy as/ld if they exist to stage dir, so that running xgcc from the stage 3556# dir will work properly. 3557 -if [ -f as$(exeext) ] ; then (cd stage1 && $(LN_S) ../as$(exeext) .) ; else true ; fi 3558 -if [ -f ld$(exeext) ] ; then (cd stage1 && $(LN_S) ../ld$(exeext) .) ; else true ; fi 3559 -if [ -f collect-ld$(exeext) ] ; then (cd stage1 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi 3560 -rm -f stage1/libgcc.a stage1/libgcc_eh.a 3561 -cp libgcc.a stage1 3562 -if $(RANLIB_TEST_FOR_TARGET) ; then \ 3563 $(RANLIB_FOR_TARGET) stage1/libgcc.a; \ 3564 else true; fi 3565 -if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage1; \ 3566 if $(RANLIB_TEST_FOR_TARGET) ; then \ 3567 $(RANLIB_FOR_TARGET) stage1/libgcc_eh.a; \ 3568 else true; fi; fi 3569 -for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \ 3570 cp stage1/$${f} . ; \ 3571 else true; \ 3572 fi; done 3573stage1: force stage1-start lang.stage1 3574 3575stage2-start: 3576 -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi 3577 $(MAKE) -f libgcc.mk libgcc-stage-start stage=stage2 3578 -for dir in intl $(SUBDIRS) ; \ 3579 do \ 3580 if [ -d stage2/$$dir ] ; then true ; else mkdir stage2/$$dir ; fi ; \ 3581 done 3582 -mv $(STAGESTUFF) stage2 3583 -mv intl/*$(objext) stage2/intl 3584# Copy as/ld if they exist to stage dir, so that running xgcc from the stage 3585# dir will work properly. 3586 -if [ -f as$(exeext) ] ; then (cd stage2 && $(LN_S) ../as$(exeext) .) ; else true ; fi 3587 -if [ -f ld$(exeext) ] ; then (cd stage2 && $(LN_S) ../ld$(exeext) .) ; else true ; fi 3588 -if [ -f collect-ld$(exeext) ] ; then (cd stage2 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi 3589 -rm -f stage2/libgcc.a stage2/libgcc_eh.a 3590 -cp libgcc.a stage2 3591 -if $(RANLIB_TEST_FOR_TARGET) ; then \ 3592 $(RANLIB_FOR_TARGET) stage2/libgcc.a; \ 3593 else true; fi 3594 -if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage2; \ 3595 if $(RANLIB_TEST_FOR_TARGET) ; then \ 3596 $(RANLIB_FOR_TARGET) stage2/libgcc_eh.a; \ 3597 else true; fi; fi 3598 -for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \ 3599 cp stage2/$${f} . ; \ 3600 else true; \ 3601 fi; done 3602stage2: force stage2-start lang.stage2 3603 3604stage3-start: 3605 -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi 3606 $(MAKE) -f libgcc.mk libgcc-stage-start stage=stage3 3607 -for dir in intl $(SUBDIRS) ; \ 3608 do \ 3609 if [ -d stage3/$$dir ] ; then true ; else mkdir stage3/$$dir ; fi ; \ 3610 done 3611 -mv $(STAGESTUFF) stage3 3612 -mv intl/*$(objext) stage3/intl 3613# Copy as/ld if they exist to stage dir, so that running xgcc from the stage 3614# dir will work properly. 3615 -if [ -f as$(exeext) ] ; then (cd stage3 && $(LN_S) ../as$(exeext) .) ; else true ; fi 3616 -if [ -f ld$(exeext) ] ; then (cd stage3 && $(LN_S) ../ld$(exeext) .) ; else true ; fi 3617 -if [ -f collect-ld$(exeext) ] ; then (cd stage3 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi 3618 -rm -f stage3/libgcc.a stage3/libgcc_eh.a 3619 -cp libgcc.a stage3 3620 -if $(RANLIB_TEST_FOR_TARGET) ; then \ 3621 $(RANLIB_FOR_TARGET) stage3/libgcc.a; \ 3622 else true; fi 3623 -if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage3; \ 3624 if $(RANLIB_TEST_FOR_TARGET) ; then \ 3625 $(RANLIB_FOR_TARGET) stage3/libgcc_eh.a; \ 3626 else true; fi; fi 3627 -for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \ 3628 cp stage3/$${f} . ; \ 3629 else true; \ 3630 fi; done 3631stage3: force stage3-start lang.stage3 3632 3633stage4-start: 3634 -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi 3635 $(MAKE) -f libgcc.mk libgcc-stage-start stage=stage4 3636 -for dir in intl $(SUBDIRS) ; \ 3637 do \ 3638 if [ -d stage4/$$dir ] ; then true ; else mkdir stage4/$$dir ; fi ; \ 3639 done 3640 -mv $(STAGESTUFF) stage4 3641 -mv intl/*$(objext) stage4/intl 3642# Copy as/ld if they exist to stage dir, so that running xgcc from the stage 3643# dir will work properly. 3644 -if [ -f as$(exeext) ] ; then (cd stage4 && $(LN_S) ../as$(exeext) .) ; else true ; fi 3645 -if [ -f ld$(exeext) ] ; then (cd stage4 && $(LN_S) ../ld$(exeext) .) ; else true ; fi 3646 -if [ -f collect-ld$(exeext) ] ; then (cd stage4 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi 3647 -rm -f stage4/libgcc.a stage4/libgcc_eh.a 3648 -cp libgcc.a stage4 3649 -if $(RANLIB_TEST_FOR_TARGET) ; then \ 3650 $(RANLIB_FOR_TARGET) stage4/libgcc.a; \ 3651 else true; fi 3652 -if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage4; \ 3653 if $(RANLIB_TEST_FOR_TARGET) ; then \ 3654 $(RANLIB_FOR_TARGET) stage4/libgcc_eh.a; \ 3655 else true; fi; fi 3656 -for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \ 3657 cp stage4/$${f} . ; \ 3658 else true; \ 3659 fi; done 3660stage4: force stage4-start lang.stage4 3661 3662# Copy just the executable files from a particular stage into a subdirectory, 3663# and delete the object files. Use this if you're just verifying a version 3664# that is pretty sure to work, and you are short of disk space. 3665risky-stage1: stage1 3666 -$(MAKE) clean 3667 3668risky-stage2: stage2 3669 -$(MAKE) clean 3670 3671risky-stage3: stage3 3672 -$(MAKE) clean 3673 3674risky-stage4: stage4 3675 -$(MAKE) clean 3676 3677#In GNU Make, ignore whether `stage*' exists. 3678.PHONY: stage1 stage2 stage3 stage4 clean maintainer-clean TAGS bootstrap 3679.PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4 3680 3681force: 3682 3683# Rules for generating translated message descriptions. 3684# Disabled by autoconf if the tools are not available. 3685 3686XGETTEXT = @XGETTEXT@ 3687GMSGFMT = @GMSGFMT@ 3688MSGMERGE = msgmerge 3689 3690PACKAGE = @PACKAGE@ 3691CATALOGS = @CATALOGS@ 3692 3693.PHONY: build- install- build-po install-po update-po 3694 3695# Dummy rules to deal with dependencies produced by use of 3696# "build-@POSUB@" and "install-@POSUB@" above, when NLS is disabled. 3697build-: ; @true 3698install-: ; @true 3699 3700build-po: $(CATALOGS) 3701 3702# This notation should be acceptable to all Make implementations used 3703# by people who are interested in updating .po files. 3704update-po: $(CATALOGS:.gmo=.pox) 3705 3706# N.B. We do not attempt to copy these into $(srcdir). The snapshot 3707# script does that. 3708.po.gmo: 3709 -test -d po || mkdir po 3710 $(GMSGFMT) --statistics -o $@ $< 3711 3712# The new .po has to be gone over by hand, so we deposit it into 3713# build/po with a different extension. 3714# If build/po/$(PACKAGE).pot exists, use it (it was just created), 3715# else use the one in srcdir. 3716.po.pox: 3717 -test -d po || mkdir po 3718 $(MSGMERGE) $< `if test -f po/$(PACKAGE).pot; \ 3719 then echo po/$(PACKAGE).pot; \ 3720 else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@ 3721 3722# This rule has to look for .gmo modules in both srcdir and 3723# the cwd, and has to check that we actually have a catalog 3724# for each language, in case they weren't built or included 3725# with the distribution. 3726install-po: 3727 $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir) 3728 for cat in $(CATALOGS); do \ 3729 lang=`basename $$cat | sed 's/\.gmo$$//'`; \ 3730 if [ -f $$cat ]; then :; \ 3731 elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \ 3732 else continue; \ 3733 fi; \ 3734 dir=$(localedir)/$$lang/LC_MESSAGES; \ 3735 echo $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$$dir; \ 3736 $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$$dir || exit 1; \ 3737 echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ 3738 $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ 3739 done 3740 3741# Rule for regenerating the message template (gcc.pot). 3742# Instead of forcing everyone to edit POTFILES.in, which proved impractical, 3743# this rule has no dependencies and always regenerates gcc.pot. This is 3744# relatively harmless since the .po files do not directly depend on it. 3745# Note that exgettext has an awk script embedded in it which requires a 3746# fairly modern (POSIX-compliant) awk. 3747# The .pot file is left in the build directory. 3748$(PACKAGE).pot: po/$(PACKAGE).pot 3749po/$(PACKAGE).pot: force 3750 -test -d po || mkdir po 3751 $(MAKE) po-generated 3752 AWK=$(AWK) $(SHELL) $(srcdir)/po/exgettext \ 3753 $(XGETTEXT) $(PACKAGE) $(srcdir) 3754