📄 makefile.in
字号:
###*######################################################################### Makefile to test the installation of g++ and libg++# (by hgs@cygnus.com)# # Usage: make foo_main test-90S test-90D PREFIX=prefix [other macros]srcdir = .prefix = /usr/localexec_prefix = $(prefix)bindir = $(exec_prefix)/binlibdir = $(exec_prefix)/libdatadir = $(prefix)/libmandir = $(prefix)/manman1dir = $(mandir)/man1man2dir = $(mandir)/man2man3dir = $(mandir)/man3man4dir = $(mandir)/man4man5dir = $(mandir)/man5man6dir = $(mandir)/man6man7dir = $(mandir)/man7man8dir = $(mandir)/man8man9dir = $(mandir)/man9infodir = $(prefix)/infoincludedir = $(prefix)/includedocdir = $(datadir)/docSHELL = /bin/shINSTALL = install -cINSTALL_PROGRAM = $(INSTALL)INSTALL_DATA = $(INSTALL)IO_DIR = iostreamCC = `if [ -f ../../gcc/gcc ] ; \ then echo ../../gcc/gcc -B../../gcc/ ; \ else echo cc ; fi`CXX = `if [ -f ../../gcc/gcc ] ; \ then echo ../../gcc/gcc -B../../gcc/ ; \ else echo gcc ; fi`LIBS = ../libg++.aXTRAFLAGS = `if [ -f ../../gcc/gcc ] ; \ then echo -I$(srcdir)/../../gcc/include ; \ else echo ; fi`WRAP_C_INCLUDES=-I$(srcdir)/../g++-include#### host, target, and site dependent Makefile fragments come in here.#### Compilation macros#PREFIX = $(prefix)CFLAGS =CXXFLAGS =CPP_FLAGS = #-I$(srcdir)/../g++-includeOPTIMIZE_FLAGS = -ODEBUG_FLAGS = -g -v #-WallCOMPILE_FLAGS=$(NOSTDINC) -I.. -I$(srcdir) -I$(srcdir)/../src -I$(srcdir)/../$(IO_DIR) $(WRAP_C_INCLUDES) $(XTRAFLAGS) ## Suffix rules#.SUFFIXES: .o .cc.cc.o: $(CXX) $(CXXFLAGS) $(COMPILE_FLAGS) -c $<DEPEND_SOURCES = $(srcdir)/*.cc###*########################################################################T90 = $(T90S) $(T90D)T90D = # dex_barFLAGS_90 = \ GXX="$(GXX)"\ CPP_FLAGS="$(CPP_FLAGS)"\ OPTIMIZE_FLAGS="$(OPTIMIZE_FLAGS)"\ DEBUG_FLAGS="$(DEBUG_FLAGS)"\ GXXLDFLAGS="$(GXXLDFLAGS)".PHONY: allall: foo_main.PHONY: checkcheck:.PHONY: infoinfo:.PHONY: install-infoinstall-info:.PHONY: clean-infoclean-info:help: @echo Usage: make foo_main test-40 test-90S test-90D PREFIX=prefix [other macros]test-90S: foo_main a btest-90D: dfoo_main da dbtest: $(TEST) for P in $(TEST) ; do if [ $$P != foo_main ]; then eval ./$$P; fi; done.PHONY: mostlyclean clean distclean realcleanmostlyclean: rm -f *.o foo_main a b dfoo_main da db core *foo_main.out *foo_main.diff *foo_main.runclean: mostlycleandistclean: clean rm -f *~ config.status Makefile $(TRASH_FILES)realclean: distclean rm -f dependa : a.o $(CXX) -o a a.o $(LIBS)da : a.o $(CXX) -o da -dynamic a.o $(LIBS)b : bf.o bm.o $(CXX) -o b bm.o bf.o $(LIBS)db : bf.o bm.o $(CXX) -o db -dynamic bm.o bf.o $(LIBS)foo_main: foo_main.diff @truedfoo_main: dfoo_main.diff @truefoo_main.run: foo_main.o foo_func.o Foo.o expected.out $(CXX) $(DEBUG_FLAGS) -o $@ foo_main.o foo_func.o Foo.ofoo_main.out: foo_main.run ./foo_main.run > foo_main.outfoo_main.diff: foo_main.out $(srcdir)/expected.out diff $(srcdir)/expected.out foo_main.out >foo_main.diffdfoo_main.run: foo_main.o foo_func.o Foo.o $(CXX) $(DEBUG_FLAGS) -o $@ -dynamic foo_main.o foo_func.o Foo.o $(LIBS)dfoo_main.out: dfoo_main.run ./dfoo_main.run > dfoo_main.outdfoo_main.diff: dfoo_main.out $(srcdir)/expected.out diff $(srcdir)/expected.out dfoo_main.outex_bar.o: ex_bar.cc $(CXX) -fhandle-exceptions ex_bar.ccex_bar: ex_bar.o $(CXX) $(DEBUG_FLAGS) -o $@ ex_bar.odex_bar: ex_bar.o $(CXX) $(DEBUG_FLAGS) -o $@ -dynamic ex_bar.o# --- Generate depend rules ---SRCDIR=$(srcdir)/..# The sed script below attempts to make the depend output portable by# making the output use the same macros used elsewhere in the Makefile:# - It replaces double // by a single /.# - It replaces include files that match part of the GXX_INCLUDE_DIRS# by names defined in terms of the macros used to define GXX_INCLUDE_DIRS.# - It removes any absolute include file names that remain.# - then remove lines, which contain only `\'#depend: depend.tmp if [ "x$(DEPEND_SOURCES)" != "x" ] ; then \ sed < depend.tmp \ -e 's|//|/|g' \ -e 's|$(srcdir)|$$(srcdir)|g' \ -e 's| /[^ ]*[.]h||g' \ -e 's|: *\$$(srcdir)/\(.*\.[cC]*\)|: \1|' \ -e '/^[ ]*\\$$/d' -e 's/^[ ]*$$//' \ | awk 'BEGIN { prev = "" } \ /^( )*$$/ { if (prev ~ /\\$$/) \ { prev = substr(prev,1,length(prev)-1); next } \ } \ { print prev; prev = $$0 } \ END { if (prev !~ /^( )*$$/) print prev }' \ > $(srcdir)/depend ;\ fidepend.tmp: $(DEPEND_SOURCES) if [ "x$(DEPEND_SOURCES)" = "x" ] ; then \ echo "" > $(srcdir)/depend ;\ else \ echo "" >depend.tmp ; \ $(SRCDIR)/utils/g++dep.sh -f depend.tmp $(GXX_INCLUDE_DIRS) \ $(DEPEND_SOURCES) ;\ fido_depend: depend if [ "$(SUBDIRS)" != "" ] ; then \ for D in $(SUBDIRS) x ; do \ if [ -d $$D ] ; then \ echo "cd $$D; $(MAKE) do_depend" ; \ (cd $$D ; $(MAKE) do_depend ); \ fi ; \ done ;\ fi Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) $(SHELL) ./config.status# DO NOT DELETE THIS LINE -- g++dep uses it.# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.Foo.o : Foo.cc \ $(srcdir)/Foo.ha.o : a.cc bf.o : bf.cc bm.o : bm.cc ex_bar.o : ex_bar.cc \ $(srcdir)/ex_bar.ccfoo_func.o : foo_func.cc \ $(srcdir)/Foo.hfoo_main.o : foo_main.cc \ $(srcdir)/Foo.h# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -