📄 makefile
字号:
# $Id: Makefile 2867 2008-06-16 15:21:42Z jwpeterson $# The location of the mesh librarymeshdir := ../..# include the library options determined by configure. This will# set the variables INCLUDE and LIBS that we will need to build and# link with the library.include $(meshdir)/Make.common################################################################################ File management. This is where the source, header, and object files are# defined## source filessrcfiles := $(wildcard *.C)## object filesobjects := $(patsubst %.C, %.$(obj-suffix), $(srcfiles))###############################################################################.PHONY: clean clobber distclean################################################################################ Target:#target := ./ex13-$(METHOD)#target := ex13 ex13_nonlinearall:: $(target)# Production rules: how to make the target - depends on library configuration%-$(METHOD): $(patsubst %.C, %.$(obj-suffix), %.C) @echo "Linking "$@"..." @$(libmesh_CXX) $(libmesh_CXXFLAGS) $< -o $@ $(libmesh_LIBS) $(libmesh_LDFLAGS)# Useful rules.clean: @rm -f $(objects) *.gmv.* *~clobber: @$(MAKE) clean @rm -f $(target) out*.gmvdistclean: @$(MAKE) clobber @rm -f *.o *.g.o *.pg.orun: $(target) @echo "***************************************************************" @echo "* Running Example " $(LIBMESHRUN) $(target) $(LIBMESHOPTIONS) @echo "***************************************************************" @echo " " @$(LIBMESHRUN) $(target) $(LIBMESHOPTIONS) @#./ex13_nonlinear -snes_ls cubic -snes_max_it 10 -ksp_rtol 1.e-3 -ksp_max_it 50 -ksp_xmonitor -ksp_gmres_restart 25 -snes_mf_operator -snes_view @echo " " @echo "***************************************************************" @echo "* Done Running Example " $(LIBMESHRUN) $(target) $(LIBMESHOPTIONS) @echo "***************************************************************"# include the dependency listinclude .depend## Dependencies#.depend: @$(perl) $(meshdir)/contrib/bin/make_dependencies.pl -I. $(foreach i, $(wildcard $(meshdir)/include/*), -I$(i)) "-S\$$(obj-suffix)" $(srcfiles) > .depend @echo "Updated .depend"###############################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -