111b6ed10SLois Curfman McInnes# 2cfd69a58SBarry Smith# This is the makefile for installing PETSc. See the file 3cfd69a58SBarry Smith# Installation for directions on installing PETSc. 4cfd69a58SBarry Smith# See also bmake/common for additional commands. 511b6ed10SLois Curfman McInnes# 611b6ed10SLois Curfman McInnes 7ab94cc7aSSatish BalayCFLAGS = 861523587SBarry SmithSOURCEC = 961523587SBarry SmithSOURCEF = 105eea60f9SBarry SmithDOCS = Changes Machines Readme maint/addlinks \ 1143a90d84SBarry Smith maint/builddist FAQ Installation BugReporting\ 12deb7fc1cSBarry Smith maint/buildlinks maint/wwwman maint/xclude maint/crontab\ 13630a6785SBarry Smith bmake/common bmake/*/base* maint/autoftp docs/www/sec/* \ 14630a6785SBarry Smith include/finclude/generateincludes bin/petscviewinfo.text \ 15630a6785SBarry Smith bin/petscoptsinfo.text 1661523587SBarry SmithOBJSC = 1761523587SBarry SmithOBJSF = 1861523587SBarry SmithLIBBASE = libpetscvec 19b16a3bb1SBarry SmithDIRS = src include docs 2061523587SBarry Smith 214e627d3aSBarry Smithinclude $(PETSC_DIR)/bmake/$(PETSC_ARCH)/base 2261523587SBarry Smith 2311b6ed10SLois Curfman McInnes# Builds PETSc libraries for a given BOPT and architecture 247857610eSBarry Smithall: chkpetsc_dir 25511caf8eSSatish Balay -$(RM) -f $(PDIR)/* 260b3634f8SBarry Smith -@echo "Beginning to compile libraries in all directories" 27*1d91fb6eSBarry Smith -@echo On `date` on `hostname` 2847794344SBarry Smith -@echo "Using compiler: $(CC) $(COPTFLAGS)" 2947794344SBarry Smith -@echo "-----------------------------------------" 30b14e8f29SBarry Smith -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 3147794344SBarry Smith -@echo "-----------------------------------------" 32b14e8f29SBarry Smith -@echo "Using configuration flags: $(CONF)" 3347794344SBarry Smith -@echo "-----------------------------------------" 34b14e8f29SBarry Smith -@echo "Using include paths: $(PETSC_INCLUDE)" 3547794344SBarry Smith -@echo "-----------------------------------------" 36c2c9bc36SBarry Smith -@echo "Using PETSc directory: $(PETSC_DIR)" 37c2c9bc36SBarry Smith -@echo "Using PETSc arch: $(PETSC_ARCH)" 3847794344SBarry Smith -@echo "=========================================" 39e35bd481SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 40f3848965SBarry Smith ACTION=libfast tree 41f88f42abSSatish Balay -@cd $(PETSC_DIR)/src/sys/src ; \ 42f88f42abSSatish Balay $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) rs6000_time 434e04c1a0SBarry Smith $(RANLIB) $(PDIR)/*.a 440be1b381SSatish Balay -@chmod g+w $(PDIR)/*.a 450b3634f8SBarry Smith -@echo "Completed building libraries" 4647794344SBarry Smith -@echo "=========================================" 470b3634f8SBarry Smith 480b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture 49a9369724SSatish Balaytestexamples: chkopts 500b3634f8SBarry Smith -@echo "Beginning to compile and run test examples" 51*1d91fb6eSBarry Smith -@echo On `date` on `hostname` 5247794344SBarry Smith -@echo "Using compiler: $(CC) $(COPTFLAGS)" 5347794344SBarry Smith -@echo "-----------------------------------------" 54b14e8f29SBarry Smith -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 5547794344SBarry Smith -@echo "-----------------------------------------" 56b14e8f29SBarry Smith -@echo "Using include paths: $(PETSC_INCLUDE)" 5747794344SBarry Smith -@echo "-----------------------------------------" 58c2c9bc36SBarry Smith -@echo "Using PETSc directory: $(PETSC_DIR)" 59c2c9bc36SBarry Smith -@echo "Using PETSc arch: $(PETSC_ARCH)" 60c2c9bc36SBarry Smith -@echo "------------------------------------------" 619c69534bSBarry Smith -@echo "Using linker: $(CLINKER)" 629c69534bSBarry Smith -@echo "Using libraries: $(PETSC_LIB)" 630b3634f8SBarry Smith -@echo "------------------------------------------" 64eb817c50SBarry Smith -@echo "Due to different numerical round-off on certain" 65eb817c50SBarry Smith -@echo "machines some of the numbers may not match exactly." 6647794344SBarry Smith -@echo "=========================================" 670b3634f8SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 680b3634f8SBarry Smith ACTION=testexamples_1 tree 690b3634f8SBarry Smith -@echo "Completed compiling and running test examples" 7047794344SBarry Smith -@echo "=========================================" 710b3634f8SBarry Smith 720b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture 73a9369724SSatish Balaytestexamples_uni: chkopts 748475343bSBarry Smith -@echo "Beginning to compile and run uniprocessor test examples" 75*1d91fb6eSBarry Smith -@echo On `date` on `hostname` 7647794344SBarry Smith -@echo "Using compiler: $(CC) $(COPTFLAGS)" 778475343bSBarry Smith -@echo "Using linker: $(CLINKER)" 7847794344SBarry Smith -@echo "------------------------------------------" 79b14e8f29SBarry Smith -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 8047794344SBarry Smith -@echo "------------------------------------------" 81b14e8f29SBarry Smith -@echo "Using include paths: $(PETSC_INCLUDE)" 8247794344SBarry Smith -@echo "------------------------------------------" 83d6db1478SLois Curfman McInnes -@echo "Using PETSc directory: $(PETSC_DIR)" 84d6db1478SLois Curfman McInnes -@echo "Using PETSc arch: $(PETSC_ARCH)" 85d6db1478SLois Curfman McInnes -@echo "------------------------------------------" 86d6db1478SLois Curfman McInnes -@echo "Using linker: $(CLINKER)" 878475343bSBarry Smith -@echo "Using libraries: $(PETSC_LIB)" 888475343bSBarry Smith -@echo "------------------------------------------" 898475343bSBarry Smith -@echo "Due to different numerical round-off on certain" 908475343bSBarry Smith -@echo "machines some of the numbers may not match exactly." 9147794344SBarry Smith -@echo "=========================================" 928475343bSBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 938475343bSBarry Smith ACTION=testexamples_4 tree 948475343bSBarry Smith -@echo "Completed compiling and running uniprocessor test examples" 9547794344SBarry Smith -@echo "=========================================" 968475343bSBarry Smith 9735ca7349SBarry Smith# 9811b6ed10SLois Curfman McInnes# Builds PETSc Fortran interface libary 9911b6ed10SLois Curfman McInnes# Note: libfast cannot run on .F files on certain machines, so we 10035ca7349SBarry Smith# use lib and check for errors here. 10183f0b094SBarry Smithfortran: chkpetsc_dir 102727c161cSBarry Smith -$(RM) -f $(PDIR)/libpetscfortran.* 1030b3634f8SBarry Smith -@echo "Beginning to compile Fortran interface library" 104*1d91fb6eSBarry Smith -@echo On `date` on `hostname` 10526de76a5SSatish Balay -@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)" 10647794344SBarry Smith -@echo "Using C/C++ compiler: $(CC) $(COPTFLAGS)" 10747794344SBarry Smith -@echo "------------------------------------------" 108fc939babSLois Curfman McInnes -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 10947794344SBarry Smith -@echo "------------------------------------------" 110fc939babSLois Curfman McInnes -@echo "Using configuration flags: $(CONF)" 11147794344SBarry Smith -@echo "------------------------------------------" 112fc939babSLois Curfman McInnes -@echo "Using include paths: $(PETSC_INCLUDE)" 11347794344SBarry Smith -@echo "------------------------------------------" 114d6db1478SLois Curfman McInnes -@echo "Using PETSc directory: $(PETSC_DIR)" 115d6db1478SLois Curfman McInnes -@echo "Using PETSc arch: $(PETSC_ARCH)" 11647794344SBarry Smith -@echo "=========================================" 117b16a3bb1SBarry Smith -@cd src/fortran/custom; \ 11835ca7349SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \ 11935ca7349SBarry Smith grep -v clog trashz | grep -v "information sections" | \ 12035ca7349SBarry Smith egrep -i '(Error|warning|Can)' >> /dev/null;\ 12135ca7349SBarry Smith if [ "$$?" != 1 ]; then \ 12235ca7349SBarry Smith cat trashz ; fi; $(RM) trashz 123b16a3bb1SBarry Smith -@cd src/fortran/auto; \ 12435ca7349SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) libfast 12583f0b094SBarry Smith $(RANLIB) $(PDIR)/libpetscfortran.a 1260be1b381SSatish Balay -@chmod g+w $(PDIR)/*.a 1270b3634f8SBarry Smith -@echo "Completed compiling Fortran interface library" 12847794344SBarry Smith -@echo "=========================================" 12983f0b094SBarry Smith 130727c161cSBarry Smith# Builds PETSc test examples for a given BOPT and architecture 131a9369724SSatish Balaytestfortran: chkopts 132727c161cSBarry Smith -@echo "Beginning to compile and run Fortran test examples" 133*1d91fb6eSBarry Smith -@echo On `date` on `hostname` 134727c161cSBarry Smith -@echo "Using compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)" 135727c161cSBarry Smith -@echo "Using linker: $(FLINKER)" 136727c161cSBarry Smith -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 13747794344SBarry Smith -@echo "------------------------------------------" 138727c161cSBarry Smith -@echo "Using PETSc directory: $(PETSC_DIR)" 139727c161cSBarry Smith -@echo "Using PETSc arch: $(PETSC_ARCH)" 140727c161cSBarry Smith -@echo "------------------------------------------" 141727c161cSBarry Smith -@echo "Using linker: $(FLINKER)" 142727c161cSBarry Smith -@echo "Using libraries: $(PETSC_FORTRAN_LIB) $(PETSC_LIB)" 14347794344SBarry Smith -@echo "=========================================" 144e4ef9893SBarry Smith -@echo "Due to different numerical round-off on certain" 145e4ef9893SBarry Smith -@echo "machines or the way Fortran formats numbers" 146e4ef9893SBarry Smith -@echo "some of the results may not match exactly." 147e4ef9893SBarry Smith -@echo "=========================================" 148e4ef9893SBarry Smith -@echo "On some machines you may get messages of the form" 149e4ef9893SBarry Smith -@echo "PetscScalarAddressToFortran:C and Fortran arrays are" 150e4ef9893SBarry Smith -@echo "not commonly aligned or are too far apart to be indexed" 151e4ef9893SBarry Smith -@echo "by an integer. Locations: C xxxc Fortran xxxf" 152e4ef9893SBarry Smith -@echo "Locations/sizeof(Scalar): C yyc Fortran yyf" 153e4ef9893SBarry Smith -@echo "This indicates that you may not be able to use the" 154e4ef9893SBarry Smith -@echo "PETSc routines VecGetArray() and MatGetArray() from Fortran" 155e4ef9893SBarry Smith -@echo "=========================================" 156727c161cSBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 157727c161cSBarry Smith ACTION=testexamples_3 tree 158727c161cSBarry Smith -@echo "Completed compiling and running Fortran test examples" 15947794344SBarry Smith -@echo "=========================================" 160727c161cSBarry Smith 161b1f85764SBarry Smith# 162b1f85764SBarry Smith# Builds PETSc Fortran90 interface libary 163b1f85764SBarry Smith# Note: libfast cannot run on .F files on certain machines, so we 164b1f85764SBarry Smith# use lib and check for errors here. 165b1f85764SBarry Smith# Note: F90 interface currently only supported in NAG F90 compiler 166d7f8d646SSatish Balayfortran90: chkpetsc_dir fortran 167b1f85764SBarry Smith -@echo "Beginning to compile Fortran90 interface library" 168*1d91fb6eSBarry Smith -@echo On `date` on `hostname` 169b1f85764SBarry Smith -@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)" 170b1f85764SBarry Smith -@echo "Using C/C++ compiler: $(CC) $(COPTFLAGS)" 171b1f85764SBarry Smith -@echo "------------------------------------------" 172b1f85764SBarry Smith -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 173b1f85764SBarry Smith -@echo "------------------------------------------" 174b1f85764SBarry Smith -@echo "Using configuration flags: $(CONF)" 175b1f85764SBarry Smith -@echo "------------------------------------------" 176b1f85764SBarry Smith -@echo "Using include paths: $(PETSC_INCLUDE)" 177b1f85764SBarry Smith -@echo "------------------------------------------" 178b1f85764SBarry Smith -@echo "Using PETSc directory: $(PETSC_DIR)" 179b1f85764SBarry Smith -@echo "Using PETSc arch: $(PETSC_ARCH)" 180b1f85764SBarry Smith -@echo "=========================================" 181b1f85764SBarry Smith -@cd src/fortran/f90; \ 182b1f85764SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \ 183b1f85764SBarry Smith grep -v clog trashz | grep -v "information sections" | \ 184b1f85764SBarry Smith egrep -i '(Error|warning|Can)' >> /dev/null;\ 185b1f85764SBarry Smith if [ "$$?" != 1 ]; then \ 186b1f85764SBarry Smith cat trashz ; fi; $(RM) trashz 187b1f85764SBarry Smith $(RANLIB) $(PDIR)/libpetscfortran.a 1880be1b381SSatish Balay -@chmod g+w $(PDIR)/*.a 189b1f85764SBarry Smith -@echo "Completed compiling Fortran90 interface library" 190b1f85764SBarry Smith -@echo "=========================================" 191b1f85764SBarry Smith 192ad96cc0dSLois Curfman McInnes# Builds noise routines (not yet publically available) 193ad96cc0dSLois Curfman McInnes# Note: libfast cannot run on .F files on certain machines, so we 194ad96cc0dSLois Curfman McInnes# use lib and check for errors here. 195ad96cc0dSLois Curfman McInnesnoise: chkpetsc_dir 196ad96cc0dSLois Curfman McInnes -@echo "Beginning to compile noise routines" 197ad96cc0dSLois Curfman McInnes -@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)" 198ad96cc0dSLois Curfman McInnes -@echo "Using C/C++ compiler: $(CC) $(COPTFLAGS)" 199ad96cc0dSLois Curfman McInnes -@echo "------------------------------------------" 200ad96cc0dSLois Curfman McInnes -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 201ad96cc0dSLois Curfman McInnes -@echo "------------------------------------------" 202ad96cc0dSLois Curfman McInnes -@echo "Using configuration flags: $(CONF)" 203ad96cc0dSLois Curfman McInnes -@echo "------------------------------------------" 204ad96cc0dSLois Curfman McInnes -@echo "Using include paths: $(PETSC_INCLUDE)" 205ad96cc0dSLois Curfman McInnes -@echo "------------------------------------------" 206ad96cc0dSLois Curfman McInnes -@echo "Using PETSc directory: $(PETSC_DIR)" 207ad96cc0dSLois Curfman McInnes -@echo "Using PETSc arch: $(PETSC_ARCH)" 208ad96cc0dSLois Curfman McInnes -@echo "=========================================" 209ad96cc0dSLois Curfman McInnes -@cd src/snes/interface/noise; \ 210ad96cc0dSLois Curfman McInnes $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \ 211ad96cc0dSLois Curfman McInnes grep -v clog trashz | grep -v "information sections" | \ 212ad96cc0dSLois Curfman McInnes egrep -i '(Error|warning|Can)' >> /dev/null;\ 213ad96cc0dSLois Curfman McInnes if [ "$$?" != 1 ]; then \ 214ad96cc0dSLois Curfman McInnes cat trashz ; fi; $(RM) trashz 215ad96cc0dSLois Curfman McInnes $(RANLIB) $(PDIR)/libpetscsnes.a 216ad96cc0dSLois Curfman McInnes -@chmod g+w $(PDIR)/libpetscsnes.a 217ad96cc0dSLois Curfman McInnes -@echo "Completed compiling noise routines" 218ad96cc0dSLois Curfman McInnes -@echo "=========================================" 219ad96cc0dSLois Curfman McInnes 220ad96cc0dSLois Curfman McInnes 2218c37ef55SBarry Smithranlib: 2224e04c1a0SBarry Smith $(RANLIB) $(PDIR)/*.a 22361523587SBarry Smith 22411b6ed10SLois Curfman McInnes# Deletes PETSc libraries 22561523587SBarry Smithdeletelibs: 2264e04c1a0SBarry Smith -$(RM) -f $(PDIR)/*.a $(PDIR)/complex/* $(PDIR)/c++/* 227d44968ceSBarry Smith 22811b6ed10SLois Curfman McInnes# Deletes man pages (HTML version) 229b346654fSBarry Smithdeletewwwpages: 230dea827f2SLois Curfman McInnes $(RM) -f $(PETSC_DIR)/docs/www/man*/* $(PETSC_DIR)/docs/www/www.cit \ 231dea827f2SLois Curfman McInnes $(PETSC_DIR)/docs/www/man*.html 232b346654fSBarry Smith 23311b6ed10SLois Curfman McInnes# Deletes man pages (LaTeX version) 234b346654fSBarry Smithdeletelatexpages: 2357857610eSBarry Smith $(RM) -f $(PETSC_DIR)/docs/tex/rsum/*sum*.tex 23620563c6bSBarry Smith 2377acb7333SLois Curfman McInnes# To access the tags in emacs, type M-x visit-tags-table and specify 2387acb7333SLois Curfman McInnes# the file petsc/TAGS. Then, to move to where a PETSc function is 2397acb7333SLois Curfman McInnes# defined, enter M-. and the function name. To search for a string 2407acb7333SLois Curfman McInnes# and move to the first occurrence, use M-x tags-search and the string. 2417acb7333SLois Curfman McInnes# To locate later occurrences, use M-, 2427acb7333SLois Curfman McInnes 243b38bb785SSatish BalayTAGS_INCLUDE_FILES = include/*.h include/pinclude/*.h include/FINCLUDE/*.h 244b38bb785SSatish BalayTAGS_BMAKE_FILES = bmake/common bmake/*/base* 245b38bb785SSatish BalayTAGS_EXAMPLE_FILES = src/*/examples/*/*.[c,h,F,f] src/*/examples/*/*/*.[c,h,F,f] \ 246b38bb785SSatish Balay src/benchmarks/*.c src/contrib/*/examples/*/*.[c,h,F,f] 247b38bb785SSatish BalayTAGS_DOC_FILES = docs/tex/manual/routin.tex docs/tex/manual/manual.tex \ 248b38bb785SSatish Balay docs/tex/manual/manual_tex.tex docs/tex/manual/intro.tex \ 249b38bb785SSatish Balay docs/tex/manual/part1.tex docs/tex/manual/part2.tex 2504431cf12SSatish BalayTAGS_SRC_FILES = src/*/*.[c,h] src/*/interface/*.[c,h] src/*/src/*.[c,h] \ 251b38bb785SSatish Balay src/*/utils/*.[c,h] \ 252b38bb785SSatish Balay src/*/impls/*.[c,h] src/*/impls/*/*.[c,h] src/*/impls/*/*/*.[c,h] \ 253b334301eSBarry Smith src/gvec/impls/*/*/*/*/*.[c,h] src/contrib/*/*.[c,h] \ 254b334301eSBarry Smith src/contrib/*/src/*.[c,h] src/fortran/custom/*.[c,h,F] 255b38bb785SSatish BalayTAGS_MAKEFILE_FILES = include/makefile include/*/makefile \ 256b38bb785SSatish Balay makefile \ 257b38bb785SSatish Balay src/makefile src/*/makefile src/*/src/makefile \ 258b38bb785SSatish Balay src/*/interface/makefile \ 259b38bb785SSatish Balay src/*/utils/makefile \ 260b38bb785SSatish Balay src/*/impls/makefile src/*/impls/*/makefile src/*/impls/*/*/makefile \ 261b38bb785SSatish Balay src/*/examples/makefile src/*/examples/*/makefile src/*/examples/*/*/makefile \ 262b38bb785SSatish Balay src/gvec/impls/*/*/*/*/makefile src/gvec/impls/*/*/*/makefile \ 263b38bb785SSatish Balay src/fortran/*/makefile \ 264b38bb785SSatish Balay src/contrib/*/makefile src/contrib/*/src/makefile \ 265b38bb785SSatish Balay src/contrib/*/examples/makefile src/contrib/*/examples/*/makefile \ 266b38bb785SSatish Balay docs/makefile 267b38bb785SSatish Balay 26811b6ed10SLois Curfman McInnes# Builds all etags files 26911b6ed10SLois Curfman McInnesalletags: 2709ae7ee0fSLois Curfman McInnes -make etags_complete 27111b6ed10SLois Curfman McInnes -make etags 27211b6ed10SLois Curfman McInnes -make etags_noexamples 27311b6ed10SLois Curfman McInnes -make etags_makefiles 27411b6ed10SLois Curfman McInnes 27511b6ed10SLois Curfman McInnes# Builds the basic etags file. This should be employed by most users. 27620563c6bSBarry Smithetags: 277edd2f0e1SBarry Smith $(RM) TAGS 278b38bb785SSatish Balay etags -f TAGS $(TAGS_INCLUDE_FILES) 279b38bb785SSatish Balay etags -a -f TAGS $(TAGS_SRC_FILES) 280b38bb785SSatish Balay etags -a -f TAGS $(TAGS_EXAMPLE_FILES) 281b38bb785SSatish Balay etags -a -f TAGS $(TAGS_MAKEFILE_FILES) 282b38bb785SSatish Balay etags -a -f TAGS $(TAGS_BMAKE_FILES) 28328988994SBarry Smith chmod g+w TAGS 284bfce26a3SBarry Smith 28529cdf679SBarry Smith# Builds complete etags list; only for PETSc developers. 28629cdf679SBarry Smithetags_complete: 28729cdf679SBarry Smith $(RM) TAGS_COMPLETE 2889ca56a1bSSatish Balay etags -f TAGS_COMPLETE $(TAGS_SRC_FILES) 2899ca56a1bSSatish Balay etags -a -f TAGS_COMPLETE $(TAGS_INCLUDE_FILES) 290b38bb785SSatish Balay etags -a -f TAGS_COMPLETE $(TAGS_EXAMPLE_FILES) 291b38bb785SSatish Balay etags -a -f TAGS_COMPLETE $(TAGS_MAKEFILE_FILES) 292b38bb785SSatish Balay etags -a -f TAGS_COMPLETE $(TAGS_BMAKE_FILES) 293b38bb785SSatish Balay etags -a -f TAGS_COMPLETE $(TAGS_DOC_FILES) 29429cdf679SBarry Smith chmod g+w TAGS_COMPLETE 29529cdf679SBarry Smith 29611b6ed10SLois Curfman McInnes# Builds the etags file that excludes the examples directories 297bfce26a3SBarry Smithetags_noexamples: 298bfce26a3SBarry Smith $(RM) TAGS_NO_EXAMPLES 2999ca56a1bSSatish Balay etags -f TAGS_NO_EXAMPLES $(TAGS_SRC_FILES) 3009ca56a1bSSatish Balay etags -a -f TAGS_NO_EXAMPLES $(TAGS_INCLUDE_FILES) 301b38bb785SSatish Balay etags -a -f TAGS_NO_EXAMPLES $(TAGS_MAKEFILE_FILES) 302b38bb785SSatish Balay etags -a -f TAGS_NO_EXAMPLES $(TAGS_BMAKE_FILES) 303b38bb785SSatish Balay etags -a -f TAGS_NO_EXAMPLES $(TAGS_DOC_FILES) 304bfce26a3SBarry Smith chmod g+w TAGS_NO_EXAMPLES 305b16a3bb1SBarry Smith 30611b6ed10SLois Curfman McInnes# Builds the etags file for makefiles 307b16a3bb1SBarry Smithetags_makefiles: 308b16a3bb1SBarry Smith $(RM) TAGS_MAKEFILES 309b38bb785SSatish Balay etags -f TAGS_MAKEFILES $(TAGS_MAKEFILE_FILES) 310b38bb785SSatish Balay etags -a -f TAGS_MAKEFILES $(TAGS_BMAKE_FILES) 311b16a3bb1SBarry Smith chmod g+w TAGS_MAKEFILES 31211b6ed10SLois Curfman McInnes 313b38bb785SSatish Balay# 314b38bb785SSatish Balay# ctags builds the tags file required for VI. 315b38bb785SSatish Balay# To use the tags file do the following: 316b38bb785SSatish Balay# 1. within vi invole the command - :set tags=/home/bsmith/petsc/tags 317b38bb785SSatish Balay# or add the command to your ~/.exrc file - set tags=/home/bsmith/petsc/tags 318b38bb785SSatish Balay# 2. now to go to a tag do - :tag TAGNAME for eg - :tag MatCreate 319b38bb785SSatish Balay# 320b38bb785SSatish Balayctags: 321b38bb785SSatish Balay $(RM) tags 322b8319b70SSatish Balay ctags -w -f tags $(TAGS_INCLUDE_FILES) 323b8319b70SSatish Balay ctags -w -a -f tags $(TAGS_SRC_FILES) 324b38bb785SSatish Balay ctags -w -a -f tags $(TAGS_EXAMPLE_FILES) 325b38bb785SSatish Balay ctags -w -a -f tags $(TAGS_MAKEFILE_FILES) 326b38bb785SSatish Balay ctags -w -a -f tags $(TAGS_BMAKE_FILES) 327b38bb785SSatish Balay chmod g+w tags 328b38bb785SSatish Balay 32911b6ed10SLois Curfman McInnes# ------------------------------------------------------------------ 33011b6ed10SLois Curfman McInnes# 33111b6ed10SLois Curfman McInnes# All remaining actions are intended for PETSc developers only. 33211b6ed10SLois Curfman McInnes# PETSc users should not generally need to use these commands. 33311b6ed10SLois Curfman McInnes# 33411b6ed10SLois Curfman McInnes 33511b6ed10SLois Curfman McInnes# Builds all versions of the man pages 336956e605aSBarry Smithallmanpages: allwwwpages alllatexpages 337dea827f2SLois Curfman McInnesallwwwpages: deletewwwpages 338299192b9SLois Curfman McInnes -make ACTION=wwwpages_buildcite tree 339c3e30b67SBarry Smith -cd src/fortran/custom; make wwwpages_buildcite 340c3e30b67SBarry Smith -cd src/fortran/custom; make wwwpages 341dea827f2SLois Curfman McInnes -make ACTION=wwwpages tree 342dea827f2SLois Curfman McInnes -maint/wwwman 3439921e35aSSatish Balay -maint/examplesindex.tcl -www 344f8cfbf3fSSatish Balay -maint/htmlkeywords.tcl 34551c61065SBarry Smith -@chmod g+w docs/www/man*/* 346e01137a2SSatish Balay 347e01137a2SSatish Balay#This is similar to allwwwpages except -www -> -wwwhome 348e01137a2SSatish Balay#The wwwmanpages built this way can pe placed at PETSc Home Page 349e01137a2SSatish Balayallwwwhomepages: deletewwwpages 350e01137a2SSatish Balay -make ACTION=wwwpages_buildcite tree 351e01137a2SSatish Balay -cd src/fortran/custom; make wwwpages_buildcite 352e01137a2SSatish Balay -cd src/fortran/custom; make wwwpages 353e01137a2SSatish Balay -make ACTION=wwwpages tree 354e01137a2SSatish Balay -maint/wwwman 355e01137a2SSatish Balay -maint/examplesindex.tcl -wwwhome 35684047b72SSatish Balay -maint/htmlkeywords.tcl -wwwhome 357e01137a2SSatish Balay -@chmod g+w docs/www/man*/* 358e01137a2SSatish Balay 359416022c9SBarry Smithalllatexpages: deletelatexpages 360416022c9SBarry Smith -make ACTION=latexpages tree 361c3e30b67SBarry Smith -cd src/fortran/custom; make latexpages 36251c61065SBarry Smith -@chmod g+w docs/tex/rsum/* 363416022c9SBarry Smith 36411b6ed10SLois Curfman McInnes# Builds Fortran stub files 36511b6ed10SLois Curfman McInnesallfortranstubs: 36635aab85fSBarry Smith -@include/finclude/generateincludes 3670a0eb2c5SBarry Smith -@$(RM) -f src/fortran/auto/*.c 36811b6ed10SLois Curfman McInnes -make ACTION=fortranstubs tree 3690a0eb2c5SBarry Smith chmod g+w src/fortran/auto/*.c 370f6ff2982SSatish Balay 371d55938c2SBarry Smithallci: 372d55938c2SBarry Smith -@cd src/fortran/custom ; $(OMAKE) BOPT=$(BOPT) ci 373b951964fSBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=ci tree 374b951964fSBarry Smith 375d55938c2SBarry Smithallco: 376d55938c2SBarry Smith -@cd src/fortran/custom ; $(OMAKE) BOPT=$(BOPT) co 377d55938c2SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=co tree 378d55938c2SBarry Smith 379b334301eSBarry Smith# 380b334301eSBarry Smith# The commands below are for generating ADIC versions of the code; 381b334301eSBarry Smith# they are not currently used. 382b334301eSBarry Smith# 383b334301eSBarry SmithCFLAGS = $(CPPFLAGS) $(CONF) 3845eea60f9SBarry Smithalladicignore: 3855eea60f9SBarry Smith -@$(RM) $(PDIR)/adicignore 3865eea60f9SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adicignore tree 3875eea60f9SBarry Smith 3885eea60f9SBarry Smithalladic: 389d18b0ea7SBarry Smith -@echo "Beginning to compile ADIC source code in all directories" 390d18b0ea7SBarry Smith -@echo "Using ADIC compiler: $(ADIC_CC) $(CFLAGS)" 391d18b0ea7SBarry Smith -@echo "=========================================" 39247794344SBarry Smith -@cd include ; \ 393f218b1c0SBarry Smith $(ADIC_CC) -s -f 1 $(CFLAGS) petsc.h 394ba8edd79SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adic tree 39547794344SBarry Smith -@cd src/inline ; \ 39647794344SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adic 3977e351921SBarry Smith -@cd src/adic/blas ; \ 3987e351921SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adic 3997e351921SBarry Smith -@cd src/adic/lapack ; \ 4007e351921SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adic 4016e81b665SBarry Smith 40247794344SBarry Smithalladiclib: 403d18b0ea7SBarry Smith -@echo "Beginning to compile ADIC libraries in all directories" 404d18b0ea7SBarry Smith -@echo "Using compiler: $(CC) $(COPTFLAGS)" 405d18b0ea7SBarry Smith -@echo "-----------------------------------------" 406d18b0ea7SBarry Smith -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 407d18b0ea7SBarry Smith -@echo "-----------------------------------------" 408d18b0ea7SBarry Smith -@echo "Using configuration flags: $(CONF)" 409d18b0ea7SBarry Smith -@echo "-----------------------------------------" 410d18b0ea7SBarry Smith -@echo "Using include paths: $(PETSC_INCLUDE)" 411d18b0ea7SBarry Smith -@echo "-----------------------------------------" 412d18b0ea7SBarry Smith -@echo "Using PETSc directory: $(PETSC_DIR)" 413d18b0ea7SBarry Smith -@echo "Using PETSc arch: $(PETSC_ARCH)" 414d18b0ea7SBarry Smith -@echo "=========================================" 415f218b1c0SBarry Smith -@$(RM) -f $(PDIR)/*adic.a 41647794344SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adiclib tree 4177e351921SBarry Smith -@cd src/adic/blas ; \ 4187e351921SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adiclib 4197e351921SBarry Smith -@cd src/adic/lapack ; \ 4207e351921SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adiclib 4217e351921SBarry Smith -@cd src/adic/src ; \ 422cb3b3f49SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib 4235eea60f9SBarry Smith 424b334301eSBarry Smith 425b334301eSBarry Smith 426b334301eSBarry Smith 427b334301eSBarry Smith 428f6ff2982SSatish Balay 429