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