Subversion Repositories slepc-dev

Rev

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