xref: /petsc/makefile (revision d82c68f1afe4ea4274c7631e23b190d89429fc76)
1# $Id: makefile,v 1.253 1999/01/20 00:08:11 balay Exp balay $
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
9DIRS	   = src include docs
10
11include ${PETSC_DIR}/bmake/${PETSC_ARCH}/base
12
13#
14# Basic targets to build PETSc libraries.
15# all     : builds the c, fortran,f90 libraries
16# fortran : builds the fortran libary
17# f90     : builds the fortran and the f90 libraries.
18#
19all       : info chkpetsc_dir deletelibs build_c build_fortrankernels \
20	    build_fortran build_fortran90 shared
21fortran   : info chkpetsc_dir build_fortran
22fortran90 : fortran build_fortran90
23
24#
25#  Prints information about the system and PETSc being compiled
26#
27info:
28	-@echo "=========================================="
29	-@echo On `date` on `hostname`
30	-@echo Machine characteristics: `uname -a`
31	-@echo "-----------------------------------------"
32	-@echo "Using C compiler: ${CC} ${COPTFLAGS} ${CCPPFLAGS}"
33	-@if [ -n "${CCV}" -a "${CCV}" != "unknown" ] ; then \
34	  echo "Compiler version:" `${CCV}` ; fi
35	-@echo "Using Fortran compiler: ${FC} ${FOPTFLAGS} ${FCPPFLAGS}"
36	-@echo "-----------------------------------------"
37	-@grep PETSC_VERSION_NUMBER include/petsc.h | sed "s/........//"
38	-@echo "-----------------------------------------"
39	-@echo "Using PETSc flags: ${PETSCFLAGS} ${PCONF}"
40	-@echo "-----------------------------------------"
41	-@echo "Using configuration flags:"
42	-@grep "define " bmake/${PETSC_ARCH}/petscconf.h
43	-@echo "-----------------------------------------"
44	-@echo "Using include paths: ${PETSC_INCLUDE}"
45	-@echo "-----------------------------------------"
46	-@echo "Using PETSc directory: ${PETSC_DIR}"
47	-@echo "Using PETSc arch: ${PETSC_ARCH}"
48	-@echo "------------------------------------------"
49	-@echo "Using C linker: ${CLINKER}"
50	-@echo "Using Fortran linker: ${FLINKER}"
51	-@echo "Using libraries: ${PETSC_LIB}"
52	-@echo "=========================================="
53
54#
55# Build the PETSc libraries
56#
57build_c:
58	-@echo "BEGINNING TO COMPILE LIBRARIES IN ALL DIRECTORIES"
59	-@echo "========================================="
60	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=libfast  tree
61	-@cd ${PETSC_DIR}/src/sys/src/time ; \
62	${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} rs6000_time
63	${RANLIB} ${PDIR}/*.a
64	-@chmod g+w  ${PDIR}/*.a
65	-@echo "Completed building libraries"
66	-@echo "========================================="
67
68#
69# Builds PETSc Fortran interface libary
70# Note:	 libfast cannot run on .F files on certain machines, so we
71# use lib and check for errors here.
72
73build_fortran:
74	-@echo "BEGINNING TO COMPILE FORTRAN INTERFACE LIBRARY"
75	-@echo "========================================="
76	-${RM} -f ${PDIR}/libpetscfortran.*
77	-@cd src/fortran/auto; \
78	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} libfast
79	-@cd src/fortran/custom; \
80	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib > trashz 2>&1; \
81	  grep -v clog trashz | grep -v "information sections" | \
82	  egrep -i '(Error|warning|Can)' >> /dev/null;\
83	  if [ "$$?" != 1 ]; then \
84	  cat trashz ; fi; ${RM} trashz
85	${RANLIB} ${PDIR}/libpetscfortran.a
86	-@chmod g+w  ${PDIR}/*.a
87	-@echo "Completed compiling Fortran interface library"
88	-@echo "========================================="
89
90#
91# Builds PETSc Fortran90 interface libary
92# Note: F90 interface currently supported in NAG, IRIX, IBM F90 compilers.
93#
94build_fortran90:
95	-@echo "BEGINNING TO COMPILE FORTRAN90 INTERFACE LIBRARY"
96	-@echo "========================================="
97	-@cd src/fortran/f90; \
98	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib > trashz 2>&1; \
99	  grep -v clog trashz | grep -v "information sections" | \
100	  egrep -i '(Error|warning|Can)' >> /dev/null;\
101	  if [ "$$?" != 1 ]; then \
102	  cat trashz ; fi; ${RM} trashz
103	${RANLIB} ${PDIR}/libpetscfortran.a
104	-@chmod g+w  ${PDIR}/*.a
105	-@echo "Completed compiling Fortran90 interface library"
106	-@echo "========================================="
107
108#
109# Builds PETSc Fortran kernels; some numerical kernels have
110# a Fortran version that may give better performance on certain
111# machines. These always provide better performance for complex numbers.
112#
113build_fortrankernels: chkpetsc_dir
114	-@echo "BEGINNING TO COMPILE FORTRAN KERNELS LIBRARY"
115	-@echo "========================================="
116	-@cd src/fortran/kernels; \
117	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib
118	-@chmod g+w  ${PDIR}/*.a
119	-@echo "Completed compiling Fortran kernels library"
120	-@echo "========================================="
121
122petscblas: info chkpetsc_dir
123	-${RM} -f ${PDIR}/libpetscblas.*
124	-@echo "BEGINNING TO COMPILE C VERSION OF BLAS AND LAPACK"
125	-@echo "========================================="
126	-@cd src/blaslapack; \
127	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=libfast tree
128	${RANLIB} ${PDIR}/libpetscblas.a
129	-@chmod g+w  ${PDIR}/*.a
130	-@echo "Completed compiling C version of BLAS and LAPACK"
131	-@echo "========================================="
132
133
134# Builds PETSc test examples for a given BOPT and architecture
135testexamples: info chkopts
136	-@echo "BEGINNING TO COMPILE AND RUN TEST EXAMPLES"
137	-@echo "Due to different numerical round-off on certain"
138	-@echo "machines some of the numbers may not match exactly."
139	-@echo "========================================="
140	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \
141	   ACTION=testexamples_1  tree
142	-@echo "Completed compiling and running test examples"
143	-@echo "========================================="
144
145# Builds PETSc test examples for a given BOPT and architecture
146testfortran: info chkopts
147	-@echo "BEGINNING TO COMPILE AND RUN FORTRAN TEST EXAMPLES"
148	-@echo "========================================="
149	-@echo "Due to different numerical round-off on certain"
150	-@echo "machines or the way Fortran formats numbers"
151	-@echo "some of the results may not match exactly."
152	-@echo "========================================="
153	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \
154	   ACTION=testexamples_3  tree
155	-@echo "Completed compiling and running Fortran test examples"
156	-@echo "========================================="
157
158# Builds PETSc test examples for a given BOPT and architecture
159testexamples_uni: info chkopts
160	-@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR EXAMPLES"
161	-@echo "Due to different numerical round-off on certain"
162	-@echo "machines some of the numbers may not match exactly."
163	-@echo "========================================="
164	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \
165	   ACTION=testexamples_4  tree
166	-@echo "Completed compiling and running uniprocessor test examples"
167	-@echo "========================================="
168testfortran_uni: info chkopts
169	-@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR FORTRAN EXAMPLES"
170	-@echo "Due to different numerical round-off on certain"
171	-@echo "machines some of the numbers may not match exactly."
172	-@echo "========================================="
173	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \
174	   ACTION=testexamples_9  tree
175	-@echo "Completed compiling and running uniprocessor fortran test examples"
176	-@echo "========================================="
177
178# Ranlib on the libraries
179ranlib:
180	${RANLIB} ${PDIR}/*.a
181
182# Deletes PETSc libraries
183deletelibs: chkopts_basic
184	-${RM} -f ${PDIR}/*
185
186
187# ------------------------------------------------------------------
188#
189# All remaining actions are intended for PETSc developers only.
190# PETSc users should not generally need to use these commands.
191#
192
193MAKEFILES  = makefile
194BMAKEFILES = bmake/common* bmake/*/base* bmake/*/petscconf.h
195DOCS       = bmake/readme bmake/petscconf.defs
196
197
198# To access the tags in EMACS, type M-x visit-tags-table and specify
199# the file petsc/TAGS.
200# 1) To move to where a PETSc function is defined, enter M-. and the
201#     function name.
202# 2) To search for a string and move to the first occurrence,
203#     use M-x tags-search and the string.
204#     To locate later occurrences, use M-,
205
206TAGS_INCLUDE_FILES  = include/*.h include/pinclude/*.h bmake/*/petscconf.h \
207                      include/finclude/*.h
208TAGS_BMAKE_FILES    = bmake/common bmake/*/base*
209TAGS_EXAMPLE_FILES  = src/*/examples/*/*.[c,h,F,f] src/*/examples/*/*/*.[c,h,F,f] \
210                      src/benchmarks/*.c src/contrib/*/examples/*/*.[c,h,F,f]\
211		      src/fortran/f90/tests/*.[c,h,F,f]
212TAGS_FEXAMPLE_FILES = src/*/examples/*/*.[F,f] src/*/examples/*/*/*.[F,f] \
213                      src/contrib/*/examples/*/*.[F,f]\
214		      src/fortran/f90/tests/*.[F,f]
215TAGS_DOC_FILES      = docs/tex/manual/routin.tex docs/tex/manual/manual.tex \
216                      docs/tex/manual/manual_tex.tex docs/tex/manual/intro.tex \
217                      docs/tex/manual/part1.tex docs/tex/manual/developer.tex docs/tex/manual/part2.tex
218TAGS_SRC_FILES      = src/sys/src/*/*.c src/*/*.[c,h] src/*/interface/*.[c,h] src/*/src/*.[c,h] \
219                      src/*/utils/*.[c,h] src/snes/mf/*.[c,h] \
220                      src/*/impls/*.[c,h] src/*/impls/*/*.[c,h] src/*/impls/*/*/*.[c,h] \
221                      src/snes/interface/noise/*.[c,F,h] \
222		      src/contrib/*/*.[c,h] \
223                      src/contrib/*/src/*.[c,h] src/fortran/custom/*.[c,h,F] \
224		      src/fortran/kernels/*.[c,h,F] \
225		      src/fortran/f90/*.[c,h,F] src/fortran/f90/*/*.[c,h,F] \
226		      src/blaslapack/blas/*.c src/blaslapack/lapack/src[1,2,3]/*.c \
227                      src/contrib/pc/*/*.c
228TAGS_MAKEFILE_FILES = include/makefile include/*/makefile \
229                      makefile src/sys/src/*/makefile \
230                      src/makefile src/*/makefile src/*/src/makefile \
231                      src/*/interface/makefile \
232                      src/*/utils/makefile \
233                      src/*/impls/makefile src/*/impls/*/makefile src/*/impls/*/*/makefile \
234                      src/snes/interface/noise/makefile src/*/examples/makefile \
235		      src/*/examples/*/makefile src/*/examples/*/*/makefile \
236                      src/fortran/*/makefile src/fortran/f90/*/makefile \
237                      src/contrib/*/makefile src/contrib/*/src/makefile \
238                      src/contrib/*/examples/makefile src/contrib/*/examples/*/makefile \
239                      src/contrib/sif/*/makefile docs/makefile src/adic/*/makefile \
240                      src/contrib/pc/*/makefile src/contrib/makefile
241
242# Builds all etags files
243alletags:
244	-${OMAKE} etags_complete
245	-${OMAKE} etags
246	-${OMAKE} etags_noexamples
247	-${OMAKE} etags_examples
248	-${OMAKE} etags_makefiles
249	-${OMAKE} ctags
250
251# Builds the basic etags file.	This should be employed by most users.
252etags:
253	-${RM} TAGS
254	-etags -f TAGS ${TAGS_INCLUDE_FILES}
255	-etags -a -f TAGS ${TAGS_SRC_FILES}
256	-etags -a -f TAGS ${TAGS_EXAMPLE_FILES}
257	-etags -a -f TAGS ${TAGS_MAKEFILE_FILES}
258	-etags -a -f TAGS ${TAGS_BMAKE_FILES}
259	-chmod g+w TAGS
260
261# Builds complete etags list; only for PETSc developers.
262etags_complete:
263	-${RM} TAGS_COMPLETE
264	-etags -f TAGS_COMPLETE ${TAGS_SRC_FILES}
265	-etags -a -f TAGS_COMPLETE ${TAGS_INCLUDE_FILES}
266	-etags -a -f TAGS_COMPLETE ${TAGS_EXAMPLE_FILES}
267	-etags -a -f TAGS_COMPLETE ${TAGS_MAKEFILE_FILES}
268	-etags -a -f TAGS_COMPLETE ${TAGS_BMAKE_FILES}
269	-etags -a -f TAGS_COMPLETE ${TAGS_DOC_FILES}
270	-chmod g+w TAGS_COMPLETE
271
272# Builds the etags file that excludes the examples directories
273etags_noexamples:
274	-${RM} TAGS_NO_EXAMPLES
275	-etags -f TAGS_NO_EXAMPLES ${TAGS_SRC_FILES}
276	-etags -a -f TAGS_NO_EXAMPLES ${TAGS_INCLUDE_FILES}
277	-etags -a -f TAGS_NO_EXAMPLES ${TAGS_MAKEFILE_FILES}
278	-etags -a -f TAGS_NO_EXAMPLES ${TAGS_BMAKE_FILES}
279	-etags -a -f TAGS_NO_EXAMPLES ${TAGS_DOC_FILES}
280	-chmod g+w TAGS_NO_EXAMPLES
281
282# Builds the etags file for makefiles
283etags_makefiles:
284	-${RM} TAGS_MAKEFILES
285	-etags -f TAGS_MAKEFILES ${TAGS_MAKEFILE_FILES}
286	-etags -a -f TAGS_MAKEFILES ${TAGS_BMAKE_FILES}
287	-chmod g+w TAGS_MAKEFILES
288
289# Builds the etags file for examples
290etags_examples:
291	-${RM} TAGS_EXAMPLES
292	-etags -f TAGS_EXAMPLES ${TAGS_EXAMPLE_FILES}
293	-chmod g+w TAGS_EXAMPLES
294etags_fexamples:
295	-${RM} TAGS_FEXAMPLES
296	-etags -f TAGS_FEXAMPLES ${TAGS_FEXAMPLE_FILES}
297	-chmod g+w TAGS_FEXAMPLES
298
299#
300# To use the tags file from VI do the following:
301# 1. within vi invoke the command - :set tags=/home/bsmith/petsc/vitags
302#    or add  the command to your ~/.exrc file - set tags=/home/bsmith/petsc/vitags
303# 2. now to go to a tag do - :tag TAGNAME for eg - :tag MatCreate
304#
305ctags:
306	-${RM} vitags
307	-ctags -w -f vitags ${TAGS_INCLUDE_FILES}
308	-ctags -w -a -f vitags ${TAGS_SRC_FILES}
309	-ctags -w -a -f vitags ${TAGS_EXAMPLE_FILES}
310	-ctags -w -a -f vitags ${TAGS_MAKEFILE_FILES}
311	-ctags -w -a -f vitags ${TAGS_BMAKE_FILES}
312	-chmod g+w vitags
313#
314# These are here for the target allci and allco
315#
316
317DOCS	 = maint/addlinks maint/builddist \
318	   maint/buildlinks maint/wwwman maint/xclude maint/crontab\
319	   bmake/common bmake/*/base* maint/autoftp docs/manualpages/sec/* \
320           include/foldinclude/generateincludes bin/petscviewinfo.text \
321           bin/petscoptsinfo.text bmake/*/petscconf.h
322
323# Deletes man pages (HTML version)
324deletemanualpages:
325	${RM} -f ${PETSC_DIR}/docs/manualpages/man*/* \
326                 ${PETSC_DIR}/docs/manualpages/man?.html \
327                 ${PETSC_DIR}/docs/manualpages/manualpages.cit
328
329# Deletes man pages (LaTeX version)
330deletelatexpages:
331	${RM} -f ${PETSC_DIR}/docs/tex/rsum/*sum*.tex
332
333# Builds all versions of the man pages
334allmanpages: allmanualpages alllatexpages
335allmanualpages: deletemanualpages
336	-${OMAKE} ACTION=manualpages_buildcite tree
337	-cd src/fortran/custom; ${OMAKE} manualpages_buildcite
338	-cd src/fortran/custom; ${OMAKE} manualpages
339	-${OMAKE} ACTION=manualpages tree
340	-maint/wwwindex.py ${PETSC_DIR}
341	-maint/examplesindex.tcl
342	-maint/htmlkeywords.tcl
343	-@chmod g+w docs/manualpages/man*/*
344
345alllatexpages: deletelatexpages
346	-${OMAKE} ACTION=latexpages tree
347	-cd src/fortran/custom; ${OMAKE} latexpages
348	-@chmod g+w docs/tex/rsum/*
349
350# Builds Fortran stub files
351allfortranstubs:
352	-@include/foldinclude/generateincludes
353	-@${RM} -f src/fortran/auto/*.c
354	-${OMAKE} ACTION=fortranstubs tree
355	-@cd src/fortran/auto; ${OMAKE} -f makefile fixfortran
356	chmod g+w src/fortran/auto/*.c
357
358allci:
359	-@cd src/fortran/custom ; ${OMAKE} BOPT=${BOPT} ci
360	-@cd src/fortran/f90 ; ${OMAKE} BOPT=${BOPT} ci
361	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=ci  tree
362
363allco:
364	-@cd src/fortran/custom ; ${OMAKE} BOPT=${BOPT} co
365	-@cd src/fortran/f90 ; ${OMAKE} BOPT=${BOPT} co
366	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=co  tree
367
368#
369#   The commands below are for generating ADIC versions of the code;
370# they are not currently used.
371#
372alladicignore:
373	-@${RM} ${PDIR}/adicignore
374	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adicignore  tree
375
376alladic:
377	-@echo "Beginning to compile ADIC source code in all directories"
378	-@echo "Using ADIC compiler: ${ADIC_CC} ${CCPPFLAGS}"
379	-@echo "========================================="
380	-@cd include ; \
381           ${ADIC_CC} -s -f 1 ${CCPPFLAGS} petsc.h
382	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic  tree
383	-@cd src/inline ; \
384            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} adic
385	-@cd src/blaslapack ; \
386            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic  tree
387
388alladiclib:
389	-@echo "Beginning to compile ADIC libraries in all directories"
390	-@echo "Using compiler: ${CC} ${COPTFLAGS}"
391	-@echo "-----------------------------------------"
392	-@echo "Using PETSc flags: ${PETSCFLAGS} ${PCONF}"
393	-@echo "-----------------------------------------"
394	-@echo "Using configuration flags:"
395	-@grep "define " bmake/${PETSC_ARCH}/petscconf.h
396	-@echo "-----------------------------------------"
397	-@echo "Using include paths: ${PETSC_INCLUDE}"
398	-@echo "-----------------------------------------"
399	-@echo "Using PETSc directory: ${PETSC_DIR}"
400	-@echo "Using PETSc arch: ${PETSC_ARCH}"
401	-@echo "========================================="
402	-@${RM} -f  ${PDIR}/*adic.a
403	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib  tree
404	-@cd src/blaslapack ; \
405            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib  tree
406	-@cd src/adic/src ; \
407            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib
408
409# -------------------------------------------------------------------------------
410#
411# Some macros to check if the fortran interface is up-to-date.
412#
413countfortranfunctions:
414	-@cd ${PETSC_DIR}/src/fortran; egrep '^void' custom/*.c auto/*.c | \
415	cut -d'(' -f1 | tr -s '' ' ' | cut -d' ' -f2 | uniq | egrep -v "(^$$|Petsc)" | \
416	sed "s/_$$//" | sort > /tmp/countfortranfunctions
417
418countcfunctions:
419	-@ grep extern ${PETSC_DIR}/include/*.h *.h | grep "(" | tr -s '' ' ' | \
420	cut -d'(' -f1 | cut -d' ' -f3 | grep -v "\*" | tr -s '' '\012' |  \
421	tr 'A-Z' 'a-z' |  sort > /tmp/countcfunctions
422
423difffortranfunctions: countfortranfunctions countcfunctions
424	-@echo -------------- Functions missing in the fortran interface ---------------------
425	-@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^<" | cut -d' ' -f2
426	-@echo ----------------- Functions missing in the C interface ------------------------
427	-@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^>" | cut -d' ' -f2
428	-@${RM}  /tmp/countcfunctions /tmp/countfortranfunctions
429
430checkbadfortranstubs:
431	-@echo "========================================="
432	-@echo "Functions with MPI_Comm as an Argument"
433	-@echo "========================================="
434	-@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'MPI_Comm' | \
435	tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3
436	-@echo "========================================="
437	-@echo "Functions with a String as an Argument"
438	-@echo "========================================="
439	-@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'char \*' | \
440	tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3
441	-@echo "========================================="
442	-@echo "Functions with Pointers to PETSc Objects as Argument"
443	-@echo "========================================="
444	-@cd ${PETSC_DIR}/src/fortran/auto; \
445	_p_OBJ=`grep _p_ ${PETSC_DIR}/include/*.h | tr -s '' ' ' | \
446	cut -d' ' -f 3 | tr -s '' '\012' | grep -v '{' | cut -d'*' -f1 | \
447	sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \
448	for OBJ in $$_p_OBJ; do \
449	grep "$$OBJ \*" *.c | tr -s '' ' ' | tr -s ':' ' ' | \
450	cut -d'(' -f1 | cut -d' ' -f1,3; \
451	done
452# Builds noise routines (not yet publically available)
453# Note:	 libfast cannot run on .F files on certain machines, so we
454# use lib and check for errors here.
455noise: info chkpetsc_dir
456	-@echo "Beginning to compile noise routines"
457	-@echo "========================================="
458	-@cd src/snes/interface/noise; \
459	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib > trashz 2>&1; \
460	  grep -v clog trashz | grep -v "information sections" | \
461	  egrep -i '(Error|warning|Can)' >> /dev/null;\
462	  if [ "$$?" != 1 ]; then \
463	  cat trashz ; fi; ${RM} trashz
464	${RANLIB} ${PDIR}/libpetscsnes.a
465	-@chmod g+w  ${PDIR}/libpetscsnes.a
466	-@echo "Completed compiling noise routines"
467	-@echo "========================================="
468
469