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