📄 makefile.in
字号:
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ "INSTALL_DATA=$(INSTALL_DATA)" \ "RUNTEST=$(RUNTEST)" \ "RUNTESTFLAGS=$(RUNTESTFLAGS)"# Flags that we pass when building the testsuite.# empty for native, $(target_alias)/ for crosstarget_subdir = @target_subdir@CC_FOR_TARGET = ` \ if [ -f $${rootme}/../gcc/xgcc ] ; then \ if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \ echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/$(target_subdir)newlib/targ-include -idirafter $${rootsrc}/../$(target_subdir)newlib/libc/include -nostdinc -B$${rootme}/../$(target_subdir)newlib/; \ else \ echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \ fi; \ else \ if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ echo $(CC); \ else \ t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ fi; \ fi`CXX = gccCXX_FOR_TARGET = ` \ if [ -f $${rootme}/../gcc/xgcc ] ; then \ if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \ echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/$(target_subdir)newlib/targ-include -idirafter $${rootsrc}/../$(target_subdir)newlib/libc/include -nostdinc -B$${rootme}/../$(target_subdir)newlib/; \ else \ echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \ fi; \ else \ if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ echo $(CXX); \ else \ t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ fi; \ fi`CHILLFLAGS = $(CFLAGS)CHILL = gccCHILL_FOR_TARGET = ` \ if [ -f $${rootme}/../gcc/Makefile ] ; then \ echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -L$${rootme}/../gcc/ch/runtime/; \ else \ if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ echo $(CC); \ else \ t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ fi; \ fi`CHILL_LIB = ` \ if [ -f $${rootme}/../gcc/ch/runtime/libchill.a ] ; then \ echo $${rootme}/../gcc/ch/runtime/chillrt0.o \ $${rootme}/../gcc/ch/runtime/libchill.a; \ else \ echo -lchill; \ fi`# The use of $$(x_FOR_TARGET) reduces the command line length by not# duplicating the lengthy definition.TARGET_FLAGS_TO_PASS = \ "prefix=$(prefix)" \ "exec_prefix=$(exec_prefix)" \ "against=$(against)" \ 'CC=$$(CC_FOR_TARGET)' \ "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ "CFLAGS=$(CFLAGS)" \ "CHILLFLAGS=$(CHILLFLAGS)" \ 'CHILL=$$(CHILL_FOR_TARGET)' \ "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \ "CHILL_LIB=$(CHILL_LIB)" \ 'CXX=$$(CXX_FOR_TARGET)' \ "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ "CXXFLAGS=$(CXXFLAGS)" \ "INSTALL=$(INSTALL)" \ "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ "INSTALL_DATA=$(INSTALL_DATA)" \ "MAKEINFO=$(MAKEINFO)" \ "MAKEHTML=$(MAKEHTML)" \ "RUNTEST=$(RUNTEST)" \ "RUNTESTFLAGS=$(RUNTESTFLAGS)"# All source files that go into linking GDB.# Links made at configuration time should not be specified here, since# SFILES is used in building the distribution archive.SFILES = ax-general.c ax-gdb.c bcache.c blockframe.c breakpoint.c \ buildsym.c c-exp.y c-lang.c c-typeprint.c c-valprint.c \ ch-exp.c ch-lang.c ch-typeprint.c ch-valprint.c coffread.c \ command.c complaints.c corefile.c cp-valprint.c dbxread.c \ demangle.c dwarfread.c dwarf2read.c elfread.c environ.c eval.c \ event-loop.c event-top.c \ expprint.c f-exp.y f-lang.c f-typeprint.c f-valprint.c \ findvar.c gdbarch.c arch-utils.c gdbtypes.c \ inf-loop.c infcmd.c inflow.c infrun.c language.c \ kod.c kod-cisco.c \ ui-out.c cli-out.c \ varobj.c wrapper.c \ jv-exp.y jv-lang.c jv-valprint.c jv-typeprint.c \ m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c main.c maint.c \ mem-break.c minsyms.c mipsread.c nlmread.c objfiles.c parse.c \ printcmd.c remote.c remote-nrom.c scm-exp.c scm-lang.c \ scm-valprint.c source.c stabsread.c stack.c symfile.c \ symmisc.c symtab.c target.c thread.c top.c tracepoint.c \ typeprint.c utils.c valarith.c valops.c valprint.c values.c \ serial.c ser-unix.c mdebugread.c os9kread.c \ tui/tui.c tui/tui.h tui/tuiCommand.c tui/tuiCommand.h \ tui/tuiData.c tui/tuiData.h tui/tuiDataWin.c tui/tuiDataWin.h \ tui/tuiDisassem.c tui/tuiDisassem.h tui/tuiGeneralWin.c \ tui/tuiGeneralWin.h tui/tuiIO.c tui/tuiIO.h tui/tuiLayout.c \ tui/tuiLayout.h tui/tuiRegs.c tui/tuiRegs.h tui/tuiSource.c \ tui/tuiSource.h tui/tuiSourceWin.c tui/tuiSourceWin.h \ tui/tuiStack.c tui/tuiStack.h tui/tuiWin.c tui/tuiWin.h \ tui/tui-file.h tui/tui-file.c \ ui-file.h ui-file.cLINTFILES = $(SFILES) $(YYFILES) $(CONFIG_SRCS) init.c# "system" headers. Using these in dependencies is a rather personal# choice. (-rich, summer 1993)# (Why would we not want to depend on them? If one of these changes in a # non-binary-compatible way, it is a real pain to remake the right stuff# without these dependencies -kingdon, 13 Mar 1994)getopt_h = $(INCLUDE_DIR)/getopt.hfloatformat_h = $(INCLUDE_DIR)/floatformat.hbfd_h = $(BFD_DIR)/bfd.hdis-asm_h = $(INCLUDE_DIR)/dis-asm.h remote-sim_h = $(INCLUDE_DIR)/remote-sim.hdcache_h = dcache.hremote_utils_h = $(dcache_h) serial.h target.h remote-utils.h $(remote-sim_h)readline_headers = \ $(READLINE_SRC)/chardefs.h \ $(READLINE_SRC)/history.h \ $(READLINE_SRC)/keymaps.h \ $(READLINE_SRC)/readline.hudiheaders = \ $(srcdir)/29k-share/udi/udiproc.h \ $(srcdir)/29k-share/udi/udiphcfg.h \ $(srcdir)/29k-share/udi/udiphunix.h \ $(srcdir)/29k-share/udi/udiptcfg.h \ $(srcdir)/29k-share/udi/udipt29k.h \ $(srcdir)/29k-share/udi/udisoc.hgdbcore_h = gdbcore.h $(bfd_h)frame_h = frame.hsymtab_h = symtab.h bcache.hgdbtypes_h = gdbtypes.hexpression_h = expression.hvalue_h = value.h $(symtab_h) $(gdbtypes_h) $(expression_h)breakpoint_h = breakpoint.h $(frame_h) $(value_h)command_h = command.hgdbcmd_h = gdbcmd.h $(command_h)call_cmds_h = call-cmds.hdefs_h = defs.h xm.h tm.h nm.h config.status config.h gdbarch.h ui-file.htop_h = top.hinferior_h = inferior.h $(breakpoint_h)tracepoint_h = tracepoint.hax_h = ax.hevent_loop_h = event-loop.hevent_top_h = event-top.hinf_loop_h = inf-loop.hremote_h = remote.hversion_h = version.hui_out_h = ui-out.hcli_out_h = cli-out.harch_utils_h = arch-utils.h# Header files that need to have srcdir added. Note that in the cases# where we use a macro like $(gdbcmd_h), things are carefully arranged# so that each .h file is listed exactly once (M-x tags-search works# wrong if TAGS has files twice). Because this is tricky to get# right, it is probably easiest just to list .h files here directly.HFILES_NO_SRCDIR = bcache.h buildsym.h call-cmds.h coff-solib.h defs.h \ dst.h environ.h $(gdbcmd_h) gdbcore.h \ gdb-stabs.h hpread.h $(inferior_h) language.h minimon.h monitor.h \ objfiles.h parser-defs.h partial-stab.h serial.h signals.h solib.h \ symfile.h stabsread.h target.h terminal.h typeprint.h xcoffsolib.h \ c-lang.h ch-lang.h f-lang.h \ jv-lang.h \ m2-lang.h \ complaints.h valprint.h \ 29k-share/udi/udiids.h 29k-share/udi_soc nindy-share/b.out.h \ nindy-share/block_io.h nindy-share/coff.h \ nindy-share/env.h nindy-share/stop.h \ vx-share/dbgRpcLib.h vx-share/ptrace.h vx-share/vxTypes.h \ vx-share/vxWorks.h vx-share/wait.h vx-share/xdr_ld.h \ vx-share/xdr_ptrace.h vx-share/xdr_rdb.h gdbthread.h \ dcache.h remote-utils.h top.h somsolib.h# Header files that already have srcdir in them, or which are in objdir.HFILES_WITH_SRCDIR = $(udiheaders) ../bfd/bfd.h# GDB "info" files, which should be included in their entiretyINFOFILES = gdb.info*REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.sharPOSSLIBS = gnu-regex.c gnu-regex.h# {X,T,NAT}DEPFILES are something of a pain in that it's hard to# default their values the way we do for SER_HARDWIRE; in the future# maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other# variables analogous to SER_HARDWIRE which get defaulted in this# Makefile.inDEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) \ $(REMOTE_OBS) $(SIM_OBS) $(CONFIG_OBS)SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES) $(CONFIG_SRCS)# Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,# and it's more useful to see it in the .y file.TAGFILES_NO_SRCDIR = $(SFILES) $(HFILES_NO_SRCDIR) $(ALLDEPFILES) \ $(POSSLIBS)TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)COMMON_OBS = version.o blockframe.o breakpoint.o findvar.o stack.o thread.o \ source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o \ symtab.o symfile.o symmisc.o infcmd.o infrun.o command.o \ expprint.o environ.o \ event-loop.o event-top.o inf-loop.o \ gdbarch.o arch-utils.o gdbtypes.o copying.o $(DEPFILES) \ mem-break.o target.o parse.o language.o $(YYOBJ) buildsym.o \ kod.o kod-cisco.o \ gdb-events.o \ exec.o bcache.o objfiles.o minsyms.o maint.o demangle.o \ dbxread.o coffread.o elfread.o \ dwarfread.o dwarf2read.o mipsread.o stabsread.o corefile.o \ c-lang.o ch-exp.o ch-lang.o f-lang.o \ ui-out.o cli-out.o \ varobj.o wrapper.o \ jv-lang.o jv-valprint.o jv-typeprint.o \ m2-lang.o \ scm-exp.o scm-lang.o scm-valprint.o complaints.o typeprint.o \ c-typeprint.o ch-typeprint.o f-typeprint.o m2-typeprint.o \ c-valprint.o cp-valprint.o ch-valprint.o f-valprint.o m2-valprint.o \ nlmread.o serial.o mdebugread.o os9kread.o top.o utils.o \ ui-file.o tui-file.oOBS = $(COMMON_OBS) $(ANNOTATE_OBS)TSOBS = inflow.oNTSOBS = standalone.oNTSSTART = kdb-start.oSUBDIRS = @SUBDIRS@# For now, shortcut the "configure GDB for fewer languages" stuff.YYFILES = c-exp.tab.c \ jv-exp.tab.c \ f-exp.tab.c m2-exp.tab.cYYOBJ = c-exp.tab.o \ jv-exp.tab.o \ f-exp.tab.o m2-exp.tab.o# Things which need to be built when making a distribution.DISTSTUFF = $(YYFILES)# Prevent Sun make from putting in the machine type. Setting# TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1..c.o: $(CC) -c $(INTERNAL_CFLAGS) $<all: gdb$(EXEEXT) $(CONFIG_ALL) @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_doinstallcheck:# The check target can not use subdir_do, because subdir_do does not# use TARGET_FLAGS_TO_PASS.check: force @if [ -f testsuite/Makefile ]; then \ rootme=`pwd`; export rootme; \ rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ cd testsuite; \ $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \ else true; fiinfo dvi install-info clean-info html install-html: force @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_dogdb.z:gdb.1 nroff -man $(srcdir)/gdb.1 | col -b > gdb.t pack gdb.t ; rm -f gdb.t mv gdb.t.z gdb.z# Traditionally "install" depends on "all". But it may be useful# not to; for example, if the user has made some trivial change to a # source file and doesn't care about rebuilding or just wants to save the# time it takes for make to check that all is up to date.# install-only is intended to address that need.install: all install-onlyinstall-only: $(CONFIG_INSTALL) transformed_name=`t='$(program_transform_name)'; \ echo gdb | sed -e $$t` ; \ if test "x$$transformed_name" = x; then \ transformed_name=gdb ; \ else \ true ; \ fi ; \ $(srcdir)/../mkinstalldirs $(bindir) ; \ $(INSTALL_PROGRAM) gdb$(EXEEXT) $(bindir)/$$transformed_name$(EXEEXT) ; \ $(srcdir)/../mkinstalldirs $(man1dir) ; \ $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$transformed_name.1 @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do uninstall: force $(CONFIG_UNINSTALL) transformed_name=`t='$(program_transform_name)'; \ echo gdb | sed -e $$t` ; \ if test "x$$transformed_name" = x; then \ transformed_name=gdb ; \ else \ true ; \ fi ; \ rm -f $(bindir)/$$transformed_name$(EXEEXT) $(man1dir)/$$transformed_name.1 rm -rf $(datadir)/gdbtcl @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do # We do this by grepping through sources. If that turns out to be too slow,# maybe we could just require every .o file to have an initialization routine# of a given name (remote-udi.o -> _initialize_remote_udi, etc.).## Formatting conventions: The name of the _initialize_* routines must start# in column zero, and must not be inside #if.## Note that the set of files with init functions might change, or the names# of the functions might change, so this files needs to depend on all the# object files that will be linked into gdb.## FIXME: There are 2 problems with this approach. First, if the INIT_FILES# list includes a file twice (because of some mistake somewhere else) # the _initialize_* function will be included twice in init.c. Second, # init.c may force unnecessary files to be linked in. Like for instance # tui-file.c.#INIT_FILES = $(OBS) $(TSOBS) $(CONFIG_INITS)init.c: $(INIT_FILES) @echo Making init.c @rm -f init.c-tmp init.l-tmp @-echo $(INIT_FILES) | \ tr ' ' '\012' | \ sed -e '/^Onindy.o/d' \ -e '/^init.o/d' \ -e '/^nindy.o/d' \ -e '/ttyflush.o/d' \ -e '/xdr_ld.o/d' \ -e '/xdr_ptrace.o/d' \ -e '/xdr_rdb.o/d' \ -e '/udr.o/d' \ -e '/udip2soc.o/d' \ -e '/udi2go32.o/d' \ -e '/version.o/d' \ -e '/^[a-z0-9A-Z_]*_[SU].o/d' \ -e '/[a-z0-9A-Z_]*-exp.tab.o/d' \ -e 's/\.o/.c/' \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -