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