1# $Id: makefile,v 1.223 1998/04/09 18:04:04 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 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: ${CONF}" 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 -@echo "On some machines you may get messages of the form" 160 -@echo "PetscScalarAddressToFortran:C and Fortran arrays are" 161 -@echo "not commonly aligned or are too far apart to be indexed" 162 -@echo "by an integer. Locations: C xxxc Fortran xxxf" 163 -@echo "Locations/sizeof(Scalar): C yyc Fortran yyf" 164 -@echo "This indicates that you may not be able to use the" 165 -@echo "PETSc routines VecGetArray() and MatGetArray() from Fortran" 166 -@echo "=========================================" 167 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \ 168 ACTION=testexamples_3 tree 169 -@echo "Completed compiling and running Fortran test examples" 170 -@echo "=========================================" 171# Builds noise routines (not yet publically available) 172# Note: libfast cannot run on .F files on certain machines, so we 173# use lib and check for errors here. 174noise: info chkpetsc_dir 175 -@echo "Beginning to compile noise routines" 176 -@echo "=========================================" 177 -@cd src/snes/interface/noise; \ 178 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib > trashz 2>&1; \ 179 grep -v clog trashz | grep -v "information sections" | \ 180 egrep -i '(Error|warning|Can)' >> /dev/null;\ 181 if [ "$$?" != 1 ]; then \ 182 cat trashz ; fi; ${RM} trashz 183 ${RANLIB} ${PDIR}/libpetscsnes.a 184 -@chmod g+w ${PDIR}/libpetscsnes.a 185 -@echo "Completed compiling noise routines" 186 -@echo "=========================================" 187 188petscblas: info chkpetsc_dir 189 -${RM} -f ${PDIR}/libpetscblas.* 190 -@echo "BEGINNING TO COMPILE C VERSION OF BLAS AND LAPACK" 191 -@echo "=========================================" 192 -@cd src/adic/blas; \ 193 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} libfast 194 -@cd src/adic/lapack; \ 195 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=libfast tree 196 ${RANLIB} ${PDIR}/libpetscblas.a 197 -@chmod g+w ${PDIR}/*.a 198 -@echo "Completed compiling C version of BLAS and LAPACK" 199 -@echo "=========================================" 200 201# If USE_DYNAMIC_LIBRARIES flag is set, build shared libs 202build_shared: 203 -@shared_var=`echo "${PETSCFLAGS}" | sed 's/-DUSE_DYNAMIC_LIBRARIES//g'`; \ 204 if [ "${PETSCFLAGS}" != "$$shared_var" ] ; then \ 205 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} shared; fi 206 207# If fortrankernels are used, build them. 208build_kernels: 209 -@kernel_var=`echo "${PETSCFLAGS}" | sed 's/-DUSE_FORTRAN_KERNELS//g'`; \ 210 if [ "${PETSCFLAGS}" != "$$kernel_var" ] ; then \ 211 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} fortrankernels; fi 212 213# Ranlib on the libraries 214ranlib: 215 ${RANLIB} ${PDIR}/*.a 216 217# Deletes PETSc libraries 218deletelibs: chkopts_basic 219 -${RM} -f ${PDIR}/* 220 221# Deletes man pages (HTML version) 222deletemanualpages: 223 ${RM} -f ${PETSC_DIR}/docs/manualpages/man*/* ${PETSC_DIR}/docs/manualpages/www.cit \ 224 ${PETSC_DIR}/docs/manualpages/man*.html 225 226# Deletes man pages (LaTeX version) 227deletelatexpages: 228 ${RM} -f ${PETSC_DIR}/docs/tex/rsum/*sum*.tex 229 230# To access the tags in EMACS, type M-x visit-tags-table and specify 231# the file petsc/TAGS. 232# 1) To move to where a PETSc function is defined, enter M-. and the 233# function name. 234# 2) To search for a string and move to the first occurrence, 235# use M-x tags-search and the string. 236# To locate later occurrences, use M-, 237 238TAGS_INCLUDE_FILES = include/*.h include/pinclude/*.h include/FINCLUDE/*.h 239TAGS_BMAKE_FILES = bmake/common bmake/*/base* 240TAGS_EXAMPLE_FILES = src/*/examples/*/*.[c,h,F,f] src/*/examples/*/*/*.[c,h,F,f] \ 241 src/benchmarks/*.c src/contrib/*/examples/*/*.[c,h,F,f]\ 242 src/fortran/f90/tests 243TAGS_DOC_FILES = docs/tex/manual/routin.tex docs/tex/manual/manual.tex \ 244 docs/tex/manual/manual_tex.tex docs/tex/manual/intro.tex \ 245 docs/tex/manual/part1.tex docs/tex/manual/part2.tex 246TAGS_SRC_FILES = src/*/*.[c,h] src/*/interface/*.[c,h] src/*/src/*.[c,h] \ 247 src/*/utils/*.[c,h] \ 248 src/*/impls/*.[c,h] src/*/impls/*/*.[c,h] src/*/impls/*/*/*.[c,h] \ 249 src/snes/interface/noise/*.[c,F,h] src/gvec/impls/*/*/*/*/*.[c,h] \ 250 src/contrib/*/*.[c,h] \ 251 src/contrib/*/src/*.[c,h] src/fortran/custom/*.[c,h,F] \ 252 src/fortran/kernels/*.[c,h,F] \ 253 src/fortran/f90/*.[c,h,F] src/fortran/f90/*/*.[c,h,F] \ 254 src/adic/blas/*.c src/lapack/src[1,2,3]/*.c 255TAGS_MAKEFILE_FILES = include/makefile include/*/makefile \ 256 makefile \ 257 src/makefile src/*/makefile src/*/src/makefile \ 258 src/*/interface/makefile \ 259 src/*/utils/makefile \ 260 src/*/impls/makefile src/*/impls/*/makefile src/*/impls/*/*/makefile \ 261 src/snes/interface/noise/makefile src/*/examples/makefile \ 262 src/*/examples/*/makefile src/*/examples/*/*/makefile \ 263 src/gvec/impls/*/*/*/*/makefile src/gvec/impls/*/*/*/makefile \ 264 src/fortran/*/makefile src/fortran/f90/*/makefile \ 265 src/contrib/*/makefile src/contrib/*/src/makefile \ 266 src/contrib/*/examples/makefile src/contrib/*/examples/*/makefile \ 267 src/contrib/sif/*/makefile docs/makefile src/adic/*/makefile \ 268 src/adic/lapack/*/makefile 269 270# Builds all etags files 271alletags: 272 -make etags_complete 273 -make etags 274 -make etags_noexamples 275 -make etags_examples 276 -make etags_makefiles 277 278# Builds the basic etags file. This should be employed by most users. 279etags: 280 -${RM} TAGS 281 -etags -f TAGS ${TAGS_INCLUDE_FILES} 282 -etags -a -f TAGS ${TAGS_SRC_FILES} 283 -etags -a -f TAGS ${TAGS_EXAMPLE_FILES} 284 -etags -a -f TAGS ${TAGS_MAKEFILE_FILES} 285 -etags -a -f TAGS ${TAGS_BMAKE_FILES} 286 -chmod g+w TAGS 287 288# Builds complete etags list; only for PETSc developers. 289etags_complete: 290 -${RM} TAGS_COMPLETE 291 -etags -f TAGS_COMPLETE ${TAGS_SRC_FILES} 292 -etags -a -f TAGS_COMPLETE ${TAGS_INCLUDE_FILES} 293 -etags -a -f TAGS_COMPLETE ${TAGS_EXAMPLE_FILES} 294 -etags -a -f TAGS_COMPLETE ${TAGS_MAKEFILE_FILES} 295 -etags -a -f TAGS_COMPLETE ${TAGS_BMAKE_FILES} 296 -etags -a -f TAGS_COMPLETE ${TAGS_DOC_FILES} 297 -chmod g+w TAGS_COMPLETE 298 299# Builds the etags file that excludes the examples directories 300etags_noexamples: 301 -${RM} TAGS_NO_EXAMPLES 302 -etags -f TAGS_NO_EXAMPLES ${TAGS_SRC_FILES} 303 -etags -a -f TAGS_NO_EXAMPLES ${TAGS_INCLUDE_FILES} 304 -etags -a -f TAGS_NO_EXAMPLES ${TAGS_MAKEFILE_FILES} 305 -etags -a -f TAGS_NO_EXAMPLES ${TAGS_BMAKE_FILES} 306 -etags -a -f TAGS_NO_EXAMPLES ${TAGS_DOC_FILES} 307 -chmod g+w TAGS_NO_EXAMPLES 308 309# Builds the etags file for makefiles 310etags_makefiles: 311 -${RM} TAGS_MAKEFILES 312 -etags -f TAGS_MAKEFILES ${TAGS_MAKEFILE_FILES} 313 -etags -a -f TAGS_MAKEFILES ${TAGS_BMAKE_FILES} 314 -chmod g+w TAGS_MAKEFILES 315 316# Builds the etags file for examples 317etags_examples: 318 -${RM} TAGS_EXAMPLES 319 -etags -f TAGS_EXAMPLES ${TAGS_EXAMPLE_FILES} 320 -chmod g+w TAGS_EXAMPLES 321 322# 323# To use the tags file from VI do the following: 324# 1. within vi invoke the command - :set tags=/home/bsmith/petsc/tags 325# or add the command to your ~/.exrc file - set tags=/home/bsmith/petsc/tags 326# 2. now to go to a tag do - :tag TAGNAME for eg - :tag MatCreate 327# 328ctags: 329 -${RM} tags 330 -ctags -w -f tags ${TAGS_INCLUDE_FILES} 331 -ctags -w -a -f tags ${TAGS_SRC_FILES} 332 -ctags -w -a -f tags ${TAGS_EXAMPLE_FILES} 333 -ctags -w -a -f tags ${TAGS_MAKEFILE_FILES} 334 -ctags -w -a -f tags ${TAGS_BMAKE_FILES} 335 -chmod g+w tags 336 337# ------------------------------------------------------------------ 338# 339# All remaining actions are intended for PETSc developers only. 340# PETSc users should not generally need to use these commands. 341# 342 343# Builds all versions of the man pages 344allmanpages: allmanualpages alllatexpages 345allmanualpages: deletemanualpages 346 -make ACTION=manualpages_buildcite tree 347 -cd src/fortran/custom; make manualpages_buildcite 348 -cd src/fortran/custom; make manualpages 349 -make ACTION=manualpages tree 350 -maint/wwwman ${PETSC_DIR} 351 -maint/examplesindex.tcl 352 -maint/htmlkeywords.tcl 353 -@chmod g+w docs/manualpages/man*/* 354 355alllatexpages: deletelatexpages 356 -make ACTION=latexpages tree 357 -cd src/fortran/custom; make latexpages 358 -@chmod g+w docs/tex/rsum/* 359 360# Builds Fortran stub files 361allfortranstubs: 362 -@include/finclude/generateincludes 363 -@${RM} -f src/fortran/auto/*.c 364 -make ACTION=fortranstubs tree 365 -@cd src/fortran/auto; ${OMAKE} -f makefile fixfortran 366 chmod g+w src/fortran/auto/*.c 367 368allci: 369 -@cd src/fortran/custom ; ${OMAKE} BOPT=${BOPT} ci 370 -@cd src/fortran/f90 ; ${OMAKE} BOPT=${BOPT} ci 371 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=ci tree 372 373allco: 374 -@cd src/fortran/custom ; ${OMAKE} BOPT=${BOPT} co 375 -@cd src/fortran/f90 ; ${OMAKE} BOPT=${BOPT} co 376 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=co tree 377 378# 379# The commands below are for generating ADIC versions of the code; 380# they are not currently used. 381# 382CFLAGS = ${CPPFLAGS} ${CONF} 383alladicignore: 384 -@${RM} ${PDIR}/adicignore 385 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adicignore tree 386 387alladic: 388 -@echo "Beginning to compile ADIC source code in all directories" 389 -@echo "Using ADIC compiler: ${ADIC_CC} ${CFLAGS}" 390 -@echo "=========================================" 391 -@cd include ; \ 392 ${ADIC_CC} -s -f 1 ${CFLAGS} petsc.h 393 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic tree 394 -@cd src/inline ; \ 395 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} adic 396 -@cd src/adic/blas ; \ 397 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} adic 398 -@cd src/adic/lapack ; \ 399 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic tree 400 401alladiclib: 402 -@echo "Beginning to compile ADIC libraries in all directories" 403 -@echo "Using compiler: ${CC} ${COPTFLAGS}" 404 -@echo "-----------------------------------------" 405 -@echo "Using PETSc flags: ${PETSCFLAGS} ${PCONF}" 406 -@echo "-----------------------------------------" 407 -@echo "Using configuration flags: ${CONF}" 408 -@echo "-----------------------------------------" 409 -@echo "Using include paths: ${PETSC_INCLUDE}" 410 -@echo "-----------------------------------------" 411 -@echo "Using PETSc directory: ${PETSC_DIR}" 412 -@echo "Using PETSc arch: ${PETSC_ARCH}" 413 -@echo "=========================================" 414 -@${RM} -f ${PDIR}/*adic.a 415 -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib tree 416 -@cd src/adic/blas ; \ 417 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} adiclib 418 -@cd src/adic/lapack ; \ 419 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib tree 420 -@cd src/adic/src ; \ 421 ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib 422 423# ------------------------------------------------------------------------------- 424# 425# Some macros to check if the fortran interface is up-to-date. 426# 427countfortranfunctions: 428 -@cd ${PETSC_DIR}/src/fortran; egrep '^void' custom/*.c auto/*.c | \ 429 cut -d'(' -f1 | tr -s '' ' ' | cut -d' ' -f2 | uniq | egrep -v "(^$$|Petsc)" | \ 430 sed "s/_$$//" | sort > /tmp/countfortranfunctions 431 432countcfunctions: 433 -@ grep extern ${PETSC_DIR}/include/*.h *.h | grep "(" | tr -s '' ' ' | \ 434 cut -d'(' -f1 | cut -d' ' -f3 | grep -v "\*" | tr -s '' '\012' | \ 435 tr 'A-Z' 'a-z' | sort > /tmp/countcfunctions 436 437difffortranfunctions: countfortranfunctions countcfunctions 438 -@echo -------------- Functions missing in the fortran interface --------------------- 439 -@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^<" | cut -d' ' -f2 440 -@echo ----------------- Functions missing in the C interface ------------------------ 441 -@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^>" | cut -d' ' -f2 442 -@${RM} /tmp/countcfunctions /tmp/countfortranfunctions 443 444checkbadfortranstubs: 445 -@echo "=========================================" 446 -@echo "Functions with MPI_Comm as an Argument" 447 -@echo "=========================================" 448 -@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'MPI_Comm' | \ 449 tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3 450 -@echo "=========================================" 451 -@echo "Functions with a String as an Argument" 452 -@echo "=========================================" 453 -@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'char \*' | \ 454 tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3 455 -@echo "=========================================" 456 -@echo "Functions with Pointers to PETSc Objects as Argument" 457 -@echo "=========================================" 458 -@cd ${PETSC_DIR}/src/fortran/auto; \ 459 _p_OBJ=`grep _p_ ${PETSC_DIR}/include/*.h | tr -s '' ' ' | \ 460 cut -d' ' -f 3 | tr -s '' '\012' | grep -v '{' | cut -d'*' -f1 | \ 461 sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \ 462 for OBJ in $$_p_OBJ; do \ 463 grep "$$OBJ \*" *.c | tr -s '' ' ' | tr -s ':' ' ' | \ 464 cut -d'(' -f1 | cut -d' ' -f1,3; \ 465 done 466