⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.in

📁 早期freebsd实现
💻 IN
📖 第 1 页 / 共 2 页
字号:
# in another process.gdb1: gdb	rm -f gdb1	cp gdb gdb1# This is a remote stub which runs under unix and starts up an# inferior process.  This is at least useful for debugging GDB's# remote support.rapp: $(RAPP_OBS)	rm -f rapp_init.c	${srcdir}/munch ${MUNCH_DEFINE} ${RAPP_OBS} > rapp_init.c	${CC-LD} $(LDFLAGS) -o $@ rapp_init.c $(RAPP_OBS)	# Support for building Makefile out of configured pieces, automatically# generated dependencies, etc.  alldeps.mak is a file that contains# "make" variable definitions for all ALLDEPFILES, ALLDEPFILES_MAINDIR,# ALLDEPFILES_SUBDIR, ALLPARAM, and ALLCONFIG, all cadged from the current# contents of the config subdirectory.alldeps.mak: ${srcdir}/config	rm -f alldeps.mak alldeps.tmp allparam.tmp allconfig.tmp	for i in `ls -d ${srcdir}/config/*.m[ht]` ; do \	  echo $$i >>allconfig.tmp; \	  awk <$$i ' \	    $$1 == "TDEPFILES=" || $$1 == "XDEPFILES=" \		|| $$1 == "NATDEPFILES=" { \	      for (i = 2; i <= NF; i++) \	        print $$i >> "alldeps.tmp" ; \            } \	    $$1 == "TM_FILE=" || $$1 == "XM_FILE=" || $$1 == "NAT_FILE" { \	      print $$2 >> "allparam.tmp" }' ; \	done	sort <alldeps.tmp | uniq | \	  sed -e 's/arm-convert.o/arm-convert.s/' \	      -e 's!^Onindy.o!nindy-share/Onindy.c!' \	      -e 's!^nindy.o!nindy-share/nindy.c!' \	      -e 's!ttybreak.o!nindy-share/ttybreak.c!' \	      -e 's!ttyflush.o!nindy-share/ttyflush.c!' \	      -e 's!xdr_ld.o!vx-share/xdr_ld.c!' \	      -e 's!xdr_ptrace.o!vx-share/xdr_ptrace.c!' \	      -e 's!xdr_rdb.o!vx-share/xdr_rdb.c!' \	      -e 's!xdr_regs.o!vx-share/xdr_regs.c!' \	      -e 's/\.o/.c/' \	    >alldeps2.tmp	echo '# Start of "alldeps.mak" definitions' \	    >>alldeps.mak;	echo 'ALLDEPFILES = $$(ALLDEPFILES_MAINDIR) $$(ALLDEPFILES_SUBDIR)' \	    >>alldeps.mak;	grep -v / alldeps2.tmp | \	  awk 'BEGIN {printf "ALLDEPFILES_MAINDIR="} \	    NR == 0 {printf $$0;} \	    NR != 0 {printf "\\\n" $$0} \	    END {printf "\n\n"}' >>alldeps.mak;	grep / alldeps2.tmp | \	  awk 'BEGIN {printf "ALLDEPFILES_SUBDIR="} \	    NR == 0 {printf $$0;} \	    NR != 0 {printf "\\\n" $$0} \	    END {printf "\n\n"}' >>alldeps.mak;	sort <allparam.tmp | uniq | awk 'BEGIN {printf "ALLPARAM="} \	    NR == 0 {printf $$0;} \	    NR != 0 {printf "\\\n" $$0} \	    END {printf "\n\n"}' >>alldeps.mak;	sort <allconfig.tmp | uniq | awk 'BEGIN {printf "ALLCONFIG="} \	    NR == 0 {printf $$0;} \	    NR != 0 {printf "\\\n" $$0} \	    END {printf "\n\n"}' >>alldeps.mak;	echo '# End of "alldeps.mak" definitions' \	    >>alldeps.mak;	rm -f alldeps.tmp alldeps2.tmp allparam.tmp allconfig.tmp# The sed script makes everything which depends on {x,t}m.h depend on# config.status as well, in case someone reconfigures gdb out from# under an already compiled gdb.depend: $(SOURCES) Makefile.in	@echo Ignore errors about non-existent system-supplied include files	@echo for systems other than the one you are using.	@echo Also ignore parse errors in valops.c, and any errors in	@echo arm-convert.s.	touch xm.h tm.h	-$(GCC) -MM -nostdinc -I/usr/include $(CFLAGS) -I$(BFD_DIR) \	  -I${READLINE_DIR} $(INCLUDE_CFLAGS) \	  `ls $(SOURCES) | grep -v '\.[hy]$$' | \	  sort -u` >depend.tmp# If running in srcdir, translate "./foo.c" into "$srcdir/foo.c" except# for xm.h and tm.h.  This allows the same "depend" file to be used# by the various subdirectories.	if [ "${srcdir}" = "." ] ; then \	  <depend.tmp sed \	    -e 's; ./xm.h; xm.h;g'  \	    -e 's; ./tm.h; tm.h;g'  \	    -e 's; \./; $${srcdir}/;g'  \	    -e 's; vx-share/; $${srcdir}/vx-share/;g'  \	    -e 's; nindy-share/; $${srcdir}/nindy-share/;g'  \	    >depend.tm2; \	  rm depend.tmp; \	  mv depend.tm2 depend.tmp; \	fi	<depend.tmp sed \	  -e 's; [xt]m.h;& config.status;g'  \	  -e 's; $(INCLUDE_DIR)/; $(INCLUDE_DEP)/;g'  \	  -e 's; $(READLINE_DIR)/; $(READLINE_DEP)/;g'  \	  -e 's; [a-z0-9./]*bfd/; $(BFD_DEP)/;g'  \	  -e 's; ./xm.h; xm.h config.status;g'  \	  -e 's; ./tm.h; tm.h config.status;g'  \	  >depend	rm depend.tmpconfig.status:	@echo "You must configure gdb.  Look at the README file for details."	@false# This checks the configure.in file versus the config/ directory.config-check: config-check-hosts config-check-targetsconfig-check-hosts:	grep gdb_host= ${srcdir}/configure.in | \		sed -e 's/.*gdb_host=//' -e 's/ ;;$$/.mh/' | sort -u >HOSTconf.o	(cd ${srcdir}/config; ls *.mh) >HOSTdir.o	diff -u HOSTconf.o HOSTdir.oconfig-check-targets:	grep gdb_target= ${srcdir}/configure.in | \		sed -e 's/.*gdb_target=//' -e 's/ ;;$$/.mh/' | sort -u >TARGconf.o	(cd ${srcdir}/config; ls *.mt) >TARGdir.o	diff -u HOSTconf.o HOSTdir.o# 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-68k.htm-hp300hpux.h tm-sun2.h tm-3b1.h: tm-68k.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}	rm -f init.c	$(srcdir)/munch ${MUNCH_DEFINE} $(OBS) $(NTSOBS) > init.c	$(CC) $(LDFLAGS) -c init.c $(CLIBS) 	ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \	  -lc $(CLIBS)# Put the proper machine-specific files first.# createtags will edit the .o in DEPFILES into .cTAGS: ${TAGFILES}	$(srcdir)/createtags $(TM_FILE) ${XM_FILE} ${NAT_FILE} \			     $(DEPFILES) ${TAGFILES}tags: TAGS# Making distributions of GDB and friends.# Make a directory `proto-gdb.dir' that contains an image of the GDB# directory of the distribution, built up with symlinks.make-proto-gdb.dir: force_update 	$(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist	$(MAKE) $(MFLAGS) -f Makefile    make-proto-gdb-1# Make a tar file containing the GDB directory of the distribution.gdb.tar.Z: force_update	$(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist	$(MAKE) $(MFLAGS) -f Makefile.in gdb-$(VERSION).tar.Z# Update the "alldeps.mak" file in a source directory.update-alldeps: force_update	../configure none -norecursion	rm -f alldeps.mak	$(MAKE) $(MFLAGS) alldeps.mak# Update the "depend" and "alldeps.mak" files in a source directory.# We update alldeps.mak first, since it is used to generate the list# of files to be checked for dependencies.update-depend: update-alldeps force_update	../configure none -norecursion	rm -f depend	$(MAKE) $(MFLAGS) depend# Set up the GDB source directory for distribution, by building all files that# are products of other files.setup-to-dist: update-depend force_update	../configure none	(cd doc; $(MAKE) $(MFLAGS) gdbVN.m4)	$(MAKE) $(MFLAGS) gdb.info	$(MAKE) $(MFLAGS) refcard.ps# Build a tar file from a proto-gdb.dir.gdb-$(VERSION).tar.Z: force_update	rm -f gdb.tar gdb-$(VERSION).tar.Z	$(MAKE) $(MFLAGS) -f Makefile    make-proto-gdb-1	ln -s proto-gdb.dir $(DIST)	tar chf - $(DIST) | compress >gdb-$(VERSION).tar.Z	rm -rf $(DIST) proto-gdb.dir# Build a proto-gdb.dir after GDB has been set up for distribution.# This stuff must be run in `Makefile', not `Makefile.in`; we use the makefile# built in the setup-to-dist process, since it defines things like ALLCONFIG# and ALLDEPFILES, that we need.make-proto-gdb-1: ${TARFILES} ${TARDIRS} gdb.info	rm -rf proto-gdb.dir	mkdir proto-gdb.dir	cd proto-gdb.dir ; for i in ${TARFILES} ; do ln -s ../$$i . ; done	cd proto-gdb.dir ; ln -s ../${INFOFILES} .	cd proto-gdb.dir ; for i in ${TARDIRS}; do \	  mkdir $$i; cd $$i; \	  ln -s ../../$$i/* .; \	  rm -rf SCCS CVS.adm RCS config.status; \	  if test -f Makefile.in; then rm Makefile; else true; fi; done	mkdir proto-gdb.dir/config	cd proto-gdb.dir/config ; \	  for i in $(ALLCONFIG) ; do ln -s ../../$$i ../$$i ; done	mkdir proto-gdb.dir/vx-share proto-gdb.dir/nindy-share	cd proto-gdb.dir/config ; \	  for i in $(SFILES_SUBDIR) $(NONSRC_SUBDIR) $(ALLDEPFILES_SUBDIR); \	    do ln -s ../../$$i ../$$i ; done	chmod og=u `find . -print`clean:	rm -f *.o ${ADD_FILES} *~	rm -f init.c version.c	rm -f gdb core gdb.tar gdb.tar.Z make.log	rm -f gdb[0-9]	rm -f xgdb.o xgdb	@$(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)distclean: clean c-exp.tab.c m2-exp.tab.c TAGS	rm -f tm.h xm.h config.status	rm -f y.output yacc.acts yacc.tmp	rm -f ${TESTS} Makefile depend	@$(MAKE) subdir_do DO=distclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)realclean: clean	rm -f c-exp.tab.c m2-exp.tab.c TAGS	rm -f tm.h xm.h config.status	rm -f Makefile depend	@$(MAKE) subdir_do DO=realclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)STAGESTUFF=${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES} init.c init.o version.c gdbsubdir_do: force	@for i in $(DODIRS); do \		if [ -d ./$$i ] ; then \			if (cd ./$$i; \				$(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \			else exit 1 ; fi ; \		else true ; fi ; \	doneMakefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)	$(SHELL) ./config.statusforce:# Documentation!# GDB QUICK REFERENCE (TeX dvi file, CM fonts)refcard.dvi: $(srcdir)/doc/refcard.tex	( cd ./doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS) )	mv ./doc/refcard.dvi .# GDB QUICK REFERENCE (PostScript output, common PS fonts)refcard.ps: $(srcdir)/doc/refcard.tex	( cd ./doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS) )	mv ./doc/refcard.ps .# GDB MANUAL: TeX dvi filegdb.dvi: ./doc/gdb-all.texi	( cd ./doc; $(MAKE) M4=$(M4) gdb.dvi $(FLAGS_TO_PASS) )	mv ./doc/gdb.dvi .# GDB MANUAL: info filegdb.info: ./doc/gdb-all.texi	( cd ./doc; $(MAKE) M4=$(M4) gdb.info $(FLAGS_TO_PASS) )	mv ./doc/gdb.info* ../doc/gdb-all.texi:	(cd ./doc; $(MAKE) M4=$(M4) gdb-all.texi $(FLAGS_TO_PASS) )# Make copying.c from COPYINGcopying.c: ${srcdir}/COPYING ${srcdir}/copying.awk	awk -f ${srcdir}/copying.awk < ${srcdir}/COPYING > copying.cversion.c: Makefile	echo 'char *version = "$(VERSION)";' >version.c# c-exp.tab.c is generated in target dir from c-exp.y if it doesn't exist# in srcdir, then compiled in target dir to c-exp.tab.o.# Remove bogus decls for malloc/realloc/free which conflict with everything# else.c-exp.tab.o: c-exp.tab.cc-exp.tab.c: $(srcdir)/c-exp.y	@echo 'Expect 4 shift/reduce conflicts.'	${YACC} $(srcdir)/c-exp.y	-sed -e '/extern.*malloc/d' \	     -e '/extern.*realloc/d' \	     -e '/extern.*free/d' \	  < y.tab.c > c-exp.tab.c	-rm y.tab.c# m2-exp.tab.c is generated in target dir from m2-exp.y if it doesn't exist# in srcdir, then compiled in target dir to m2-exp.tab.o.m2-exp.tab.o: m2-exp.tab.cm2-exp.tab.c: $(srcdir)/m2-exp.y	${YACC} $(srcdir)/m2-exp.y	-sed -e '/extern.*malloc/d' \	     -e '/extern.*realloc/d' \	     -e '/extern.*free/d' \	  < y.tab.c > m2-exp.tab.c	-rm y.tab.cxgdb.o: defs.h symtab.h frame.hmain.o:	${srcdir}/main.c	${CC} -c ${INTERNAL_CFLAGS} -I${READLINE_DIR} $<# The symbol-file readers have dependencies on BFD header files.dbxread.o: ${srcdir}/dbxread.c	${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/dbxread.ccoffread.o: ${srcdir}/coffread.c	${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/coffread.cmipsread.o: ${srcdir}/mipsread.c	${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/mipsread.celfread.o: ${srcdir}/elfread.c	${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/elfread.cdwarfread.o: ${srcdir}/dwarfread.c	${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/dwarfread.cstabsread.o: ${srcdir}/stabsread.c	${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/stabsread.cxcoffread.o: ${srcdir}/xcoffread.c	${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/xcoffread.cxcoffexec.o: ${srcdir}/xcoffexec.c	${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/xcoffexec.c# Drag in the files that are in another directory.xdr_ld.o: ${srcdir}/vx-share/xdr_ld.c	${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_ld.cxdr_ptrace.o: ${srcdir}/vx-share/xdr_ptrace.c	${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_ptrace.cxdr_rdb.o: ${srcdir}/vx-share/xdr_rdb.c	${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_rdb.cxdr_regs.o: ${srcdir}/vx-share/xdr_regs.c	${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_regs.cnindy.o: ${srcdir}/nindy-share/nindy.c	${CC} -c ${INTERNAL_CFLAGS} -DSTRIP='"$(tooldir)/bin/strip"' \		${srcdir}/nindy-share/nindy.cOnindy.o: ${srcdir}/nindy-share/Onindy.c	${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/Onindy.cttybreak.o: ${srcdir}/nindy-share/ttybreak.c	${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/ttybreak.cttyflush.o: ${srcdir}/nindy-share/ttyflush.c	${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/ttyflush.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:# This is the end of "Makefile.in".  When built into "Makefile"# by the configure script, two things are added below this point:# 	alldeps.mak -- defintions of all files that are used in#			host- or target-dependent configurations#	depend -- what .o files depend on what .c and .h files,#			for all configurations.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -