1# $Id: makefile,v 1.235 1998/04/23 22:55:02 balay Exp balay $ 2# 3# This is the makefile for installing PETSc. See the file 4# Installation for directions on installing PETSc. 5# See also bmake/common for additional commands. 6# 7ALL: all 8 9CFLAGS = 10SOURCEC = 11SOURCEF = 12DOCS = maint/addlinks maint/builddist \ 13 maint/buildlinks maint/wwwman maint/xclude maint/crontab\ 14 bmake/common bmake/*/base* maint/autoftp docs/manualpages/sec/* \ 15 include/foldinclude/generateincludes bin/petscviewinfo.text \ 16 bin/petscoptsinfo.text bmake/*/petscconf.h 17OBJSC = 18OBJSF = 19LIBBASE = libpetscvec 20DIRS = src include docs 21 22include ${PETSC_DIR}/bmake/${PETSC_ARCH}/base 23 24 25# 26# Prints information about the system and PETSc being compiled 27# 28info: 29 -@echo "==========================================" 30 -@echo On `date` on `hostname` 31 -@echo Machine characteristics: `uname -a` 32 -@echo "-----------------------------------------" 33 -@echo "Using C compiler: ${CC} ${COPTFLAGS}" 34 -@if [ -n "${CCV}" -a "${CCV}" != "unknown" ] ; then \ 35 echo "Compiler version:" `${CCV}` ; fi 36 -@echo "Using Fortran compiler: ${FC} ${FFLAGS} ${FOPTFLAGS}" 37 -@echo "-----------------------------------------" 38 -@grep PETSC_VERSION_NUMBER include/petsc.h | sed "s/........//" 39 -@echo "-----------------------------------------" 40 -@echo "Using PETSc flags: ${PETSCFLAGS} ${PCONF}" 41 -@echo "-----------------------------------------" 42 -@echo "Using configuration flags:" 43 -@grep "define " bmake/${PETSC_ARCH}/petscconf.h 44 -@echo "-----------------------------------------" 45 -@echo "Using include paths: ${PETSC_INCLUDE}" 46 -@echo "-----------------------------------------" 47 -@echo "Using PETSc directory: ${PETSC_DIR}" 48 -@echo "Using PETSc arch: ${PETSC_ARCH}" 49 -@echo "------------------------------------------" 50 -@echo "Using C linker: ${CLINKER}" 51 -@echo "Using libraries: ${PETSC_LIB}" 52 -@echo "Using Fortran linker: ${FLINKER}" 53 -@echo "Using Fortran libraries: ${PETSC_FORTRAN_LIB}" 54 -@echo "==========================================" 55 56# Builds PETSc libraries for a given BOPT and architecture 57all: info chkpetsc_dir deletelibs build_kernels build_c shared build_fortran build_fortran90 58 59build_c: 60 -@echo "BEGINNING TO COMPILE LIBRARIES IN ALL DIRECTORIES" 61 -@echo "=========================================" 62 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \ 63 ACTION=libfast tree 64 -@cd ${PETSC_DIR}/src/sys/src ; \ 65 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} rs6000_time 66 ${RANLIB} ${PDIR}/*.a 67 -@chmod g+w ${PDIR}/*.a 68 -@echo "Completed building libraries" 69 -@echo "=========================================" 70 71# Builds PETSc test examples for a given BOPT and architecture 72testexamples: info chkopts 73 -@echo "BEGINNING TO COMPILE AND RUN TEST EXAMPLES" 74 -@echo "Due to different numerical round-off on certain" 75 -@echo "machines some of the numbers may not match exactly." 76 -@echo "=========================================" 77 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \ 78 ACTION=testexamples_1 tree 79 -@echo "Completed compiling and running test examples" 80 -@echo "=========================================" 81 82# Builds PETSc test examples for a given BOPT and architecture 83testexamples_uni: info chkopts 84 -@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR EXAMPLES" 85 -@echo "Due to different numerical round-off on certain" 86 -@echo "machines some of the numbers may not match exactly." 87 -@echo "=========================================" 88 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \ 89 ACTION=testexamples_4 tree 90 -@echo "Completed compiling and running uniprocessor test examples" 91 -@echo "=========================================" 92 93# 94# Builds PETSc Fortran interface libary 95# Note: libfast cannot run on .F files on certain machines, so we 96# use lib and check for errors here. 97fortran: info chkpetsc_dir build_fortran 98 99build_fortran: 100 -@echo "BEGINNING TO COMPILE FORTRAN INTERFACE LIBRARY" 101 -@echo "=========================================" 102 -${RM} -f ${PDIR}/libpetscfortran.* 103 -@cd src/fortran/auto; \ 104 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} libfast 105 -@cd src/fortran/custom; \ 106 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib > trashz 2>&1; \ 107 grep -v clog trashz | grep -v "information sections" | \ 108 egrep -i '(Error|warning|Can)' >> /dev/null;\ 109 if [ "$$?" != 1 ]; then \ 110 cat trashz ; fi; ${RM} trashz 111 ${RANLIB} ${PDIR}/libpetscfortran.a 112 -@chmod g+w ${PDIR}/*.a 113 -@echo "Completed compiling Fortran interface library" 114 -@echo "=========================================" 115 116# 117# Builds PETSc Fortran90 interface libary 118# Note: libfast cannot run on .F files on certain machines, so we 119# use lib and check for errors here. 120# Note: F90 interface currently only supported in NAG F90 compiler 121fortran90: fortran build_fortran90 122 123build_fortran90: 124 -@echo "BEGINNING TO COMPILE FORTRAN90 INTERFACE LIBRARY" 125 -@echo "=========================================" 126 -@cd src/fortran/f90; \ 127 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib > trashz 2>&1; \ 128 grep -v clog trashz | grep -v "information sections" | \ 129 egrep -i '(Error|warning|Can)' >> /dev/null;\ 130 if [ "$$?" != 1 ]; then \ 131 cat trashz ; fi; ${RM} trashz 132 ${RANLIB} ${PDIR}/libpetscfortran.a 133 -@chmod g+w ${PDIR}/*.a 134 -@echo "Completed compiling Fortran90 interface library" 135 -@echo "=========================================" 136 137# 138# Builds PETSc Fortran kernels; some numerical kernels have 139# a Fortran version that may give better performance on certain 140# machines. These always provide better performance for complex numbers. 141fortrankernels: chkpetsc_dir 142 -${RM} -f ${PDIR}/libpetsckernels.* 143 -@echo "BEGINNING TO COMPILE FORTRAN KERNELS LIBRARY" 144 -@echo "=========================================" 145 -@cd src/fortran/kernels; \ 146 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib 147 -@chmod g+w ${PDIR}/*.a 148 -@echo "Completed compiling Fortran kernels library" 149 -@echo "=========================================" 150 151# Builds PETSc test examples for a given BOPT and architecture 152testfortran: info chkopts 153 -@echo "BEGINNING TO COMPILE AND RUN FORTRAN TEST EXAMPLES" 154 -@echo "=========================================" 155 -@echo "Due to different numerical round-off on certain" 156 -@echo "machines or the way Fortran formats numbers" 157 -@echo "some of the results may not match exactly." 158 -@echo "=========================================" 159 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \ 160 ACTION=testexamples_3 tree 161 -@echo "Completed compiling and running Fortran test examples" 162 -@echo "=========================================" 163# Builds noise routines (not yet publically available) 164# Note: libfast cannot run on .F files on certain machines, so we 165# use lib and check for errors here. 166noise: info chkpetsc_dir 167 -@echo "Beginning to compile noise routines" 168 -@echo "=========================================" 169 -@cd src/snes/interface/noise; \ 170 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib > trashz 2>&1; \ 171 grep -v clog trashz | grep -v "information sections" | \ 172 egrep -i '(Error|warning|Can)' >> /dev/null;\ 173 if [ "$$?" != 1 ]; then \ 174 cat trashz ; fi; ${RM} trashz 175 ${RANLIB} ${PDIR}/libpetscsnes.a 176 -@chmod g+w ${PDIR}/libpetscsnes.a 177 -@echo "Completed compiling noise routines" 178 -@echo "=========================================" 179 180petscblas: info chkpetsc_dir 181 -${RM} -f ${PDIR}/libpetscblas.* 182 -@echo "BEGINNING TO COMPILE C VERSION OF BLAS AND LAPACK" 183 -@echo "=========================================" 184 -@cd src/adic/blas; \ 185 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} libfast 186 -@cd src/adic/lapack; \ 187 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=libfast tree 188 ${RANLIB} ${PDIR}/libpetscblas.a 189 -@chmod g+w ${PDIR}/*.a 190 -@echo "Completed compiling C version of BLAS and LAPACK" 191 -@echo "=========================================" 192 193# If USE_DYNAMIC_LIBRARIES flag is set, build shared libs 194build_shared: 195 -@shared_var=`echo "${PETSCFLAGS}" | sed 's/-DUSE_DYNAMIC_LIBRARIES//g'`; \ 196 if [ "${PETSCFLAGS}" != "$$shared_var" ] ; then \ 197 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} shared; fi 198 199# If fortrankernels are used, build them. 200build_kernels: 201 -@kernel_var=`echo "${PETSCFLAGS}" | sed 's/-DUSE_FORTRAN_KERNELS//g'`; \ 202 if [ "${PETSCFLAGS}" != "$$kernel_var" ] ; then \ 203 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} fortrankernels; fi 204 205# Ranlib on the libraries 206ranlib: 207 ${RANLIB} ${PDIR}/*.a 208 209# Deletes PETSc libraries 210deletelibs: chkopts_basic 211 -${RM} -f ${PDIR}/* 212 213# To access the tags in EMACS, type M-x visit-tags-table and specify 214# the file petsc/TAGS. 215# 1) To move to where a PETSc function is defined, enter M-. and the 216# function name. 217# 2) To search for a string and move to the first occurrence, 218# use M-x tags-search and the string. 219# To locate later occurrences, use M-, 220 221TAGS_INCLUDE_FILES = include/*.h include/pinclude/*.h bmake/*/petscconf.h \ 222 include/finclude/*.h 223TAGS_BMAKE_FILES = bmake/common bmake/*/base* 224TAGS_EXAMPLE_FILES = src/*/examples/*/*.[c,h,F,f] src/*/examples/*/*/*.[c,h,F,f] \ 225 src/benchmarks/*.c src/contrib/*/examples/*/*.[c,h,F,f]\ 226 src/fortran/f90/tests/*.[c,h,F,f] 227TAGS_FEXAMPLE_FILES = src/*/examples/*/*.[F,f] src/*/examples/*/*/*.[F,f] \ 228 src/contrib/*/examples/*/*.[F,f]\ 229 src/fortran/f90/tests/*.[F,f] 230TAGS_DOC_FILES = docs/tex/manual/routin.tex docs/tex/manual/manual.tex \ 231 docs/tex/manual/manual_tex.tex docs/tex/manual/intro.tex \ 232 docs/tex/manual/part1.tex docs/tex/manual/part2.tex 233TAGS_SRC_FILES = src/*/*.[c,h] src/*/interface/*.[c,h] src/*/src/*.[c,h] \ 234 src/*/utils/*.[c,h] \ 235 src/*/impls/*.[c,h] src/*/impls/*/*.[c,h] src/*/impls/*/*/*.[c,h] \ 236 src/snes/interface/noise/*.[c,F,h] src/gvec/impls/*/*/*/*/*.[c,h] \ 237 src/contrib/*/*.[c,h] \ 238 src/contrib/*/src/*.[c,h] src/fortran/custom/*.[c,h,F] \ 239 src/fortran/kernels/*.[c,h,F] \ 240 src/fortran/f90/*.[c,h,F] src/fortran/f90/*/*.[c,h,F] \ 241 src/adic/blas/*.c src/lapack/src[1,2,3]/*.c 242TAGS_MAKEFILE_FILES = include/makefile include/*/makefile \ 243 makefile \ 244 src/makefile src/*/makefile src/*/src/makefile \ 245 src/*/interface/makefile \ 246 src/*/utils/makefile \ 247 src/*/impls/makefile src/*/impls/*/makefile src/*/impls/*/*/makefile \ 248 src/snes/interface/noise/makefile src/*/examples/makefile \ 249 src/*/examples/*/makefile src/*/examples/*/*/makefile \ 250 src/gvec/impls/*/*/*/*/makefile src/gvec/impls/*/*/*/makefile \ 251 src/fortran/*/makefile src/fortran/f90/*/makefile \ 252 src/contrib/*/makefile src/contrib/*/src/makefile \ 253 src/contrib/*/examples/makefile src/contrib/*/examples/*/makefile \ 254 src/contrib/sif/*/makefile docs/makefile src/adic/*/makefile \ 255 src/adic/lapack/*/makefile 256 257# Builds all etags files 258alletags: 259 -make etags_complete 260 -make etags 261 -make etags_noexamples 262 -make etags_examples 263 -make etags_makefiles 264 -make ctags 265 266# Builds the basic etags file. This should be employed by most users. 267etags: 268 -${RM} TAGS 269 -etags -f TAGS ${TAGS_INCLUDE_FILES} 270 -etags -a -f TAGS ${TAGS_SRC_FILES} 271 -etags -a -f TAGS ${TAGS_EXAMPLE_FILES} 272 -etags -a -f TAGS ${TAGS_MAKEFILE_FILES} 273 -etags -a -f TAGS ${TAGS_BMAKE_FILES} 274 -chmod g+w TAGS 275 276# Builds complete etags list; only for PETSc developers. 277etags_complete: 278 -${RM} TAGS_COMPLETE 279 -etags -f TAGS_COMPLETE ${TAGS_SRC_FILES} 280 -etags -a -f TAGS_COMPLETE ${TAGS_INCLUDE_FILES} 281 -etags -a -f TAGS_COMPLETE ${TAGS_EXAMPLE_FILES} 282 -etags -a -f TAGS_COMPLETE ${TAGS_MAKEFILE_FILES} 283 -etags -a -f TAGS_COMPLETE ${TAGS_BMAKE_FILES} 284 -etags -a -f TAGS_COMPLETE ${TAGS_DOC_FILES} 285 -chmod g+w TAGS_COMPLETE 286 287# Builds the etags file that excludes the examples directories 288etags_noexamples: 289 -${RM} TAGS_NO_EXAMPLES 290 -etags -f TAGS_NO_EXAMPLES ${TAGS_SRC_FILES} 291 -etags -a -f TAGS_NO_EXAMPLES ${TAGS_INCLUDE_FILES} 292 -etags -a -f TAGS_NO_EXAMPLES ${TAGS_MAKEFILE_FILES} 293 -etags -a -f TAGS_NO_EXAMPLES ${TAGS_BMAKE_FILES} 294 -etags -a -f TAGS_NO_EXAMPLES ${TAGS_DOC_FILES} 295 -chmod g+w TAGS_NO_EXAMPLES 296 297# Builds the etags file for makefiles 298etags_makefiles: 299 -${RM} TAGS_MAKEFILES 300 -etags -f TAGS_MAKEFILES ${TAGS_MAKEFILE_FILES} 301 -etags -a -f TAGS_MAKEFILES ${TAGS_BMAKE_FILES} 302 -chmod g+w TAGS_MAKEFILES 303 304# Builds the etags file for examples 305etags_examples: 306 -${RM} TAGS_EXAMPLES 307 -etags -f TAGS_EXAMPLES ${TAGS_EXAMPLE_FILES} 308 -chmod g+w TAGS_EXAMPLES 309etags_fexamples: 310 -${RM} TAGS_FEXAMPLES 311 -etags -f TAGS_FEXAMPLES ${TAGS_FEXAMPLE_FILES} 312 -chmod g+w TAGS_FEXAMPLES 313 314# 315# To use the tags file from VI do the following: 316# 1. within vi invoke the command - :set tags=/home/bsmith/petsc/vitags 317# or add the command to your ~/.exrc file - set tags=/home/bsmith/petsc/vitags 318# 2. now to go to a tag do - :tag TAGNAME for eg - :tag MatCreate 319# 320ctags: 321 -${RM} vitags 322 -ctags -w -f vitags ${TAGS_INCLUDE_FILES} 323 -ctags -w -a -f vitags ${TAGS_SRC_FILES} 324 -ctags -w -a -f vitags ${TAGS_EXAMPLE_FILES} 325 -ctags -w -a -f vitags ${TAGS_MAKEFILE_FILES} 326 -ctags -w -a -f vitags ${TAGS_BMAKE_FILES} 327 -chmod g+w vitags 328 329# ------------------------------------------------------------------ 330# 331# All remaining actions are intended for PETSc developers only. 332# PETSc users should not generally need to use these commands. 333# 334 335# Deletes man pages (HTML version) 336deletemanualpages: 337 ${RM} -f ${PETSC_DIR}/docs/manualpages/man*/* \ 338 ${PETSC_DIR}/docs/manualpages/man?.html \ 339 ${PETSC_DIR}/docs/manualpages/manualpages.cit 340 341# Deletes man pages (LaTeX version) 342deletelatexpages: 343 ${RM} -f ${PETSC_DIR}/docs/tex/rsum/*sum*.tex 344 345# Builds all versions of the man pages 346allmanpages: allmanualpages alllatexpages 347allmanualpages: deletemanualpages 348 -make ACTION=manualpages_buildcite tree 349 -cd src/fortran/custom; make manualpages_buildcite 350 -cd src/fortran/custom; make manualpages 351 -make ACTION=manualpages tree 352 -maint/wwwman ${PETSC_DIR} 353 -maint/examplesindex.tcl 354 -maint/htmlkeywords.tcl 355 -@chmod g+w docs/manualpages/man*/* 356 357alllatexpages: deletelatexpages 358 -make ACTION=latexpages tree 359 -cd src/fortran/custom; make latexpages 360 -@chmod g+w docs/tex/rsum/* 361 362# Builds Fortran stub files 363allfortranstubs: 364 -@include/foldinclude/generateincludes 365 -@${RM} -f src/fortran/auto/*.c 366 -make ACTION=fortranstubs tree 367 -@cd src/fortran/auto; ${OMAKE} -f makefile fixfortran 368 chmod g+w src/fortran/auto/*.c 369 370allci: 371 -@cd src/fortran/custom ; ${OMAKE} BOPT=${BOPT} ci 372 -@cd src/fortran/f90 ; ${OMAKE} BOPT=${BOPT} ci 373 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=ci tree 374 375allco: 376 -@cd src/fortran/custom ; ${OMAKE} BOPT=${BOPT} co 377 -@cd src/fortran/f90 ; ${OMAKE} BOPT=${BOPT} co 378 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=co tree 379 380# 381# The commands below are for generating ADIC versions of the code; 382# they are not currently used. 383# 384CFLAGS = ${CPPFLAGS} 385alladicignore: 386 -@${RM} ${PDIR}/adicignore 387 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adicignore tree 388 389alladic: 390 -@echo "Beginning to compile ADIC source code in all directories" 391 -@echo "Using ADIC compiler: ${ADIC_CC} ${CFLAGS}" 392 -@echo "=========================================" 393 -@cd include ; \ 394 ${ADIC_CC} -s -f 1 ${CFLAGS} petsc.h 395 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic tree 396 -@cd src/inline ; \ 397 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} adic 398 -@cd src/adic/blas ; \ 399 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} adic 400 -@cd src/adic/lapack ; \ 401 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic tree 402 403alladiclib: 404 -@echo "Beginning to compile ADIC libraries in all directories" 405 -@echo "Using compiler: ${CC} ${COPTFLAGS}" 406 -@echo "-----------------------------------------" 407 -@echo "Using PETSc flags: ${PETSCFLAGS} ${PCONF}" 408 -@echo "-----------------------------------------" 409 -@echo "Using configuration flags:" 410 -@grep "define " bmake/${PETSC_ARCH}/petscconf.h 411 -@echo "-----------------------------------------" 412 -@echo "Using include paths: ${PETSC_INCLUDE}" 413 -@echo "-----------------------------------------" 414 -@echo "Using PETSc directory: ${PETSC_DIR}" 415 -@echo "Using PETSc arch: ${PETSC_ARCH}" 416 -@echo "=========================================" 417 -@${RM} -f ${PDIR}/*adic.a 418 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib tree 419 -@cd src/adic/blas ; \ 420 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} adiclib 421 -@cd src/adic/lapack ; \ 422 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib tree 423 -@cd src/adic/src ; \ 424 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib 425 426# ------------------------------------------------------------------------------- 427# 428# Some macros to check if the fortran interface is up-to-date. 429# 430countfortranfunctions: 431 -@cd ${PETSC_DIR}/src/fortran; egrep '^void' custom/*.c auto/*.c | \ 432 cut -d'(' -f1 | tr -s '' ' ' | cut -d' ' -f2 | uniq | egrep -v "(^$$|Petsc)" | \ 433 sed "s/_$$//" | sort > /tmp/countfortranfunctions 434 435countcfunctions: 436 -@ grep extern ${PETSC_DIR}/include/*.h *.h | grep "(" | tr -s '' ' ' | \ 437 cut -d'(' -f1 | cut -d' ' -f3 | grep -v "\*" | tr -s '' '\012' | \ 438 tr 'A-Z' 'a-z' | sort > /tmp/countcfunctions 439 440difffortranfunctions: countfortranfunctions countcfunctions 441 -@echo -------------- Functions missing in the fortran interface --------------------- 442 -@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^<" | cut -d' ' -f2 443 -@echo ----------------- Functions missing in the C interface ------------------------ 444 -@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^>" | cut -d' ' -f2 445 -@${RM} /tmp/countcfunctions /tmp/countfortranfunctions 446 447checkbadfortranstubs: 448 -@echo "=========================================" 449 -@echo "Functions with MPI_Comm as an Argument" 450 -@echo "=========================================" 451 -@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'MPI_Comm' | \ 452 tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3 453 -@echo "=========================================" 454 -@echo "Functions with a String as an Argument" 455 -@echo "=========================================" 456 -@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'char \*' | \ 457 tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3 458 -@echo "=========================================" 459 -@echo "Functions with Pointers to PETSc Objects as Argument" 460 -@echo "=========================================" 461 -@cd ${PETSC_DIR}/src/fortran/auto; \ 462 _p_OBJ=`grep _p_ ${PETSC_DIR}/include/*.h | tr -s '' ' ' | \ 463 cut -d' ' -f 3 | tr -s '' '\012' | grep -v '{' | cut -d'*' -f1 | \ 464 sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \ 465 for OBJ in $$_p_OBJ; do \ 466 grep "$$OBJ \*" *.c | tr -s '' ' ' | tr -s ':' ' ' | \ 467 cut -d'(' -f1 | cut -d' ' -f1,3; \ 468 done 469