makefile

来自「一个用来实现偏微分方程中网格的计算库」· 代码 · 共 83 行

TXT
83
字号
# $Id: Makefile 2501 2007-11-20 02:33:29Z benkirk $# 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  := ./ex14-$(METHOD)#ifeq ($(petsc-version), 2.3.0)#args := -pc_type jacobi #ILU detects 0 pivot in petsc 2.3.0#args := -pc_type ilu -pc_ilu_levels 4#endifall:: $(target)# Production rules:  how to make the target - depends on library configuration$(target): $(objects)	@echo "Linking "$(target)"..."	@$(libmesh_CXX) $(libmesh_CXXFLAGS) $(objects) -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)	@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 + =
减小字号Ctrl + -
显示快捷键?