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" 2747794344SBarry Smith -@echo "Using compiler: $(CC) $(COPTFLAGS)" 2847794344SBarry Smith -@echo "-----------------------------------------" 29b14e8f29SBarry Smith -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 3047794344SBarry Smith -@echo "-----------------------------------------" 31b14e8f29SBarry Smith -@echo "Using configuration flags: $(CONF)" 3247794344SBarry Smith -@echo "-----------------------------------------" 33b14e8f29SBarry Smith -@echo "Using include paths: $(PETSC_INCLUDE)" 3447794344SBarry Smith -@echo "-----------------------------------------" 35c2c9bc36SBarry Smith -@echo "Using PETSc directory: $(PETSC_DIR)" 36c2c9bc36SBarry Smith -@echo "Using PETSc arch: $(PETSC_ARCH)" 3747794344SBarry Smith -@echo "=========================================" 38e35bd481SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 39f3848965SBarry Smith ACTION=libfast tree 40f88f42abSSatish Balay -@cd $(PETSC_DIR)/src/sys/src ; \ 41f88f42abSSatish Balay $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) rs6000_time 424e04c1a0SBarry Smith $(RANLIB) $(PDIR)/*.a 430be1b381SSatish Balay -@chmod g+w $(PDIR)/*.a 440b3634f8SBarry Smith -@echo "Completed building libraries" 4547794344SBarry Smith -@echo "=========================================" 460b3634f8SBarry Smith 470b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture 48a9369724SSatish Balaytestexamples: chkopts 490b3634f8SBarry Smith -@echo "Beginning to compile and run test examples" 5047794344SBarry Smith -@echo "Using compiler: $(CC) $(COPTFLAGS)" 5147794344SBarry Smith -@echo "-----------------------------------------" 52b14e8f29SBarry Smith -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 5347794344SBarry Smith -@echo "-----------------------------------------" 54b14e8f29SBarry Smith -@echo "Using include paths: $(PETSC_INCLUDE)" 5547794344SBarry Smith -@echo "-----------------------------------------" 56c2c9bc36SBarry Smith -@echo "Using PETSc directory: $(PETSC_DIR)" 57c2c9bc36SBarry Smith -@echo "Using PETSc arch: $(PETSC_ARCH)" 58c2c9bc36SBarry Smith -@echo "------------------------------------------" 599c69534bSBarry Smith -@echo "Using linker: $(CLINKER)" 609c69534bSBarry Smith -@echo "Using libraries: $(PETSC_LIB)" 610b3634f8SBarry Smith -@echo "------------------------------------------" 62eb817c50SBarry Smith -@echo "Due to different numerical round-off on certain" 63eb817c50SBarry Smith -@echo "machines some of the numbers may not match exactly." 6447794344SBarry Smith -@echo "=========================================" 650b3634f8SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 660b3634f8SBarry Smith ACTION=testexamples_1 tree 670b3634f8SBarry Smith -@echo "Completed compiling and running test examples" 6847794344SBarry Smith -@echo "=========================================" 690b3634f8SBarry Smith 700b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture 71a9369724SSatish Balaytestexamples_uni: chkopts 728475343bSBarry Smith -@echo "Beginning to compile and run uniprocessor test examples" 7347794344SBarry Smith -@echo "Using compiler: $(CC) $(COPTFLAGS)" 748475343bSBarry Smith -@echo "Using linker: $(CLINKER)" 7547794344SBarry Smith -@echo "------------------------------------------" 76b14e8f29SBarry Smith -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 7747794344SBarry Smith -@echo "------------------------------------------" 78b14e8f29SBarry Smith -@echo "Using include paths: $(PETSC_INCLUDE)" 7947794344SBarry Smith -@echo "------------------------------------------" 80d6db1478SLois Curfman McInnes -@echo "Using PETSc directory: $(PETSC_DIR)" 81d6db1478SLois Curfman McInnes -@echo "Using PETSc arch: $(PETSC_ARCH)" 82d6db1478SLois Curfman McInnes -@echo "------------------------------------------" 83d6db1478SLois Curfman McInnes -@echo "Using linker: $(CLINKER)" 848475343bSBarry Smith -@echo "Using libraries: $(PETSC_LIB)" 858475343bSBarry Smith -@echo "------------------------------------------" 868475343bSBarry Smith -@echo "Due to different numerical round-off on certain" 878475343bSBarry Smith -@echo "machines some of the numbers may not match exactly." 8847794344SBarry Smith -@echo "=========================================" 898475343bSBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 908475343bSBarry Smith ACTION=testexamples_4 tree 918475343bSBarry Smith -@echo "Completed compiling and running uniprocessor test examples" 9247794344SBarry Smith -@echo "=========================================" 938475343bSBarry Smith 9435ca7349SBarry Smith# 9511b6ed10SLois Curfman McInnes# Builds PETSc Fortran interface libary 9611b6ed10SLois Curfman McInnes# Note: libfast cannot run on .F files on certain machines, so we 9735ca7349SBarry Smith# use lib and check for errors here. 9883f0b094SBarry Smithfortran: chkpetsc_dir 99727c161cSBarry Smith -$(RM) -f $(PDIR)/libpetscfortran.* 1000b3634f8SBarry Smith -@echo "Beginning to compile Fortran interface library" 10126de76a5SSatish Balay -@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)" 10247794344SBarry Smith -@echo "Using C/C++ compiler: $(CC) $(COPTFLAGS)" 10347794344SBarry Smith -@echo "------------------------------------------" 104fc939babSLois Curfman McInnes -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 10547794344SBarry Smith -@echo "------------------------------------------" 106fc939babSLois Curfman McInnes -@echo "Using configuration flags: $(CONF)" 10747794344SBarry Smith -@echo "------------------------------------------" 108fc939babSLois Curfman McInnes -@echo "Using include paths: $(PETSC_INCLUDE)" 10947794344SBarry Smith -@echo "------------------------------------------" 110d6db1478SLois Curfman McInnes -@echo "Using PETSc directory: $(PETSC_DIR)" 111d6db1478SLois Curfman McInnes -@echo "Using PETSc arch: $(PETSC_ARCH)" 11247794344SBarry Smith -@echo "=========================================" 113b16a3bb1SBarry Smith -@cd src/fortran/custom; \ 11435ca7349SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \ 11535ca7349SBarry Smith grep -v clog trashz | grep -v "information sections" | \ 11635ca7349SBarry Smith egrep -i '(Error|warning|Can)' >> /dev/null;\ 11735ca7349SBarry Smith if [ "$$?" != 1 ]; then \ 11835ca7349SBarry Smith cat trashz ; fi; $(RM) trashz 119b16a3bb1SBarry Smith -@cd src/fortran/auto; \ 12035ca7349SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) libfast 12183f0b094SBarry Smith $(RANLIB) $(PDIR)/libpetscfortran.a 1220be1b381SSatish Balay -@chmod g+w $(PDIR)/*.a 1230b3634f8SBarry Smith -@echo "Completed compiling Fortran interface library" 12447794344SBarry Smith -@echo "=========================================" 12583f0b094SBarry Smith 126727c161cSBarry Smith# Builds PETSc test examples for a given BOPT and architecture 127a9369724SSatish Balaytestfortran: chkopts 128727c161cSBarry Smith -@echo "Beginning to compile and run Fortran test examples" 129727c161cSBarry Smith -@echo "Using compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)" 130727c161cSBarry Smith -@echo "Using linker: $(FLINKER)" 131727c161cSBarry Smith -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 13247794344SBarry Smith -@echo "------------------------------------------" 133727c161cSBarry Smith -@echo "Using PETSc directory: $(PETSC_DIR)" 134727c161cSBarry Smith -@echo "Using PETSc arch: $(PETSC_ARCH)" 135727c161cSBarry Smith -@echo "------------------------------------------" 136727c161cSBarry Smith -@echo "Using linker: $(FLINKER)" 137727c161cSBarry Smith -@echo "Using libraries: $(PETSC_FORTRAN_LIB) $(PETSC_LIB)" 13847794344SBarry Smith -@echo "=========================================" 139e4ef9893SBarry Smith -@echo "Due to different numerical round-off on certain" 140e4ef9893SBarry Smith -@echo "machines or the way Fortran formats numbers" 141e4ef9893SBarry Smith -@echo "some of the results may not match exactly." 142e4ef9893SBarry Smith -@echo "=========================================" 143e4ef9893SBarry Smith -@echo "On some machines you may get messages of the form" 144e4ef9893SBarry Smith -@echo "PetscScalarAddressToFortran:C and Fortran arrays are" 145e4ef9893SBarry Smith -@echo "not commonly aligned or are too far apart to be indexed" 146e4ef9893SBarry Smith -@echo "by an integer. Locations: C xxxc Fortran xxxf" 147e4ef9893SBarry Smith -@echo "Locations/sizeof(Scalar): C yyc Fortran yyf" 148e4ef9893SBarry Smith -@echo "This indicates that you may not be able to use the" 149e4ef9893SBarry Smith -@echo "PETSc routines VecGetArray() and MatGetArray() from Fortran" 150e4ef9893SBarry Smith -@echo "=========================================" 151727c161cSBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 152727c161cSBarry Smith ACTION=testexamples_3 tree 153727c161cSBarry Smith -@echo "Completed compiling and running Fortran test examples" 15447794344SBarry Smith -@echo "=========================================" 155727c161cSBarry Smith 156b1f85764SBarry Smith# 157b1f85764SBarry Smith# Builds PETSc Fortran90 interface libary 158b1f85764SBarry Smith# Note: libfast cannot run on .F files on certain machines, so we 159b1f85764SBarry Smith# use lib and check for errors here. 160b1f85764SBarry Smith# Note: F90 interface currently only supported in NAG F90 compiler 161d7f8d646SSatish Balayfortran90: chkpetsc_dir fortran 162b1f85764SBarry Smith -@echo "Beginning to compile Fortran90 interface library" 163b1f85764SBarry Smith -@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)" 164b1f85764SBarry Smith -@echo "Using C/C++ compiler: $(CC) $(COPTFLAGS)" 165b1f85764SBarry Smith -@echo "------------------------------------------" 166b1f85764SBarry Smith -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 167b1f85764SBarry Smith -@echo "------------------------------------------" 168b1f85764SBarry Smith -@echo "Using configuration flags: $(CONF)" 169b1f85764SBarry Smith -@echo "------------------------------------------" 170b1f85764SBarry Smith -@echo "Using include paths: $(PETSC_INCLUDE)" 171b1f85764SBarry Smith -@echo "------------------------------------------" 172b1f85764SBarry Smith -@echo "Using PETSc directory: $(PETSC_DIR)" 173b1f85764SBarry Smith -@echo "Using PETSc arch: $(PETSC_ARCH)" 174b1f85764SBarry Smith -@echo "=========================================" 175b1f85764SBarry Smith -@cd src/fortran/f90; \ 176b1f85764SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \ 177b1f85764SBarry Smith grep -v clog trashz | grep -v "information sections" | \ 178b1f85764SBarry Smith egrep -i '(Error|warning|Can)' >> /dev/null;\ 179b1f85764SBarry Smith if [ "$$?" != 1 ]; then \ 180b1f85764SBarry Smith cat trashz ; fi; $(RM) trashz 181b1f85764SBarry Smith $(RANLIB) $(PDIR)/libpetscfortran.a 1820be1b381SSatish Balay -@chmod g+w $(PDIR)/*.a 183b1f85764SBarry Smith -@echo "Completed compiling Fortran90 interface library" 184b1f85764SBarry Smith -@echo "=========================================" 185b1f85764SBarry Smith 186*ad96cc0dSLois Curfman McInnes# Builds noise routines (not yet publically available) 187*ad96cc0dSLois Curfman McInnes# Note: libfast cannot run on .F files on certain machines, so we 188*ad96cc0dSLois Curfman McInnes# use lib and check for errors here. 189*ad96cc0dSLois Curfman McInnesnoise: chkpetsc_dir 190*ad96cc0dSLois Curfman McInnes -@echo "Beginning to compile noise routines" 191*ad96cc0dSLois Curfman McInnes -@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)" 192*ad96cc0dSLois Curfman McInnes -@echo "Using C/C++ compiler: $(CC) $(COPTFLAGS)" 193*ad96cc0dSLois Curfman McInnes -@echo "------------------------------------------" 194*ad96cc0dSLois Curfman McInnes -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 195*ad96cc0dSLois Curfman McInnes -@echo "------------------------------------------" 196*ad96cc0dSLois Curfman McInnes -@echo "Using configuration flags: $(CONF)" 197*ad96cc0dSLois Curfman McInnes -@echo "------------------------------------------" 198*ad96cc0dSLois Curfman McInnes -@echo "Using include paths: $(PETSC_INCLUDE)" 199*ad96cc0dSLois Curfman McInnes -@echo "------------------------------------------" 200*ad96cc0dSLois Curfman McInnes -@echo "Using PETSc directory: $(PETSC_DIR)" 201*ad96cc0dSLois Curfman McInnes -@echo "Using PETSc arch: $(PETSC_ARCH)" 202*ad96cc0dSLois Curfman McInnes -@echo "=========================================" 203*ad96cc0dSLois Curfman McInnes -@cd src/snes/interface/noise; \ 204*ad96cc0dSLois Curfman McInnes $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \ 205*ad96cc0dSLois Curfman McInnes grep -v clog trashz | grep -v "information sections" | \ 206*ad96cc0dSLois Curfman McInnes egrep -i '(Error|warning|Can)' >> /dev/null;\ 207*ad96cc0dSLois Curfman McInnes if [ "$$?" != 1 ]; then \ 208*ad96cc0dSLois Curfman McInnes cat trashz ; fi; $(RM) trashz 209*ad96cc0dSLois Curfman McInnes $(RANLIB) $(PDIR)/libpetscsnes.a 210*ad96cc0dSLois Curfman McInnes -@chmod g+w $(PDIR)/libpetscsnes.a 211*ad96cc0dSLois Curfman McInnes -@echo "Completed compiling noise routines" 212*ad96cc0dSLois Curfman McInnes -@echo "=========================================" 213*ad96cc0dSLois Curfman McInnes 214*ad96cc0dSLois Curfman McInnes 2158c37ef55SBarry Smithranlib: 2164e04c1a0SBarry Smith $(RANLIB) $(PDIR)/*.a 21761523587SBarry Smith 21811b6ed10SLois Curfman McInnes# Deletes PETSc libraries 21961523587SBarry Smithdeletelibs: 2204e04c1a0SBarry Smith -$(RM) -f $(PDIR)/*.a $(PDIR)/complex/* $(PDIR)/c++/* 221d44968ceSBarry Smith 22211b6ed10SLois Curfman McInnes# Deletes man pages (HTML version) 223b346654fSBarry Smithdeletewwwpages: 224dea827f2SLois Curfman McInnes $(RM) -f $(PETSC_DIR)/docs/www/man*/* $(PETSC_DIR)/docs/www/www.cit \ 225dea827f2SLois Curfman McInnes $(PETSC_DIR)/docs/www/man*.html 226b346654fSBarry Smith 22711b6ed10SLois Curfman McInnes# Deletes man pages (LaTeX version) 228b346654fSBarry Smithdeletelatexpages: 2297857610eSBarry Smith $(RM) -f $(PETSC_DIR)/docs/tex/rsum/*sum*.tex 23020563c6bSBarry Smith 2317acb7333SLois Curfman McInnes# To access the tags in emacs, type M-x visit-tags-table and specify 2327acb7333SLois Curfman McInnes# the file petsc/TAGS. Then, to move to where a PETSc function is 2337acb7333SLois Curfman McInnes# defined, enter M-. and the function name. To search for a string 2347acb7333SLois Curfman McInnes# and move to the first occurrence, use M-x tags-search and the string. 2357acb7333SLois Curfman McInnes# To locate later occurrences, use M-, 2367acb7333SLois Curfman McInnes 237b38bb785SSatish BalayTAGS_INCLUDE_FILES = include/*.h include/pinclude/*.h include/FINCLUDE/*.h 238b38bb785SSatish BalayTAGS_BMAKE_FILES = bmake/common bmake/*/base* 239b38bb785SSatish BalayTAGS_EXAMPLE_FILES = src/*/examples/*/*.[c,h,F,f] src/*/examples/*/*/*.[c,h,F,f] \ 240b38bb785SSatish Balay src/benchmarks/*.c src/contrib/*/examples/*/*.[c,h,F,f] 241b38bb785SSatish BalayTAGS_DOC_FILES = docs/tex/manual/routin.tex docs/tex/manual/manual.tex \ 242b38bb785SSatish Balay docs/tex/manual/manual_tex.tex docs/tex/manual/intro.tex \ 243b38bb785SSatish Balay docs/tex/manual/part1.tex docs/tex/manual/part2.tex 2444431cf12SSatish BalayTAGS_SRC_FILES = src/*/*.[c,h] src/*/interface/*.[c,h] src/*/src/*.[c,h] \ 245b38bb785SSatish Balay src/*/utils/*.[c,h] \ 246b38bb785SSatish Balay src/*/impls/*.[c,h] src/*/impls/*/*.[c,h] src/*/impls/*/*/*.[c,h] \ 247b334301eSBarry Smith src/gvec/impls/*/*/*/*/*.[c,h] src/contrib/*/*.[c,h] \ 248b334301eSBarry Smith src/contrib/*/src/*.[c,h] src/fortran/custom/*.[c,h,F] 249b38bb785SSatish BalayTAGS_MAKEFILE_FILES = include/makefile include/*/makefile \ 250b38bb785SSatish Balay makefile \ 251b38bb785SSatish Balay src/makefile src/*/makefile src/*/src/makefile \ 252b38bb785SSatish Balay src/*/interface/makefile \ 253b38bb785SSatish Balay src/*/utils/makefile \ 254b38bb785SSatish Balay src/*/impls/makefile src/*/impls/*/makefile src/*/impls/*/*/makefile \ 255b38bb785SSatish Balay src/*/examples/makefile src/*/examples/*/makefile src/*/examples/*/*/makefile \ 256b38bb785SSatish Balay src/gvec/impls/*/*/*/*/makefile src/gvec/impls/*/*/*/makefile \ 257b38bb785SSatish Balay src/fortran/*/makefile \ 258b38bb785SSatish Balay src/contrib/*/makefile src/contrib/*/src/makefile \ 259b38bb785SSatish Balay src/contrib/*/examples/makefile src/contrib/*/examples/*/makefile \ 260b38bb785SSatish Balay docs/makefile 261b38bb785SSatish Balay 26211b6ed10SLois Curfman McInnes# Builds all etags files 26311b6ed10SLois Curfman McInnesalletags: 2649ae7ee0fSLois Curfman McInnes -make etags_complete 26511b6ed10SLois Curfman McInnes -make etags 26611b6ed10SLois Curfman McInnes -make etags_noexamples 26711b6ed10SLois Curfman McInnes -make etags_makefiles 26811b6ed10SLois Curfman McInnes 26911b6ed10SLois Curfman McInnes# Builds the basic etags file. This should be employed by most users. 27020563c6bSBarry Smithetags: 271edd2f0e1SBarry Smith $(RM) TAGS 272b38bb785SSatish Balay etags -f TAGS $(TAGS_INCLUDE_FILES) 273b38bb785SSatish Balay etags -a -f TAGS $(TAGS_SRC_FILES) 274b38bb785SSatish Balay etags -a -f TAGS $(TAGS_EXAMPLE_FILES) 275b38bb785SSatish Balay etags -a -f TAGS $(TAGS_MAKEFILE_FILES) 276b38bb785SSatish Balay etags -a -f TAGS $(TAGS_BMAKE_FILES) 27728988994SBarry Smith chmod g+w TAGS 278bfce26a3SBarry Smith 27929cdf679SBarry Smith# Builds complete etags list; only for PETSc developers. 28029cdf679SBarry Smithetags_complete: 28129cdf679SBarry Smith $(RM) TAGS_COMPLETE 2829ca56a1bSSatish Balay etags -f TAGS_COMPLETE $(TAGS_SRC_FILES) 2839ca56a1bSSatish Balay etags -a -f TAGS_COMPLETE $(TAGS_INCLUDE_FILES) 284b38bb785SSatish Balay etags -a -f TAGS_COMPLETE $(TAGS_EXAMPLE_FILES) 285b38bb785SSatish Balay etags -a -f TAGS_COMPLETE $(TAGS_MAKEFILE_FILES) 286b38bb785SSatish Balay etags -a -f TAGS_COMPLETE $(TAGS_BMAKE_FILES) 287b38bb785SSatish Balay etags -a -f TAGS_COMPLETE $(TAGS_DOC_FILES) 28829cdf679SBarry Smith chmod g+w TAGS_COMPLETE 28929cdf679SBarry Smith 29011b6ed10SLois Curfman McInnes# Builds the etags file that excludes the examples directories 291bfce26a3SBarry Smithetags_noexamples: 292bfce26a3SBarry Smith $(RM) TAGS_NO_EXAMPLES 2939ca56a1bSSatish Balay etags -f TAGS_NO_EXAMPLES $(TAGS_SRC_FILES) 2949ca56a1bSSatish Balay etags -a -f TAGS_NO_EXAMPLES $(TAGS_INCLUDE_FILES) 295b38bb785SSatish Balay etags -a -f TAGS_NO_EXAMPLES $(TAGS_MAKEFILE_FILES) 296b38bb785SSatish Balay etags -a -f TAGS_NO_EXAMPLES $(TAGS_BMAKE_FILES) 297b38bb785SSatish Balay etags -a -f TAGS_NO_EXAMPLES $(TAGS_DOC_FILES) 298bfce26a3SBarry Smith chmod g+w TAGS_NO_EXAMPLES 299b16a3bb1SBarry Smith 30011b6ed10SLois Curfman McInnes# Builds the etags file for makefiles 301b16a3bb1SBarry Smithetags_makefiles: 302b16a3bb1SBarry Smith $(RM) TAGS_MAKEFILES 303b38bb785SSatish Balay etags -f TAGS_MAKEFILES $(TAGS_MAKEFILE_FILES) 304b38bb785SSatish Balay etags -a -f TAGS_MAKEFILES $(TAGS_BMAKE_FILES) 305b16a3bb1SBarry Smith chmod g+w TAGS_MAKEFILES 30611b6ed10SLois Curfman McInnes 307b38bb785SSatish Balay# 308b38bb785SSatish Balay# ctags builds the tags file required for VI. 309b38bb785SSatish Balay# To use the tags file do the following: 310b38bb785SSatish Balay# 1. within vi invole the command - :set tags=/home/bsmith/petsc/tags 311b38bb785SSatish Balay# or add the command to your ~/.exrc file - set tags=/home/bsmith/petsc/tags 312b38bb785SSatish Balay# 2. now to go to a tag do - :tag TAGNAME for eg - :tag MatCreate 313b38bb785SSatish Balay# 314b38bb785SSatish Balayctags: 315b38bb785SSatish Balay $(RM) tags 316b8319b70SSatish Balay ctags -w -f tags $(TAGS_INCLUDE_FILES) 317b8319b70SSatish Balay ctags -w -a -f tags $(TAGS_SRC_FILES) 318b38bb785SSatish Balay ctags -w -a -f tags $(TAGS_EXAMPLE_FILES) 319b38bb785SSatish Balay ctags -w -a -f tags $(TAGS_MAKEFILE_FILES) 320b38bb785SSatish Balay ctags -w -a -f tags $(TAGS_BMAKE_FILES) 321b38bb785SSatish Balay chmod g+w tags 322b38bb785SSatish Balay 32311b6ed10SLois Curfman McInnes# ------------------------------------------------------------------ 32411b6ed10SLois Curfman McInnes# 32511b6ed10SLois Curfman McInnes# All remaining actions are intended for PETSc developers only. 32611b6ed10SLois Curfman McInnes# PETSc users should not generally need to use these commands. 32711b6ed10SLois Curfman McInnes# 32811b6ed10SLois Curfman McInnes 32911b6ed10SLois Curfman McInnes# Builds all versions of the man pages 330956e605aSBarry Smithallmanpages: allwwwpages alllatexpages 331dea827f2SLois Curfman McInnesallwwwpages: deletewwwpages 332299192b9SLois Curfman McInnes -make ACTION=wwwpages_buildcite tree 333c3e30b67SBarry Smith -cd src/fortran/custom; make wwwpages_buildcite 334c3e30b67SBarry Smith -cd src/fortran/custom; make wwwpages 335dea827f2SLois Curfman McInnes -make ACTION=wwwpages tree 336dea827f2SLois Curfman McInnes -maint/wwwman 3379921e35aSSatish Balay -maint/examplesindex.tcl -www 338f8cfbf3fSSatish Balay -maint/htmlkeywords.tcl 33951c61065SBarry Smith -@chmod g+w docs/www/man*/* 340e01137a2SSatish Balay 341e01137a2SSatish Balay#This is similar to allwwwpages except -www -> -wwwhome 342e01137a2SSatish Balay#The wwwmanpages built this way can pe placed at PETSc Home Page 343e01137a2SSatish Balayallwwwhomepages: deletewwwpages 344e01137a2SSatish Balay -make ACTION=wwwpages_buildcite tree 345e01137a2SSatish Balay -cd src/fortran/custom; make wwwpages_buildcite 346e01137a2SSatish Balay -cd src/fortran/custom; make wwwpages 347e01137a2SSatish Balay -make ACTION=wwwpages tree 348e01137a2SSatish Balay -maint/wwwman 349e01137a2SSatish Balay -maint/examplesindex.tcl -wwwhome 35084047b72SSatish Balay -maint/htmlkeywords.tcl -wwwhome 351e01137a2SSatish Balay -@chmod g+w docs/www/man*/* 352e01137a2SSatish Balay 353416022c9SBarry Smithalllatexpages: deletelatexpages 354416022c9SBarry Smith -make ACTION=latexpages tree 355c3e30b67SBarry Smith -cd src/fortran/custom; make latexpages 35651c61065SBarry Smith -@chmod g+w docs/tex/rsum/* 357416022c9SBarry Smith 35811b6ed10SLois Curfman McInnes# Builds Fortran stub files 35911b6ed10SLois Curfman McInnesallfortranstubs: 36035aab85fSBarry Smith -@include/finclude/generateincludes 3610a0eb2c5SBarry Smith -@$(RM) -f src/fortran/auto/*.c 36211b6ed10SLois Curfman McInnes -make ACTION=fortranstubs tree 3630a0eb2c5SBarry Smith chmod g+w src/fortran/auto/*.c 364f6ff2982SSatish Balay 365d55938c2SBarry Smithallci: 366d55938c2SBarry Smith -@cd src/fortran/custom ; $(OMAKE) BOPT=$(BOPT) ci 367b951964fSBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=ci tree 368b951964fSBarry Smith 369d55938c2SBarry Smithallco: 370d55938c2SBarry Smith -@cd src/fortran/custom ; $(OMAKE) BOPT=$(BOPT) co 371d55938c2SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=co tree 372d55938c2SBarry Smith 373b334301eSBarry Smith# 374b334301eSBarry Smith# The commands below are for generating ADIC versions of the code; 375b334301eSBarry Smith# they are not currently used. 376b334301eSBarry Smith# 377b334301eSBarry SmithCFLAGS = $(CPPFLAGS) $(CONF) 3785eea60f9SBarry Smithalladicignore: 3795eea60f9SBarry Smith -@$(RM) $(PDIR)/adicignore 3805eea60f9SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adicignore tree 3815eea60f9SBarry Smith 3825eea60f9SBarry Smithalladic: 38347794344SBarry Smith -@cd include ; \ 384f218b1c0SBarry Smith $(ADIC_CC) -s -f 1 $(CFLAGS) petsc.h 385ba8edd79SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adic tree 38647794344SBarry Smith -@cd src/inline ; \ 38747794344SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adic 3887e351921SBarry Smith -@cd src/adic/blas ; \ 3897e351921SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adic 3907e351921SBarry Smith -@cd src/adic/lapack ; \ 3917e351921SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adic 3927e351921SBarry Smith -@cd src/adic/src ; \ 3937e351921SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adic 3946e81b665SBarry Smith 39547794344SBarry Smithalladiclib: 396f218b1c0SBarry Smith -@$(RM) -f $(PDIR)/*adic.a 39747794344SBarry Smith -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adiclib tree 3987e351921SBarry Smith -@cd src/adic/blas ; \ 3997e351921SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adiclib 4007e351921SBarry Smith -@cd src/adic/lapack ; \ 4017e351921SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adiclib 4027e351921SBarry Smith -@cd src/adic/src ; \ 4037e351921SBarry Smith $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adiclib 4045eea60f9SBarry Smith 405b334301eSBarry Smith 406b334301eSBarry Smith 407b334301eSBarry Smith 408b334301eSBarry Smith 409f6ff2982SSatish Balay 410