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