Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 6 | dsic.upv.es!jroman | 1 | # |
| 2 | # This is the makefile for installing SLEPc. See the Users Manual |
||
| 3 | # for directions on installing SLEPc. |
||
| 4 | # |
||
| 1378 | slepc | 5 | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 6 | # SLEPc - Scalable Library for Eigenvalue Problem Computations |
||
| 7 | # Copyright (c) 2002-2007, Universidad Politecnica de Valencia, Spain |
||
| 8 | # |
||
| 9 | # This file is part of SLEPc. See the README file for conditions of use |
||
| 10 | # and additional information. |
||
| 11 | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
||
| 12 | # |
||
| 13 | |||
| 6 | dsic.upv.es!jroman | 14 | ALL: all |
| 15 | LOCDIR = . |
||
| 16 | DIRS = src include docs |
||
| 17 | |||
| 1523 | slepc | 18 | include ${SLEPC_DIR}/conf/slepc_common |
| 6 | dsic.upv.es!jroman | 19 | |
| 20 | # |
||
| 21 | # Basic targets to build SLEPc libraries. |
||
| 22 | # all: builds the C/C++ and Fortran libraries |
||
| 23 | all: |
||
| 785 | dsic.upv.es!antodo | 24 | @${OMAKE} PETSC_ARCH=${PETSC_ARCH} chkpetsc_dir |
| 25 | @${OMAKE} PETSC_ARCH=${PETSC_ARCH} chkslepc_dir |
||
| 1523 | slepc | 26 | -@${OMAKE} all_build 2>&1 | tee ${PETSC_ARCH}/conf/make.log |
| 27 | -@egrep -i "( error | error:)" ${PETSC_ARCH}/conf/make.log > /dev/null; if [ "$$?" = "0" ]; then \ |
||
| 785 | dsic.upv.es!antodo | 28 | echo "********************************************************************"; \ |
| 1523 | slepc | 29 | echo " Error during compile, check ${PETSC_ARCH}/conf/make.log"; \ |
| 30 | echo " Send all contents of ${PETSC_ARCH}/conf to slepc-maint@grycap.upv.es";\ |
||
| 785 | dsic.upv.es!antodo | 31 | echo "********************************************************************"; \ |
| 32 | exit 1; fi |
||
| 33 | |||
| 34 | all_build: chk_petsc_dir chk_slepc_dir chklib_dir info deletelibs build shared |
||
| 6 | dsic.upv.es!jroman | 35 | # |
| 36 | # Prints information about the system and version of SLEPc being compiled |
||
| 37 | # |
||
| 38 | info: |
||
| 39 | -@echo "==========================================" |
||
| 40 | -@echo On `date` on `hostname` |
||
| 41 | -@echo Machine characteristics: `uname -a` |
||
| 42 | -@echo "-----------------------------------------" |
||
| 785 | dsic.upv.es!antodo | 43 | -@echo "Using SLEPc directory: ${SLEPC_DIR}" |
| 44 | -@echo "Using PETSc directory: ${PETSC_DIR}" |
||
| 45 | -@echo "Using PETSc arch: ${PETSC_ARCH}" |
||
| 6 | dsic.upv.es!jroman | 46 | -@echo "-----------------------------------------" |
| 785 | dsic.upv.es!antodo | 47 | -@grep "define SLEPC_VERSION" ${SLEPC_DIR}/include/slepcversion.h | ${SED} "s/........//" |
| 6 | dsic.upv.es!jroman | 48 | -@echo "-----------------------------------------" |
| 785 | dsic.upv.es!antodo | 49 | -@grep "define PETSC_VERSION" ${PETSC_DIR}/include/petscversion.h | ${SED} "s/........//" |
| 50 | -@echo "-----------------------------------------" |
||
| 1078 | slepc | 51 | -@echo "Using PETSc configure options " ${CONFIGURE_OPTIONS} |
| 52 | -@echo "Using SLEPc configuration flags:" |
||
| 1523 | slepc | 53 | -@cat ${SLEPC_DIR}/${PETSC_ARCH}/conf/slepcvariables |
| 1078 | slepc | 54 | -@echo "Using PETSc configuration flags:" |
| 1527 | slepc | 55 | -@if [ -e ${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h ]; then \ |
| 56 | grep "\#define " ${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h; \ |
||
| 57 | else \ |
||
| 58 | grep "\#define " ${PETSC_DIR}/include/petscconf.h; \ |
||
| 59 | fi |
||
| 785 | dsic.upv.es!antodo | 60 | -@echo "-----------------------------------------" |
| 61 | -@echo "Using include paths: ${SLEPC_INCLUDE} ${PETSC_INCLUDE}" |
||
| 62 | -@echo "------------------------------------------" |
||
| 1042 | slepc | 63 | -@echo "Using C/C++ compiler: ${PCC} ${PCC_FLAGS} ${COPTFLAGS} ${CFLAGS}" |
| 785 | dsic.upv.es!antodo | 64 | -@echo "C/C++ Compiler version: " `${CCV}` |
| 65 | -@if [ "${FC}" != "" ]; then \ |
||
| 1042 | slepc | 66 | echo "Using Fortran compiler: ${FC} ${FC_FLAGS} ${FFLAGS} ${FPP_FLAGS}";\ |
| 785 | dsic.upv.es!antodo | 67 | echo "Fortran Compiler version: " `${FCV}`;\ |
| 68 | fi |
||
| 6 | dsic.upv.es!jroman | 69 | -@echo "-----------------------------------------" |
| 1042 | slepc | 70 | -@echo "Using C/C++ linker: ${PCC_LINKER}" |
| 785 | dsic.upv.es!antodo | 71 | -@if [ "${FC}" != "" ]; then \ |
| 72 | echo "Using Fortran linker: ${FC_LINKER}";\ |
||
| 73 | fi |
||
| 6 | dsic.upv.es!jroman | 74 | -@echo "-----------------------------------------" |
| 785 | dsic.upv.es!antodo | 75 | -@echo "Using libraries: ${SLEPC_LIB}" |
| 6 | dsic.upv.es!jroman | 76 | -@echo "------------------------------------------" |
| 785 | dsic.upv.es!antodo | 77 | -@echo "Using mpirun: ${MPIRUN}" |
| 6 | dsic.upv.es!jroman | 78 | -@echo "==========================================" |
| 79 | |||
| 80 | # |
||
| 81 | # Builds the SLEPc libraries |
||
| 82 | # |
||
| 785 | dsic.upv.es!antodo | 83 | build: |
| 6 | dsic.upv.es!jroman | 84 | -@echo "BEGINNING TO COMPILE SLEPc LIBRARIES IN ALL DIRECTORIES" |
| 85 | -@echo "=========================================" |
||
| 1389 | slepc | 86 | -@${OMAKE} PETSC_ARCH=${PETSC_ARCH} ACTION=libfast tree |
| 785 | dsic.upv.es!antodo | 87 | ${RANLIB} ${SLEPC_LIB_DIR}/*.${AR_LIB_SUFFIX} |
| 6 | dsic.upv.es!jroman | 88 | -@echo "Completed building SLEPc libraries" |
| 89 | -@echo "=========================================" |
||
| 90 | |||
| 1523 | slepc | 91 | # Simple test examples for checking a correct installation |
| 1098 | slepc | 92 | test: |
| 93 | -@echo "Running test examples to verify correct installation" |
||
| 1413 | slepc | 94 | @cd src/examples; ${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} testex1 |
| 95 | @if [ "${FC}" != "" ]; then cd src/examples; ${OMAKE} PETSC_ARCH=${PETSC_ARCH} SLEPC_DIR=${SLEPC_DIR} PETSC_DIR=${PETSC_DIR} testex1f; fi; |
||
| 1098 | slepc | 96 | -@echo "Completed test examples" |
| 97 | |||
| 1523 | slepc | 98 | # Builds SLEPc test examples for C |
| 801 | dsic.upv.es!antodo | 99 | testexamples: info |
| 6 | dsic.upv.es!jroman | 100 | -@echo "BEGINNING TO COMPILE AND RUN SLEPc TEST EXAMPLES" |
| 101 | -@echo "Due to different numerical round-off on certain" |
||
| 102 | -@echo "machines some of the numbers may not match exactly." |
||
| 103 | -@echo "=========================================" |
||
| 801 | dsic.upv.es!antodo | 104 | -@${OMAKE} PETSC_ARCH=${PETSC_ARCH} \ |
| 932 | dsic.upv.es!antodo | 105 | ACTION=testexamples_C tree |
| 6 | dsic.upv.es!jroman | 106 | -@echo "Completed compiling and running test examples" |
| 107 | -@echo "=========================================" |
||
| 108 | |||
| 1523 | slepc | 109 | # Builds SLEPc test examples for Fortran |
| 801 | dsic.upv.es!antodo | 110 | testfortran: info |
| 6 | dsic.upv.es!jroman | 111 | -@echo "BEGINNING TO COMPILE AND RUN SLEPc FORTRAN TEST EXAMPLES" |
| 112 | -@echo "=========================================" |
||
| 113 | -@echo "Due to different numerical round-off on certain" |
||
| 114 | -@echo "machines or the way Fortran formats numbers" |
||
| 115 | -@echo "some of the results may not match exactly." |
||
| 116 | -@echo "=========================================" |
||
| 801 | dsic.upv.es!antodo | 117 | -@if [ "${FC}" != "" ]; then \ |
| 932 | dsic.upv.es!antodo | 118 | ${OMAKE} PETSC_ARCH=${PETSC_ARCH} ACTION=testexamples_Fortran tree ; \ |
| 604 | dsic.upv.es!antodo | 119 | echo "Completed compiling and running Fortran test examples"; \ |
| 120 | else \ |
||
| 121 | echo "Error: No FORTRAN compiler available"; \ |
||
| 122 | fi |
||
| 123 | -@ |
||
| 6 | dsic.upv.es!jroman | 124 | -@echo "=========================================" |
| 125 | |||
| 1523 | slepc | 126 | # Uni-processor examples in C |
| 801 | dsic.upv.es!antodo | 127 | testexamples_uni: info |
| 6 | dsic.upv.es!jroman | 128 | -@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR EXAMPLES" |
| 129 | -@echo "Due to different numerical round-off on certain" |
||
| 130 | -@echo "machines some of the numbers may not match exactly." |
||
| 131 | -@echo "=========================================" |
||
| 801 | dsic.upv.es!antodo | 132 | -@${OMAKE} PETSC_ARCH=${PETSC_ARCH} \ |
| 932 | dsic.upv.es!antodo | 133 | ACTION=testexamples_C_X11_MPIUni tree |
| 6 | dsic.upv.es!jroman | 134 | -@echo "Completed compiling and running uniprocessor test examples" |
| 135 | -@echo "=========================================" |
||
| 804 | dsic.upv.es!antodo | 136 | |
| 1523 | slepc | 137 | # Uni-processor examples in Fortran |
| 801 | dsic.upv.es!antodo | 138 | testfortran_uni: info |
| 6 | dsic.upv.es!jroman | 139 | -@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR FORTRAN EXAMPLES" |
| 140 | -@echo "Due to different numerical round-off on certain" |
||
| 141 | -@echo "machines some of the numbers may not match exactly." |
||
| 142 | -@echo "=========================================" |
||
| 801 | dsic.upv.es!antodo | 143 | -@if [ "${FC}" != "" ]; then \ |
| 932 | dsic.upv.es!antodo | 144 | ${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ACTION=testexamples_Fortran_MPIUni tree; \ |
| 1523 | slepc | 145 | echo "Completed compiling and running uniprocessor Fortran test examples"; \ |
| 604 | dsic.upv.es!antodo | 146 | else \ |
| 147 | echo "Error: No FORTRAN compiler available"; \ |
||
| 148 | fi |
||
| 149 | -@ |
||
| 6 | dsic.upv.es!jroman | 150 | -@echo "=========================================" |
| 151 | |||
| 152 | # Ranlib on the libraries |
||
| 785 | dsic.upv.es!antodo | 153 | ranlib: |
| 6 | dsic.upv.es!jroman | 154 | ${RANLIB} ${SLEPC_LIB_DIR}/*.${LIB_SUFFIX} |
| 155 | |||
| 156 | # Deletes SLEPc libraries |
||
| 785 | dsic.upv.es!antodo | 157 | deletelibs: |
| 6 | dsic.upv.es!jroman | 158 | -${RM} -f ${SLEPC_LIB_DIR}/* |
| 159 | |||
| 785 | dsic.upv.es!antodo | 160 | # Cleans up build |
| 161 | allclean: deletelibs |
||
| 162 | -@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ACTION=clean tree |
||
| 6 | dsic.upv.es!jroman | 163 | |
| 164 | # |
||
| 785 | dsic.upv.es!antodo | 165 | # Check if PETSC_DIR variable specified is valid |
| 166 | # |
||
| 167 | chk_petsc_dir: |
||
| 168 | @if [ ! -f ${PETSC_DIR}/include/petscversion.h ]; then \ |
||
| 169 | echo "Incorrect PETSC_DIR specified: ${PETSC_DIR}!"; \ |
||
| 170 | echo "You need to use / to separate directories, not \\!"; \ |
||
| 171 | echo "Aborting build"; \ |
||
| 172 | false; fi |
||
| 173 | # |
||
| 6 | dsic.upv.es!jroman | 174 | # Check if SLEPC_DIR variable specified is valid |
| 175 | # |
||
| 176 | chk_slepc_dir: |
||
| 177 | @if [ ! -f ${SLEPC_DIR}/include/slepcversion.h ]; then \ |
||
| 178 | echo "Incorrect SLEPC_DIR specified: ${SLEPC_DIR}!"; \ |
||
| 179 | echo "You need to use / to separate directories, not \\!"; \ |
||
| 180 | echo "Aborting build"; \ |
||
| 181 | false; fi |
||
| 182 | |||
| 1366 | slepc | 183 | install: |
| 1527 | slepc | 184 | -@if [ "${PETSC_ARCH}" == "" ]; then \ |
| 185 | echo "PETSC_ARCH is undefined";\ |
||
| 186 | elif [ "${SLEPC_INSTALL_DIR}" = "${SLEPC_DIR}/${PETSC_ARCH}" ]; then \ |
||
| 1366 | slepc | 187 | echo "Install directory is current directory; nothing needs to be done";\ |
| 188 | else \ |
||
| 189 | echo Installing SLEPc at ${SLEPC_INSTALL_DIR};\ |
||
| 190 | if [ ! -d `dirname ${SLEPC_INSTALL_DIR}` ]; then \ |
||
| 191 | ${MKDIR} `dirname ${SLEPC_INSTALL_DIR}` ; \ |
||
| 192 | fi;\ |
||
| 193 | if [ ! -d ${SLEPC_INSTALL_DIR} ]; then \ |
||
| 194 | ${MKDIR} ${SLEPC_INSTALL_DIR} ; \ |
||
| 195 | fi;\ |
||
| 1372 | slepc | 196 | if [ ! -d ${SLEPC_INSTALL_DIR}/include ]; then \ |
| 197 | ${MKDIR} ${SLEPC_INSTALL_DIR}/include ; \ |
||
| 198 | fi;\ |
||
| 199 | cp -f include/*.h ${SLEPC_INSTALL_DIR}/include;\ |
||
| 200 | if [ ! -d ${SLEPC_INSTALL_DIR}/include/finclude ]; then \ |
||
| 201 | ${MKDIR} ${SLEPC_INSTALL_DIR}/include/finclude ; \ |
||
| 202 | fi;\ |
||
| 203 | cp -f include/finclude/*.h ${SLEPC_INSTALL_DIR}/include/finclude;\ |
||
| 1527 | slepc | 204 | if [ ! -d ${SLEPC_INSTALL_DIR}/include/private ]; then \ |
| 205 | ${MKDIR} ${SLEPC_INSTALL_DIR}/include/private ; \ |
||
| 206 | fi;\ |
||
| 207 | cp -f include/finclude/*.h ${SLEPC_INSTALL_DIR}/include/private;\ |
||
| 1523 | slepc | 208 | if [ ! -d ${SLEPC_INSTALL_DIR}/conf ]; then \ |
| 209 | ${MKDIR} ${SLEPC_INSTALL_DIR}/conf ; \ |
||
| 1366 | slepc | 210 | fi;\ |
| 1523 | slepc | 211 | cp -f conf/slepc_common* ${SLEPC_INSTALL_DIR}/conf;\ |
| 1527 | slepc | 212 | cp -f ${PETSC_ARCH}/conf/slepcvariables ${SLEPC_INSTALL_DIR}/conf;\ |
| 213 | if [ ! -d ${SLEPC_INSTALL_DIR}/lib ]; then \ |
||
| 214 | ${MKDIR} ${SLEPC_INSTALL_DIR}/lib ; \ |
||
| 1366 | slepc | 215 | fi;\ |
| 1523 | slepc | 216 | if [ -d ${PETSC_ARCH}/lib ]; then \ |
| 1527 | slepc | 217 | cp -f ${PETSC_ARCH}/lib/* ${SLEPC_INSTALL_DIR}/lib;\ |
| 218 | ${RANLIB} ${SLEPC_INSTALL_DIR}/lib/*.a ;\ |
||
| 1366 | slepc | 219 | fi;\ |
| 1527 | slepc | 220 | echo "If using sh/bash, do the following:";\ |
| 221 | echo " SLEPC_DIR="${SLEPC_INSTALL_DIR}"; export SLEPC_DIR";\ |
||
| 222 | echo " unset PETSC_ARCH";\ |
||
| 223 | echo "If using csh/tcsh, do the following:";\ |
||
| 224 | echo " setenv SLEPC_DIR "${SLEPC_INSTALL_DIR};\ |
||
| 225 | echo " unsetenv PETSC_ARCH";\ |
||
| 226 | echo "Now run the testsuite to verify the install with the following:";\ |
||
| 227 | echo " make test";\ |
||
| 1366 | slepc | 228 | fi; |
| 42 | dsic.upv.es!antodo | 229 | |
| 6 | dsic.upv.es!jroman | 230 | # ------------------------------------------------------------------ |
| 231 | # |
||
| 232 | # All remaining actions are intended for SLEPc developers only. |
||
| 233 | # SLEPc users should not generally need to use these commands. |
||
| 234 | # |
||
| 235 | |||
| 236 | # Builds all the documentation |
||
| 804 | dsic.upv.es!antodo | 237 | alldoc: alldoc1 alldoc2 |
| 6 | dsic.upv.es!jroman | 238 | |
| 804 | dsic.upv.es!antodo | 239 | # Build everything that goes into 'doc' dir except html sources |
| 1161 | slepc | 240 | alldoc1: chk_loc deletemanualpages |
| 42 | dsic.upv.es!antodo | 241 | -${OMAKE} ACTION=manualpages_buildcite tree_basic LOC=${LOC} |
| 804 | dsic.upv.es!antodo | 242 | -@sed -e s%man+../%man+manualpages/% ${LOC}/docs/manualpages/manualpages.cit > ${LOC}/docs/manualpages/htmlmap |
| 243 | -@cat ${PETSC_DIR}/src/docs/mpi.www.index >> ${LOC}/docs/manualpages/htmlmap |
||
| 1161 | slepc | 244 | -${OMAKE} ACTION=slepc_manualpages tree_basic LOC=${LOC} |
| 1455 | slepc | 245 | -${PETSC_DIR}/bin/maint/wwwindex.py ${SLEPC_DIR} ${LOC} |
| 804 | dsic.upv.es!antodo | 246 | -${OMAKE} ACTION=manexamples tree_basic LOC=${LOC} |
| 247 | |||
| 248 | # Builds .html versions of the source |
||
| 249 | # html overwrites some stuff created by update-docs - hence this is done later. |
||
| 250 | alldoc2: chk_loc |
||
| 251 | -${OMAKE} ACTION=slepc_html PETSC_DIR=${PETSC_DIR} alltree LOC=${LOC} |
||
| 47 | dsic.upv.es!antodo | 252 | cp ${LOC}/docs/manual.htm ${LOC}/docs/index.html |
| 6 | dsic.upv.es!jroman | 253 | |
| 804 | dsic.upv.es!antodo | 254 | # Deletes man pages (HTML version) |
| 255 | deletemanualpages: chk_loc |
||
| 256 | -@if [ -d ${LOC} -a -d ${LOC}/docs/manualpages ]; then \ |
||
| 257 | find ${LOC}/docs/manualpages -type f -name "*.html" -exec ${RM} {} \; ;\ |
||
| 258 | ${RM} ${LOC}/docs/manualpages/manualpages.cit ;\ |
||
| 259 | fi |
||
| 260 | |||
| 6 | dsic.upv.es!jroman | 261 | # Builds Fortran stub files |
| 794 | dsic.upv.es!antodo | 262 | allfortranstubs: |
| 986 | slepc | 263 | -@${SLEPC_DIR}/config/generatefortranstubs.py ${BFORT} |
| 6 | dsic.upv.es!jroman | 264 | |
| 265 | # ------------------------------------------------------------------------------- |
||
| 266 | # |
||
| 1523 | slepc | 267 | # Some macros to check if the Fortran interface is up-to-date. |
| 6 | dsic.upv.es!jroman | 268 | # |
| 794 | dsic.upv.es!antodo | 269 | countfortranfunctions: |
| 1022 | slepc | 270 | -@for D in `find ${SLEPC_DIR}/src -name ftn-auto` \ |
| 271 | `find ${SLEPC_DIR}/src -name ftn-custom`; do cd $$D; \ |
||
| 272 | egrep '^void' *.c | \ |
||
| 273 | cut -d'(' -f1 | tr -s ' ' | cut -d' ' -f3 | uniq | egrep -v "(^$$|Petsc)" | \ |
||
| 1025 | slepc | 274 | sed "s/_$$//"; done | sort > /tmp/countfortranfunctions |
| 6 | dsic.upv.es!jroman | 275 | |
| 794 | dsic.upv.es!antodo | 276 | countcfunctions: |
| 1022 | slepc | 277 | -@ grep "EXTERN " ${SLEPC_DIR}/include/*.h | grep "(" | tr -s ' ' | \ |
| 6 | dsic.upv.es!jroman | 278 | cut -d'(' -f1 | cut -d' ' -f3 | grep -v "\*" | tr -s '\012' | \ |
| 279 | tr 'A-Z' 'a-z' | sort > /tmp/countcfunctions |
||
| 280 | |||
| 794 | dsic.upv.es!antodo | 281 | difffortranfunctions: countfortranfunctions countcfunctions |
| 1523 | slepc | 282 | -@echo -------------- Functions missing in the Fortran interface --------------------- |
| 794 | dsic.upv.es!antodo | 283 | -@${DIFF} /tmp/countcfunctions /tmp/countfortranfunctions | grep "^<" | cut -d' ' -f2 |
| 6 | dsic.upv.es!jroman | 284 | -@echo ----------------- Functions missing in the C interface ------------------------ |
| 794 | dsic.upv.es!antodo | 285 | -@${DIFF} /tmp/countcfunctions /tmp/countfortranfunctions | grep "^>" | cut -d' ' -f2 |
| 6 | dsic.upv.es!jroman | 286 | -@${RM} /tmp/countcfunctions /tmp/countfortranfunctions |
| 287 | |||
| 794 | dsic.upv.es!antodo | 288 | checkbadfortranstubs: |
| 6 | dsic.upv.es!jroman | 289 | -@echo "=========================================" |
| 290 | -@echo "Functions with MPI_Comm as an Argument" |
||
| 291 | -@echo "=========================================" |
||
| 1022 | slepc | 292 | -@for D in `find ${SLEPC_DIR}/src -name ftn-auto`; do cd $$D; \ |
| 293 | grep '^void' *.c | grep 'MPI_Comm' | \ |
||
| 1025 | slepc | 294 | tr -s ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3; done |
| 6 | dsic.upv.es!jroman | 295 | -@echo "=========================================" |
| 296 | -@echo "Functions with a String as an Argument" |
||
| 297 | -@echo "=========================================" |
||
| 1022 | slepc | 298 | -@for D in `find ${SLEPC_DIR}/src -name ftn-auto`; do cd $$D; \ |
| 299 | grep '^void' *.c | grep 'char \*' | \ |
||
| 1025 | slepc | 300 | tr -s ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3; done |
| 6 | dsic.upv.es!jroman | 301 | -@echo "=========================================" |
| 794 | dsic.upv.es!antodo | 302 | -@echo "Functions with Pointers to PETSc Objects as Argument" |
| 6 | dsic.upv.es!jroman | 303 | -@echo "=========================================" |
| 1022 | slepc | 304 | -@_p_OBJ=`grep _p_ ${PETSC_DIR}/include/*.h | tr -s ' ' | \ |
| 6 | dsic.upv.es!jroman | 305 | cut -d' ' -f 3 | tr -s '\012' | grep -v '{' | cut -d'*' -f1 | \ |
| 306 | sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \ |
||
| 1022 | slepc | 307 | _p_OBJS=`grep _p_ ${SLEPC_DIR}/include/*.h | tr -s ' ' | \ |
| 308 | cut -d' ' -f 3 | tr -s '\012' | grep -v '{' | cut -d'*' -f1 | \ |
||
| 309 | sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \ |
||
| 310 | for D in `find ${SLEPC_DIR}/src -name ftn-auto`; do cd $$D; \ |
||
| 311 | for OBJ in $$_p_OBJ $$_p_OBJS; do \ |
||
| 6 | dsic.upv.es!jroman | 312 | grep "$$OBJ \*" *.c | tr -s ' ' | tr -s ':' ' ' | \ |
| 1022 | slepc | 313 | cut -d'(' -f1 | cut -d' ' -f1,4; \ |
| 1025 | slepc | 314 | done; done |
| 6 | dsic.upv.es!jroman | 315 | |
| 1130 | slepc | 316 | # Generate tags with Exuberant Ctags 5.5.4 |
| 317 | ctags: |
||
| 318 | -@ctags -R --exclude="examples" --languages=-HTML,Make --fortran-kinds=-l include src |
||
| 319 | -@egrep -v __FUNCT__\|PetscToPointer\|PetscFromPointer\|PetscRmPointer tags > tags-tmp |
||
| 320 | -@mv tags-tmp tags |
||
| 321 |