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