📄 makefile.in
字号:
# Makefile for GNU F77 compiler.# Copyright (C) 1995-1998 Free Software Foundation, Inc.#This file is part of GNU Fortran.#GNU Fortran is free software; you can redistribute it and/or modify#it under the terms of the GNU General Public License as published by#the Free Software Foundation; either version 2, or (at your option)#any later version.#GNU Fortran is distributed in the hope that it will be useful,#but WITHOUT ANY WARRANTY; without even the implied warranty of#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the#GNU General Public License for more details.#You should have received a copy of the GNU General Public License#along with GNU Fortran; see the file COPYING. If not, write to#the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA#02111-1307, USA.# The makefile built from this file lives in the language subdirectory.# Its purpose is to provide support for:## 1) recursion where necessary, and only then (building .o's), and# 2) building and debugging f771 from the language subdirectory, and# 3) nothing else.## The parent makefile handles all other chores, with help from the# language makefile fragment, of course.## The targets for external use are:# all, TAGS, ???mostlyclean, ???clean.# Suppress smart makes who think they know how to automake Yacc files.y.c:# Variables that exist for you to override.# See below for how to change them for certain systems.ALLOCA =# Various ways of specifying flags for compilations:# CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.# BOOT_CFLAGS is the value of CFLAGS to pass# to the stage2 and stage3 compilations# XCFLAGS is used for most compilations but not when using the GCC just built.XCFLAGS =CFLAGS = -gBOOT_CFLAGS = -O $(CFLAGS)# These exists to be overridden by the x-* and t-* files, respectively.X_CFLAGS =T_CFLAGS =X_CPPFLAGS =T_CPPFLAGS =CC = @CC@BISON = bisonBISONFLAGS =LEX = flexLEXFLAGS =AR = arAR_FLAGS = rcSHELL = /bin/shMAKEINFO = makeinfoTEXI2DVI = texi2dvi# Define this as & to perform parallel make on a Sequent.# Note that this has some bugs, and it seems currently necessary# to compile all the gen* files first by hand to avoid erroneous results.P =# This is used in the definition of SUBDIR_USE_ALLOCA.# ??? Perhaps it would be better if it just looked for *gcc*.OLDCC = cc# This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.# It omits XCFLAGS, and specifies -B./.# It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)# Tools to use when building a cross-compiler.# These are used because `configure' appends `cross-make'# to the makefile when making a cross-compiler.target=@target@xmake_file=@dep_host_xmake_file@tmake_file=@dep_tmake_file@# Directory where sources are, from where we are.srcdir = @srcdir@VPATH = @srcdir@# Additional system libraries to link with.CLIB=# Change this to a null string if obstacks are installed in the# system library.OBSTACK=obstack.o# Choose the real default target.ALL=all# End of variables for you to override.# Definition of `all' is here so that new rules inserted by sed# do not specify the default target.all: all.indirect# This tells GNU Make version 3 not to put all variables in the environment..NOEXPORT:# sed inserts variable overrides after the following line.####target overrides@target_overrides@####host overrides@host_overrides@####cross overrides@cross_defines@@cross_overrides@####build overrides@build_overrides@## Now figure out from those variables how to compile and link.all.indirect: Makefile ../f771$(exeext)# IN_GCC tells obstack.h that we are using gcc's <stddef.h> file.INTERNAL_CFLAGS = $(CROSS) -DIN_GCC @extra_c_flags@# This is the variable actually used when we compile.ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS) -W -Wall# Likewise.ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)# We should be compiling with the built compiler, for which# BOOT_LDFLAGS is appropriate. (Formerly we had a separate# F771_LDFLAGS, but the ld flags can be taken care of by the target# configuration files in egcs.)LDFLAGS=$(BOOT_LDFLAGS)# Even if ALLOCA is set, don't use it if compiling with GCC.SUBDIR_OBSTACK = `if [ x$(OBSTACK) != x ]; then echo ../$(OBSTACK); else true; fi`SUBDIR_USE_ALLOCA = `case "${CC}" in "${OLDCC}") if [ x$(ALLOCA) != x ]; then echo ../$(ALLOCA); else true; fi ;; esac`SUBDIR_MALLOC = `if [ x$(MALLOC) != x ]; then echo ../$(MALLOC); else true; fi`# How to link with both our special library facilities# and the system's installed libraries.LIBS = $(SUBDIR_OBSTACK) $(SUBDIR_USE_ALLOCA) $(SUBDIR_MALLOC) $(CLIB)# Specify the directories to be searched for header files.# Both . and srcdir are used, in that order,# so that tm.h and config.h will be found in the compilation# subdirectory rather than in the source directory.INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config -I$(srcdir)/../../include# Always use -I$(srcdir)/config when compiling..c.o: $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<## Lists of files for various purposes.# Language-specific object files for g77F77_OBJS = \ bad.o \ bit.o \ bld.o \ com.o \ data.o \ equiv.o \ expr.o \ global.o \ implic.o \ info.o \ intrin.o \ lab.o \ lex.o \ malloc.o \ name.o \ parse.o \ proj.o \ src.o \ st.o \ sta.o \ stb.o \ stc.o \ std.o \ ste.o \ storag.o \ stp.o \ str.o \ sts.o \ stt.o \ stu.o \ stv.o \ stw.o \ symbol.o \ target.o \ top.o \ type.o \ version.o \ where.o# Language-independent object files.OBJS = `cat ../stamp-objlist`OBJDEPS = ../stamp-objlistcompiler: ../f771$(exeext)../f771$(exeext): $(P) $(F77_OBJS) $(OBJDEPS) $(LIBDEPS) rm -f f771$(exeext) $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(F77_OBJS) $(OBJS) $(LIBS)Makefile: $(srcdir)/Makefile.in $(srcdir)/../configure cd ..; $(SHELL) config.statusnative: config.status ../f771$(exeext)## Compiling object files from source files.# Note that dependencies on obstack.h are not written# because that file is not part of GCC.# F77 language-specific files.# These macros expand to the corresponding g77-source .j files plus# the gcc-source files involved (each file itself, plus whatever# files on which it depends, but without including stuff resulting# from configuration, since we can't guess at that). The files# that live in a distclean'd gcc source directory have "$(srcdir)/"# prefixes, while the others don't because they'll be created# only in the build directory.ASSERT_H = $(srcdir)/assert.j $(srcdir)/../assert.hCONFIG_H = $(srcdir)/config.j ../config.hCONVERT_H = $(srcdir)/convert.j $(srcdir)/../convert.hFLAGS_H = $(srcdir)/flags.j $(srcdir)/../flags.hGLIMITS_H = $(srcdir)/glimits.j $(srcdir)/../glimits.hHCONFIG_H = $(srcdir)/hconfig.j ../hconfig.hINPUT_H = $(srcdir)/input.j $(srcdir)/../input.hOUTPUT_H = $(srcdir)/output.j $(srcdir)/../output.hRTL_H = $(srcdir)/rtl.j $(srcdir)/../rtl.h $(srcdir)/../rtl.def \ $(srcdir)/../machmode.h $(srcdir)/../machmode.defSYSTEM_H = $(srcdir)/system.j $(srcdir)/../system.hTCONFIG_H = $(srcdir)/tconfig.j ../tconfig.hTM_H = $(srcdir)/tm.j ../tm.hTOPLEV_H = $(srcdir)/toplev.j $(srcdir)/../toplev.hTREE_H = $(srcdir)/tree.j $(srcdir)/../tree.h $(srcdir)/../real.h \ $(srcdir)/../tree.def $(srcdir)/../machmode.h $(srcdir)/../machmode.def#Build the first part of this list with the command line:# cd gcc/; make deps-kinda -f f/Makefile.in#Note that this command uses the host C compiler;# use HOST_CC="./xgcc -B./" to use GCC in the build directory, for example.#Also note that this particular build file seems to want to use# substitions: $(CONFIG_H) for config.h; $(TREE_H) for tree.h;# $(RTL_H) for rtl.h; etc.. deps-kinda uses a sed script to do those# substitutions, plus others for elegance.ansify.o: ansify.c $(HCONFIG_H) $(SYSTEM_H) $(ASSERT_H)bad.o: bad.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) bad.h bad.def where.h \ $(GLIMITS_H) top.h malloc.h $(FLAGS_H) com.h com-rt.def $(TREE_H) bld.h \ bld-op.def bit.h info.h info-b.def info-k.def info-w.def target.h \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -