📄 makefile.in
字号:
-e 's|\([^ ][^ ]*\)|$(srcdir)/\1|g' | \ while read f; do grep '^_initialize_[a-z_0-9A-Z]* *(' $$f 2>/dev/null; done | \ sed -e 's/^.*://' -e 's/^\([a-z_0-9A-Z]*\).*/\1/' > init.l-tmp @echo '/* Do not modify this file. */' >>init.c-tmp @echo '/* It is created automatically by the Makefile. */'>>init.c-tmp @echo '#include "defs.h"' >>init.c-tmp @echo '#include "call-cmds.h"' >>init.c-tmp @sed -e 's/\(.*\)/extern initialize_file_ftype \1;/' <init.l-tmp >>init.c-tmp @echo 'void' >>init.c-tmp @echo 'initialize_all_files (void)' >>init.c-tmp @echo '{' >>init.c-tmp @sed -e 's/\(.*\)/ \1 ();/' <init.l-tmp >>init.c-tmp @echo '}' >>init.c-tmp @rm init.l-tmp @mv init.c-tmp init.c.PRECIOUS: init.cinit.o: init.c $(defs_h) $(call_cmds_h)# Removing the old gdb first works better if it is running, at least on SunOS.gdb$(EXEEXT): main.o libgdb.a $(ADD_DEPS) $(CDEPS) $(TDEPLIBS) rm -f gdb$(EXEEXT) $(HLDENV) $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) -o gdb$(EXEEXT) main.o libgdb.a $(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)nlm: force rootme=`pwd`; export rootme; $(MAKE) $(TARGET_FLAGS_TO_PASS) DO=all DODIRS=nlm subdir_do# Create a library of the gdb object files and build GDB by linking# against that.## init.o is very important. It pulls in the rest of GDB.LIBGDB_OBS= $(OBS) $(TSOBS) $(ADD_FILES) init.olibgdb.a: $(LIBGDB_OBS) -rm -f libgdb.a $(AR) q libgdb.a $(LIBGDB_OBS) $(RANLIB) libgdb.asaber_gdb: $(SFILES) $(DEPFILES) copying.c version.c #setopt load_flags $(CFLAGS) $(BFD_CFLAGS) -DHOST_SYS=SUN4_SYS #load ./init.c $(SFILES) #unload $(srcdir)/c-exp.y #unload $(srcdir)/jv-exp.y #unload $(srcdir)/m2-exp.y #unload vx-share/*.h #unload nindy-share/[A-Z]* #load c-exp.tab.c #load jv-exp.tab.c #load m2-exp.tab.c #load copying.c version.c #load ../opcodes/libopcodes.a #load ../libiberty/libiberty.a #load ../bfd/libbfd.a #load ../readline/libreadline.a #load ../mmalloc/libmmalloc.a #load ../intl/libintl.a #load -ltermcap #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'` echo "Load .c corresponding to:" $(DEPFILES)# A Mach 3.0 program to force gdb back to command levelstop-gdb: stop-gdb.o ${CC_LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o stop-gdb \ stop-gdb.o $(CLIBS) $(LOADLIBES)# This is useful when debugging GDB, because some Unix's don't let you run GDB# on itself without copying the executable. So "make gdb1" will make# gdb and put a copy in gdb1, and you can run it with "gdb gdb1".# Removing gdb1 before the copy is the right thing if gdb1 is open# in another process.gdb1$(EXEEXT): gdb$(EXEEXT) rm -f gdb1$(EXEEXT) cp gdb$(EXEEXT) gdb1$(EXEEXT)# FIXME. These are not generated by "make depend" because they only are there# for some machines.# But these rules don't do what we want; we want to hack the foo.o: tm.h# dependency to do the right thing.tm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h: tm-m68k.htm-hp300hpux.h tm-sun2.h tm-3b1.h: tm-m68k.hxm-news1000.h: xm-news.hxm-i386-sv32.h: xm-i386.htm-i386gas.h: tm-i386.hxm-sun4os4.h: xm-sparc.htm-sun4os4.h: tm-sparc.hxm-vaxult.h: xm-vax.hxm-vaxbsd.h: xm-vax.hkdb: $(NTSSTART) $(OBS) $(NTSOBS) $(ADD_DEPS) $(CDEPS) ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \ -lc $(CLIBS)# Have the TUI library depend on a phony target, so we'll always# recurse and make sure it's up to date. If it is, then the file will# be unchanged, and we won't rebuild it.# .PHONY: check-tuiall-tui: @(cd tui; ${MAKE} ${FLAGS_TO_PASS} all)# Put the proper machine-specific files first, so M-. on a machine# specific routine gets the one for the correct machine. (FIXME: those# files go in twice; we should be removing them from the main list).# TAGS depends on all the files that go into it so you can rebuild TAGS# with `make TAGS' and not have to say `rm TAGS' first.TAGS: $(TAGFILES_NO_SRCDIR) $(TAGFILES_WITH_SRCDIR) @echo Making TAGS @etags $(srcdir)/$(TM_FILE) \ $(srcdir)/$(XM_FILE) \ $(srcdir)/$(NAT_FILE) \ `(for i in $(DEPFILES) $(TAGFILES_NO_SRCDIR); do \ echo $(srcdir)/$$i ; \ done ; for i in $(TAGFILES_WITH_SRCDIR); do \ echo $$i ; \ done) | sed -e 's/\.o$$/\.c/'` \ `find $(srcdir)/config -name '*.h' -print`tags: TAGSclean mostlyclean: $(CONFIG_CLEAN) @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do rm -f *.o *.a $(ADD_FILES) *~ init.c-tmp init.l-tmp rm -f init.c version.c rm -f gdb$(EXEEXT) core make.log rm -f gdb[0-9]$(EXEEXT)# This used to depend on c-exp.tab.c m2-exp.tab.c TAGS# I believe this is wrong; the makefile standards for distclean just# describe removing files; the only sort of "re-create a distribution"# functionality described is if the distributed files are unmodified.distclean: clean @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do rm -f nm.h tm.h xm.h config.status config.h stamp-h .gdbinit rm -f y.output yacc.acts yacc.tmp y.tab.h rm -f config.log config.cache rm -f tui/Makefile rm -f Makefilemaintainer-clean: local-maintainer-clean do-maintainer-clean distcleanrealclean: maintainer-cleanlocal-maintainer-clean: @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f c-exp.tab.c \ jv-exp.tab \ f-exp.tab.c m2-exp.tab.c rm -f TAGS $(INFOFILES) rm -f $(YYFILES) rm -f nm.h tm.h xm.h config.statusdo-maintainer-clean: @$(MAKE) $(FLAGS_TO_PASS) DO=maintainer-clean "DODIRS=$(SUBDIRS)" \ subdir_dodiststuff: $(DISTSTUFF) cd doc; $(MAKE) $(MFLAGS) diststuffsubdir_do: force @for i in $(DODIRS); do \ if [ -f ./$$i/Makefile ] ; then \ if (cd ./$$i; \ $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ else exit 1 ; fi ; \ else true ; fi ; \ doneMakefile: Makefile.in config.status @frags@ $(SHELL) config.statusconfig.h: stamp-h ; @truestamp-h: config.in config.status CONFIG_HEADERS=config.h:config.in $(SHELL) config.statusconfig.status: configure $(SHELL) config.status --recheckforce:# Documentation!# GDB QUICK REFERENCE (TeX dvi file, CM fonts)doc/refcard.dvi: cd doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS)# GDB QUICK REFERENCE (PostScript output, common PS fonts)doc/refcard.ps: cd doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS)# GDB MANUAL: TeX dvi filedoc/gdb.dvi: cd doc; $(MAKE) gdb.dvi $(FLAGS_TO_PASS)# GDB MANUAL: info filedoc/gdb.info: cd doc; $(MAKE) gdb.info $(FLAGS_TO_PASS)# Make copying.c from COPYING$(srcdir)/copying.c: @MAINTAINER_MODE_TRUE@ \ $(srcdir)/COPYING $(srcdir)/copying.awk awk -f $(srcdir)/copying.awk \ < $(srcdir)/COPYING > $(srcdir)/copying.tmp mv $(srcdir)/copying.tmp $(srcdir)/copying.cversion.c: Makefile rm -f version.c echo '#include "version.h"' >> version.c echo 'const char version[] = "$(VERSION)";' >> version.c echo 'const char host_name[] = "$(host_alias)";' >> version.c echo 'const char target_name[] = "$(target_alias)";' >> version.cversion.o: version.c $(version_h)# c-exp.tab.c is generated in objdir from c-exp.y if it doesn't exist# in srcdir, then compiled in objdir to c-exp.tab.o.# If we said c-exp.tab.c rather than ./c-exp.tab.c some makes# would sometimes re-write it into $(srcdir)/c-exp.tab.c.# Remove bogus decls for malloc/realloc/free which conflict with everything# else. Strictly speaking c-exp.tab.c should therefore depend on# Makefile.in, but that was a pretty big annoyance.c-exp.tab.o: c-exp.tab.cc-exp.tab.c: c-exp.y $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- $(YFLAGS) -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ -e '/include.*malloc.h/d' \ -e 's/malloc/xmalloc/g' \ -e 's/realloc/xrealloc/g' \ -e '/^#line.*y.tab.c/d' \ < c-exp.tmp > c-exp.new -rm c-exp.tmp mv c-exp.new ./c-exp.tab.cjv-exp.tab.o: jv-exp.tab.cjv-exp.tab.c: jv-exp.y $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/jv-exp.y y.tab.c jv-exp.tmp -- $(YFLAGS) -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ -e '/include.*malloc.h/d' \ -e 's/malloc/xmalloc/g' \ -e 's/realloc/xrealloc/g' \ -e '/^#line.*y.tab.c/d' \ < jv-exp.tmp > jv-exp.new -rm jv-exp.tmp mv jv-exp.new ./jv-exp.tab.cf-exp.tab.o: f-exp.tab.cf-exp.tab.c: f-exp.y c-exp.tab.c $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/f-exp.y y.tab.c f-exp.tmp -- $(YFLAGS) -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ -e '/include.*malloc.h/d' \ -e 's/malloc/xmalloc/g' \ -e 's/realloc/xrealloc/g' \ -e '/^#line.*y.tab.c/d' \ < f-exp.tmp > f-exp.new -rm f-exp.tmp mv f-exp.new ./f-exp.tab.c# m2-exp.tab.c is generated in objdir from m2-exp.y if it doesn't exist# in srcdir, then compiled in objdir to m2-exp.tab.o.# Remove bogus decls for malloc/realloc/free which conflict with everything# else.m2-exp.tab.o: m2-exp.tab.cm2-exp.tab.c: m2-exp.y $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/m2-exp.y y.tab.c m2-exp.tmp -- $(YFLAGS) -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ -e '/include.*malloc.h/d' \ -e 's/malloc/xmalloc/g' \ -e 's/realloc/xrealloc/g' \ -e '/^#line.*y.tab.c/d' \ < m2-exp.tmp > m2-exp.new -rm m2-exp.tmp mv m2-exp.new ./m2-exp.tab.c# These files are updated atomically, so make never has to remove them.PRECIOUS: m2-exp.tab.c f-exp.tab.c c-exp.tab.c.PRECIOUS: jv-exp.tab.clint: $(LINTFILES) $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \ `echo $(DEPFILES) | sed 's/\.o /\.c /g'`gdb.cxref: $(SFILES) cxref -I. $(SFILES) >gdb.cxrefforce_update:# GNU Make has an annoying habit of putting *all* the Makefile variables# into the environment, unless you include this target as a circumvention.# Rumor is that this will be fixed (and this target can be removed)# in GNU Make 4.0..NOEXPORT:# GNU Make 3.63 has a different problem: it keeps tacking command line# overrides onto the definition of $(MAKE). This variable setting# will remove them.MAKEOVERRIDES=## This is ugly, but I don't want GNU make to put these variables in## the environment. Older makes will see this as a set of targets## with no dependencies and no actions.unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :ALLDEPFILES = 29k-share/udi/udip2soc.c 29k-share/udi/udr.c \ 29k-share/udi/udi2go32.c \ a29k-tdep.c a68v-nat.c alpha-nat.c alpha-tdep.c \ altos-xdep.c arm-convert.s \ arm-linux-nat.c arm-linux-tdep.c arm-tdep.c arm-xdep.c \ coff-solib.c convex-tdep.c convex-xdep.c \ core-sol2.c core-regset.c core-aout.c corelow.c \ dcache.c delta68-nat.c dpx2-nat.c dstread.c exec.c fork-child.c \ go32-nat.c h8300-tdep.c h8500-tdep.c \ hp300ux-nat.c hppa-tdep.c hppab-nat.c hppah-nat.c \ hp-psymtab-read.c hp-symtab-read.c \ i386-tdep.c i386b-nat.c i386mach-nat.c i386v-nat.c i386-linux-nat.c \ i386aix-nat.c i386m3-nat.c i386v4-nat.c i386ly-tdep.c \ i387-tdep.c \ i386-linux-tdep.c \ i960-tdep.c \ ia64-linux-nat.c ia64-tdep.c \ infptrace.c inftarg.c irix4-nat.c irix5-nat.c isi-xdep.c \ lynx-nat.c m3-nat.c \ m68k-tdep.c \ m88k-nat.c m88k-tdep.c mac-nat.c \ mcore-tdep.c \ mips-nat.c \ mips-tdep.c mipsm3-nat.c mipsv4-nat.c news-xdep.c \ nindy-share/Onindy.c nindy-share/nindy.c \ nindy-share/ttyflush.c nindy-tdep.c \ ns32k-tdep.c ns32km3-nat.c osfsolib.c \ somread.c somsolib.c $(HPREAD_SOURCE) \ ppc-linux-nat.c ppc-linux-tdep.c \ procfs.c pyr-tdep.c pyr-xdep.c \ remote-adapt.c remote-array.c remote-bug.c remote-e7000.c remote-eb.c \ remote-es.c remote-hms.c remote-mips.c \ remote-mm.c remote-nindy.c remote-os9k.c remote-rdp.c remote-sim.c \ remote-st.c remote-utils.c dcache.c \ remote-udi.c remote-vx.c remote-vx29k.c \ rs6000-nat.c rs6000-tdep.c \ ser-go32.c ser-pipe.c ser-ocd.c ser-tcp.c \ sh-tdep.c solib.c sparc-nat.c \ sparc-tdep.c sparcl-tdep.c sun3-nat.c sun386-nat.c \ symm-tdep.c symm-nat.c \ tahoe-tdep.c ultra3-nat.c ultra3-xdep.c umax-xdep.c \ vax-tdep.c \ vx-share/xdr_ld.c vx-share/xdr_ptrace.c vx-share/xdr_rdb.c \ win32-nat.c \ xcoffread.c xcoffsolib.c z8k-tdep.cudip2soc.o: $(srcdir)/29k-share/udi/udip2soc.c $(udiheaders) $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udip2soc.cudi2go32.o: $(srcdir)/29k-share/udi/udi2go32.c $(udiheaders) $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udi2go32.cudr.o: $(srcdir)/29k-share/udi/udr.c $(udiheaders) $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udr.ca29k-tdep.o: a29k-tdep.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h)a68v-nat.o: a68v-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)alpha-nat.o: alpha-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -