xref: /petsc/makefile (revision 01c05c5ca773fdb95d1efd58b7350c2dff1dbacc)
1# $Id: makefile,v 1.273 1999/03/18 22:16:37 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 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# This target also builds fortran interface files, and f90
57# interface files. (except compiling *.F files)
58#
59build_c:
60	-@echo "BEGINNING TO COMPILE LIBRARIES IN ALL DIRECTORIES"
61	-@echo "========================================="
62	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=libfast  tree
63	-@cd ${PETSC_DIR}/src/sys/src/time ; \
64	${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} rs6000_time
65	${RANLIB} ${PDIR}/*.a
66	-@chmod g+w  ${PDIR}/*.a
67	-@echo "Completed building libraries"
68	-@echo "========================================="
69
70#
71# Builds PETSc Fortran interface libary
72# Note:	 libfast cannot run on .F files on certain machines, so we
73# use lib and check for errors here.
74
75build_fortran:
76	-@echo "BEGINNING TO COMPILE FORTRAN INTERFACE LIBRARY"
77	-@echo "========================================="
78	-@cd src/fortran/custom; \
79	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} libf clean > trashz 2>&1; \
80	  grep -v clog trashz | grep -v "information sections" | \
81	  egrep -i '(Error|warning|Can)' >> /dev/null;\
82	  if [ "$$?" != 1 ]; then \
83	  cat trashz ; fi; ${RM} trashz
84	${RANLIB} ${PDIR}/libpetscfortran.a
85	-@chmod g+w  ${PDIR}/*.a
86	-@echo "Completed compiling Fortran interface library"
87	-@echo "========================================="
88
89#
90# Builds PETSc Fortran kernels; some numerical kernels have
91# a Fortran version that may give better performance on certain
92# machines. These always provide better performance for complex numbers.
93#
94build_fortrankernels: chkpetsc_dir
95	-@echo "BEGINNING TO COMPILE FORTRAN KERNELS LIBRARY"
96	-@echo "========================================="
97	-@cd src/fortran/kernels; \
98	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} libf clean
99	${RANLIB} ${PDIR}/libpetsc.a
100	-@chmod g+w  ${PDIR}/*.a
101	-@echo "Completed compiling Fortran kernels library"
102	-@echo "========================================="
103
104petscblas: info chkpetsc_dir
105	-${RM} -f ${PDIR}/libpetscblas.*
106	-@echo "BEGINNING TO COMPILE C VERSION OF BLAS AND LAPACK"
107	-@echo "========================================="
108	-@cd src/blaslapack; \
109	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=libfast tree
110	${RANLIB} ${PDIR}/libpetscblas.a
111	-@chmod g+w  ${PDIR}/*.a
112	-@echo "Completed compiling C version of BLAS and LAPACK"
113	-@echo "========================================="
114
115
116# Builds PETSc test examples for a given BOPT and architecture
117testexamples: info chkopts
118	-@echo "BEGINNING TO COMPILE AND RUN 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 "========================================="
122	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \
123	   ACTION=testexamples_1  tree
124	-@echo "Completed compiling and running test examples"
125	-@echo "========================================="
126
127# Builds PETSc test examples for a given BOPT and architecture
128testfortran: info chkopts
129	-@echo "BEGINNING TO COMPILE AND RUN 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 "========================================="
135	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \
136	   ACTION=testexamples_3  tree
137	-@echo "Completed compiling and running Fortran test examples"
138	-@echo "========================================="
139
140# Builds PETSc test examples for a given BOPT and architecture
141testexamples_uni: info chkopts
142	-@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR EXAMPLES"
143	-@echo "Due to different numerical round-off on certain"
144	-@echo "machines some of the numbers may not match exactly."
145	-@echo "========================================="
146	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \
147	   ACTION=testexamples_4  tree
148	-@echo "Completed compiling and running uniprocessor test examples"
149	-@echo "========================================="
150testfortran_uni: info chkopts
151	-@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR FORTRAN EXAMPLES"
152	-@echo "Due to different numerical round-off on certain"
153	-@echo "machines some of the numbers may not match exactly."
154	-@echo "========================================="
155	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} \
156	   ACTION=testexamples_9  tree
157	-@echo "Completed compiling and running uniprocessor fortran test examples"
158	-@echo "========================================="
159
160# Ranlib on the libraries
161ranlib:
162	${RANLIB} ${PDIR}/*.a
163
164# Deletes PETSc libraries
165deletelibs: chkopts_basic
166	-${RM} -f ${PDIR}/*
167
168
169# ------------------------------------------------------------------
170#
171# All remaining actions are intended for PETSc developers only.
172# PETSc users should not generally need to use these commands.
173#
174
175# To access the tags in EMACS, type M-x visit-tags-table and specify
176# the file petsc/TAGS.
177# 1) To move to where a PETSc function is defined, enter M-. and the
178#     function name.
179# 2) To search for a string and move to the first occurrence,
180#     use M-x tags-search and the string.
181#     To locate later occurrences, use M-,
182# Builds all etags files
183alletags:
184	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags
185	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags_complete
186	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags_noexamples
187	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags_examples
188	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags_makefiles
189# Builds the basic etags file.	This should be employed by most users.
190etags:
191	-${RM} ${TAGSDIR}/TAGS
192	-touch ${TAGSDIR}/TAGS
193	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_sourcec alltree
194	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_sourceh alltree
195	-cd src/fortran; ${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_sourcef alltree
196	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesc alltree
197	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesf alltree
198	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesch alltree
199	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesfh alltree
200	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_makefile alltree
201	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS etags_bmakefiles
202	-chmod g+w TAGS
203# Builds complete etags list; only for PETSc developers.
204etags_complete:
205	-${RM} ${TAGSDIR}/TAGS_COMPLETE
206	-touch ${TAGSDIR}/TAGS_COMPLETE
207	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_sourcec alltree
208	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_sourceh alltree
209	-cd src/fortran; ${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_sourcef alltree
210	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesc alltree
211	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesf alltree
212	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesch alltree
213	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesfh alltree
214	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_makefile alltree
215	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE etags_bmakefiles
216	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_docs alltree
217	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_scripts alltree
218	-chmod g+w TAGS_COMPLETE
219# Builds the etags file that excludes the examples directories
220etags_noexamples:
221	-${RM} ${TAGSDIR}/TAGS_NO_EXAMPLES
222	-touch ${TAGSDIR}/TAGS_NO_EXAMPLES
223	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_sourcec alltree
224	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_sourceh alltree
225	-cd src/fortran; ${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_sourcef alltree
226	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_makefile alltree
227	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES etags_bmakefiles
228	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_docs alltree
229	-chmod g+w TAGS_NO_EXAMPLES
230# Builds the etags file for makefiles
231etags_makefiles:
232	-${RM} ${TAGSDIR}/TAGS_MAKEFILES
233	-touch ${TAGSDIR}/TAGS_MAKEFILES
234	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_MAKEFILES ACTION=etags_makefile alltree
235	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_MAKEFILES etags_bmakefiles
236	-chmod g+w TAGS_MAKEFILES
237# Builds the etags file for examples
238etags_examples:
239	-${RM} ${TAGSDIR}/TAGS_EXAMPLES
240	-touch ${TAGSDIR}/TAGS_EXAMPLES
241	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesc alltree
242	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesch alltree
243	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesf alltree
244	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesfh alltree
245	-chmod g+w TAGS_EXAMPLES
246etags_fexamples:
247	-${RM} ${TAGSDIR}/TAGS_FEXAMPLES
248	-touch ${TAGSDIR}/TAGS_FEXAMPLES
249	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_FEXAMPLES ACTION=etags_examplesf alltree
250	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesfh alltree
251	-chmod g+w TAGS_FEXAMPLES
252#
253# These are here for the target allci and allco, and etags
254#
255
256BMAKEFILES = bmake/common* bmake/*/base* bmake/*/petscconf.h bmake/win32/makefile.dos
257DOCS	   = bin/petscviewinfo.text bin/petscoptsinfo.text \
258	     bmake/readme bmake/petscconf.defs
259SCRIPTS    = maint/addlinks maint/builddist maint/buildlinks maint/wwwman \
260	     maint/xclude maint/crontab  \
261	     maint/autoftp include/foldinclude/generateincludes
262
263# Builds all the documentation - should be done everynight
264alldoc: allmanpages
265	cd docs/tex/manual; ${OMAKE} manual.dvi manual.ps manual.html manual/manual.html
266
267# Deletes man pages (HTML version)
268deletemanualpages:
269	${RM} -f ${PETSC_DIR}/docs/manualpages/*/*.html \
270                 ${PETSC_DIR}/docs/manualpages/manualpages.cit
271
272# Deletes man pages (LaTeX version)
273deletelatexpages:
274	${RM} -f ${PETSC_DIR}/docs/tex/rsum/*sum*.tex
275
276# Builds all versions of the man pages
277allmanpages: allmanualpages alllatexpages
278allmanualpages: deletemanualpages
279	-${OMAKE} ACTION=manualpages_buildcite tree
280	-${OMAKE} ACTION=manualpages tree
281	-maint/wwwindex.py ${PETSC_DIR}
282	-maint/examplesindex.tcl
283	-maint/htmlkeywords.tcl
284	-@chmod g+w docs/manualpages/*/*.html
285
286alllatexpages: deletelatexpages
287	-${OMAKE} ACTION=latexpages tree
288	-@chmod g+w docs/tex/rsum/*
289
290# Builds Fortran stub files
291allfortranstubs:
292	-@include/foldinclude/generateincludes
293	-@${RM} -f src/fortran/auto/*.c
294	-${OMAKE} ACTION=fortranstubs tree
295	-@cd src/fortran/auto; ${OMAKE} -f makefile fixfortran
296	chmod g+w src/fortran/auto/*.c
297
298allci:
299	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=ci  alltree
300
301allco:
302	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=co  alltree
303
304#
305#   The commands below are for generating ADIC versions of the code;
306# they are not currently used.
307#
308alladicignore:
309	-@${RM} ${PDIR}/adicignore
310	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adicignore  tree
311
312alladic:
313	-@echo "Beginning to compile ADIC source code in all directories"
314	-@echo "Using ADIC compiler: ${ADIC_CC} ${CCPPFLAGS}"
315	-@echo "========================================="
316	-@cd include ; \
317           ${ADIC_CC} -s -f 1 ${CCPPFLAGS} petsc.h
318	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic  tree
319	-@cd src/inline ; \
320            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} adic
321	-@cd src/blaslapack ; \
322            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic  tree
323
324alladiclib:
325	-@echo "Beginning to compile ADIC libraries in all directories"
326	-@echo "Using compiler: ${CC} ${COPTFLAGS}"
327	-@echo "-----------------------------------------"
328	-@echo "Using PETSc flags: ${PETSCFLAGS} ${PCONF}"
329	-@echo "-----------------------------------------"
330	-@echo "Using configuration flags:"
331	-@grep "define " bmake/${PETSC_ARCH}/petscconf.h
332	-@echo "-----------------------------------------"
333	-@echo "Using include paths: ${PETSC_INCLUDE}"
334	-@echo "-----------------------------------------"
335	-@echo "Using PETSc directory: ${PETSC_DIR}"
336	-@echo "Using PETSc arch: ${PETSC_ARCH}"
337	-@echo "========================================="
338	-@${RM} -f  ${PDIR}/*adic.a
339	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib  tree
340	-@cd src/blaslapack ; \
341            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib  tree
342	-@cd src/adic/src ; \
343            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib
344
345# -------------------------------------------------------------------------------
346#
347# Some macros to check if the fortran interface is up-to-date.
348#
349countfortranfunctions:
350	-@cd ${PETSC_DIR}/src/fortran; egrep '^void' custom/*.c auto/*.c | \
351	cut -d'(' -f1 | tr -s  ' ' | cut -d' ' -f2 | uniq | egrep -v "(^$$|Petsc)" | \
352	sed "s/_$$//" | sort > /tmp/countfortranfunctions
353
354countcfunctions:
355	-@ grep extern ${PETSC_DIR}/include/*.h *.h | grep "(" | tr -s ' ' | \
356	cut -d'(' -f1 | cut -d' ' -f3 | grep -v "\*" | tr -s '\012' |  \
357	tr 'A-Z' 'a-z' |  sort > /tmp/countcfunctions
358
359difffortranfunctions: countfortranfunctions countcfunctions
360	-@echo -------------- Functions missing in the fortran interface ---------------------
361	-@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^<" | cut -d' ' -f2
362	-@echo ----------------- Functions missing in the C interface ------------------------
363	-@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^>" | cut -d' ' -f2
364	-@${RM}  /tmp/countcfunctions /tmp/countfortranfunctions
365
366checkbadfortranstubs:
367	-@echo "========================================="
368	-@echo "Functions with MPI_Comm as an Argument"
369	-@echo "========================================="
370	-@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'MPI_Comm' | \
371	tr -s ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3
372	-@echo "========================================="
373	-@echo "Functions with a String as an Argument"
374	-@echo "========================================="
375	-@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'char \*' | \
376	tr -s ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3
377	-@echo "========================================="
378	-@echo "Functions with Pointers to PETSc Objects as Argument"
379	-@echo "========================================="
380	-@cd ${PETSC_DIR}/src/fortran/auto; \
381	_p_OBJ=`grep _p_ ${PETSC_DIR}/include/*.h | tr -s ' ' | \
382	cut -d' ' -f 3 | tr -s '\012' | grep -v '{' | cut -d'*' -f1 | \
383	sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \
384	for OBJ in $$_p_OBJ; do \
385	grep "$$OBJ \*" *.c | tr -s ' ' | tr -s ':' ' ' | \
386	cut -d'(' -f1 | cut -d' ' -f1,3; \
387	done
388# Builds noise routines (not yet publically available)
389# Note:	 libfast cannot run on .F files on certain machines, so we
390# use lib and check for errors here.
391noise: info chkpetsc_dir
392	-@echo "Beginning to compile noise routines"
393	-@echo "========================================="
394	-@cd src/snes/interface/noise; \
395	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib > trashz 2>&1; \
396	  grep -v clog trashz | grep -v "information sections" | \
397	  egrep -i '(Error|warning|Can)' >> /dev/null;\
398	  if [ "$$?" != 1 ]; then \
399	  cat trashz ; fi; ${RM} trashz
400	${RANLIB} ${PDIR}/libpetscsnes.a
401	-@chmod g+w  ${PDIR}/libpetscsnes.a
402	-@echo "Completed compiling noise routines"
403	-@echo "========================================="
404
405