xref: /petsc/makefile (revision 3f1db9ec2fd39765c6c3a00831044586630c4cca)
1# $Id: makefile,v 1.251 1998/12/03 03:53:44 bsmith Exp bsmith $
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
193
194# To access the tags in EMACS, type M-x visit-tags-table and specify
195# the file petsc/TAGS.
196# 1) To move to where a PETSc function is defined, enter M-. and the
197#     function name.
198# 2) To search for a string and move to the first occurrence,
199#     use M-x tags-search and the string.
200#     To locate later occurrences, use M-,
201
202TAGS_INCLUDE_FILES  = include/*.h include/pinclude/*.h bmake/*/petscconf.h \
203                      include/finclude/*.h
204TAGS_BMAKE_FILES    = bmake/common bmake/*/base*
205TAGS_EXAMPLE_FILES  = src/*/examples/*/*.[c,h,F,f] src/*/examples/*/*/*.[c,h,F,f] \
206                      src/benchmarks/*.c src/contrib/*/examples/*/*.[c,h,F,f]\
207		      src/fortran/f90/tests/*.[c,h,F,f]
208TAGS_FEXAMPLE_FILES = src/*/examples/*/*.[F,f] src/*/examples/*/*/*.[F,f] \
209                      src/contrib/*/examples/*/*.[F,f]\
210		      src/fortran/f90/tests/*.[F,f]
211TAGS_DOC_FILES      = docs/tex/manual/routin.tex docs/tex/manual/manual.tex \
212                      docs/tex/manual/manual_tex.tex docs/tex/manual/intro.tex \
213                      docs/tex/manual/part1.tex docs/tex/manual/developer.tex docs/tex/manual/part2.tex
214TAGS_SRC_FILES      = src/sys/src/*/*.c src/*/*.[c,h] src/*/interface/*.[c,h] src/*/src/*.[c,h] \
215                      src/*/utils/*.[c,h] src/snes/mf/*.[c,h] \
216                      src/*/impls/*.[c,h] src/*/impls/*/*.[c,h] src/*/impls/*/*/*.[c,h] \
217                      src/snes/interface/noise/*.[c,F,h] \
218		      src/contrib/*/*.[c,h] \
219                      src/contrib/*/src/*.[c,h] src/fortran/custom/*.[c,h,F] \
220		      src/fortran/kernels/*.[c,h,F] \
221		      src/fortran/f90/*.[c,h,F] src/fortran/f90/*/*.[c,h,F] \
222		      src/blaslapack/blas/*.c src/blaslapack/lapack/src[1,2,3]/*.c \
223                      src/contrib/pc/*/*.c
224TAGS_MAKEFILE_FILES = include/makefile include/*/makefile \
225                      makefile src/sys/src/*/makefile \
226                      src/makefile src/*/makefile src/*/src/makefile \
227                      src/*/interface/makefile \
228                      src/*/utils/makefile \
229                      src/*/impls/makefile src/*/impls/*/makefile src/*/impls/*/*/makefile \
230                      src/snes/interface/noise/makefile src/*/examples/makefile \
231		      src/*/examples/*/makefile src/*/examples/*/*/makefile \
232                      src/fortran/*/makefile src/fortran/f90/*/makefile \
233                      src/contrib/*/makefile src/contrib/*/src/makefile \
234                      src/contrib/*/examples/makefile src/contrib/*/examples/*/makefile \
235                      src/contrib/sif/*/makefile docs/makefile src/adic/*/makefile \
236                      src/contrib/pc/*/makefile src/contrib/makefile
237
238# Builds all etags files
239alletags:
240	-${OMAKE} etags_complete
241	-${OMAKE} etags
242	-${OMAKE} etags_noexamples
243	-${OMAKE} etags_examples
244	-${OMAKE} etags_makefiles
245	-${OMAKE} ctags
246
247# Builds the basic etags file.	This should be employed by most users.
248etags:
249	-${RM} TAGS
250	-etags -f TAGS ${TAGS_INCLUDE_FILES}
251	-etags -a -f TAGS ${TAGS_SRC_FILES}
252	-etags -a -f TAGS ${TAGS_EXAMPLE_FILES}
253	-etags -a -f TAGS ${TAGS_MAKEFILE_FILES}
254	-etags -a -f TAGS ${TAGS_BMAKE_FILES}
255	-chmod g+w TAGS
256
257# Builds complete etags list; only for PETSc developers.
258etags_complete:
259	-${RM} TAGS_COMPLETE
260	-etags -f TAGS_COMPLETE ${TAGS_SRC_FILES}
261	-etags -a -f TAGS_COMPLETE ${TAGS_INCLUDE_FILES}
262	-etags -a -f TAGS_COMPLETE ${TAGS_EXAMPLE_FILES}
263	-etags -a -f TAGS_COMPLETE ${TAGS_MAKEFILE_FILES}
264	-etags -a -f TAGS_COMPLETE ${TAGS_BMAKE_FILES}
265	-etags -a -f TAGS_COMPLETE ${TAGS_DOC_FILES}
266	-chmod g+w TAGS_COMPLETE
267
268# Builds the etags file that excludes the examples directories
269etags_noexamples:
270	-${RM} TAGS_NO_EXAMPLES
271	-etags -f TAGS_NO_EXAMPLES ${TAGS_SRC_FILES}
272	-etags -a -f TAGS_NO_EXAMPLES ${TAGS_INCLUDE_FILES}
273	-etags -a -f TAGS_NO_EXAMPLES ${TAGS_MAKEFILE_FILES}
274	-etags -a -f TAGS_NO_EXAMPLES ${TAGS_BMAKE_FILES}
275	-etags -a -f TAGS_NO_EXAMPLES ${TAGS_DOC_FILES}
276	-chmod g+w TAGS_NO_EXAMPLES
277
278# Builds the etags file for makefiles
279etags_makefiles:
280	-${RM} TAGS_MAKEFILES
281	-etags -f TAGS_MAKEFILES ${TAGS_MAKEFILE_FILES}
282	-etags -a -f TAGS_MAKEFILES ${TAGS_BMAKE_FILES}
283	-chmod g+w TAGS_MAKEFILES
284
285# Builds the etags file for examples
286etags_examples:
287	-${RM} TAGS_EXAMPLES
288	-etags -f TAGS_EXAMPLES ${TAGS_EXAMPLE_FILES}
289	-chmod g+w TAGS_EXAMPLES
290etags_fexamples:
291	-${RM} TAGS_FEXAMPLES
292	-etags -f TAGS_FEXAMPLES ${TAGS_FEXAMPLE_FILES}
293	-chmod g+w TAGS_FEXAMPLES
294
295#
296# To use the tags file from VI do the following:
297# 1. within vi invoke the command - :set tags=/home/bsmith/petsc/vitags
298#    or add  the command to your ~/.exrc file - set tags=/home/bsmith/petsc/vitags
299# 2. now to go to a tag do - :tag TAGNAME for eg - :tag MatCreate
300#
301ctags:
302	-${RM} vitags
303	-ctags -w -f vitags ${TAGS_INCLUDE_FILES}
304	-ctags -w -a -f vitags ${TAGS_SRC_FILES}
305	-ctags -w -a -f vitags ${TAGS_EXAMPLE_FILES}
306	-ctags -w -a -f vitags ${TAGS_MAKEFILE_FILES}
307	-ctags -w -a -f vitags ${TAGS_BMAKE_FILES}
308	-chmod g+w vitags
309#
310# These are here for the target allci and allco
311#
312
313DOCS	 = maint/addlinks maint/builddist \
314	   maint/buildlinks maint/wwwman maint/xclude maint/crontab\
315	   bmake/common bmake/*/base* maint/autoftp docs/manualpages/sec/* \
316           include/foldinclude/generateincludes bin/petscviewinfo.text \
317           bin/petscoptsinfo.text bmake/*/petscconf.h
318
319# Deletes man pages (HTML version)
320deletemanualpages:
321	${RM} -f ${PETSC_DIR}/docs/manualpages/man*/* \
322                 ${PETSC_DIR}/docs/manualpages/man?.html \
323                 ${PETSC_DIR}/docs/manualpages/manualpages.cit
324
325# Deletes man pages (LaTeX version)
326deletelatexpages:
327	${RM} -f ${PETSC_DIR}/docs/tex/rsum/*sum*.tex
328
329# Builds all versions of the man pages
330allmanpages: allmanualpages alllatexpages
331allmanualpages: deletemanualpages
332	-${OMAKE} ACTION=manualpages_buildcite tree
333	-cd src/fortran/custom; ${OMAKE} manualpages_buildcite
334	-cd src/fortran/custom; ${OMAKE} manualpages
335	-${OMAKE} ACTION=manualpages tree
336	-maint/wwwman ${PETSC_DIR}
337	-maint/examplesindex.tcl
338	-maint/htmlkeywords.tcl
339	-@chmod g+w docs/manualpages/man*/*
340
341alllatexpages: deletelatexpages
342	-${OMAKE} ACTION=latexpages tree
343	-cd src/fortran/custom; ${OMAKE} latexpages
344	-@chmod g+w docs/tex/rsum/*
345
346# Builds Fortran stub files
347allfortranstubs:
348	-@include/foldinclude/generateincludes
349	-@${RM} -f src/fortran/auto/*.c
350	-${OMAKE} ACTION=fortranstubs tree
351	-@cd src/fortran/auto; ${OMAKE} -f makefile fixfortran
352	chmod g+w src/fortran/auto/*.c
353
354allci:
355	-@cd src/fortran/custom ; ${OMAKE} BOPT=${BOPT} ci
356	-@cd src/fortran/f90 ; ${OMAKE} BOPT=${BOPT} ci
357	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=ci  tree
358
359allco:
360	-@cd src/fortran/custom ; ${OMAKE} BOPT=${BOPT} co
361	-@cd src/fortran/f90 ; ${OMAKE} BOPT=${BOPT} co
362	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=co  tree
363
364#
365#   The commands below are for generating ADIC versions of the code;
366# they are not currently used.
367#
368alladicignore:
369	-@${RM} ${PDIR}/adicignore
370	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adicignore  tree
371
372alladic:
373	-@echo "Beginning to compile ADIC source code in all directories"
374	-@echo "Using ADIC compiler: ${ADIC_CC} ${CCPPFLAGS}"
375	-@echo "========================================="
376	-@cd include ; \
377           ${ADIC_CC} -s -f 1 ${CCPPFLAGS} petsc.h
378	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic  tree
379	-@cd src/inline ; \
380            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} adic
381	-@cd src/blaslapack ; \
382            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic  tree
383
384alladiclib:
385	-@echo "Beginning to compile ADIC libraries in all directories"
386	-@echo "Using compiler: ${CC} ${COPTFLAGS}"
387	-@echo "-----------------------------------------"
388	-@echo "Using PETSc flags: ${PETSCFLAGS} ${PCONF}"
389	-@echo "-----------------------------------------"
390	-@echo "Using configuration flags:"
391	-@grep "define " bmake/${PETSC_ARCH}/petscconf.h
392	-@echo "-----------------------------------------"
393	-@echo "Using include paths: ${PETSC_INCLUDE}"
394	-@echo "-----------------------------------------"
395	-@echo "Using PETSc directory: ${PETSC_DIR}"
396	-@echo "Using PETSc arch: ${PETSC_ARCH}"
397	-@echo "========================================="
398	-@${RM} -f  ${PDIR}/*adic.a
399	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib  tree
400	-@cd src/blaslapack ; \
401            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib  tree
402	-@cd src/adic/src ; \
403            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib
404
405# -------------------------------------------------------------------------------
406#
407# Some macros to check if the fortran interface is up-to-date.
408#
409countfortranfunctions:
410	-@cd ${PETSC_DIR}/src/fortran; egrep '^void' custom/*.c auto/*.c | \
411	cut -d'(' -f1 | tr -s '' ' ' | cut -d' ' -f2 | uniq | egrep -v "(^$$|Petsc)" | \
412	sed "s/_$$//" | sort > /tmp/countfortranfunctions
413
414countcfunctions:
415	-@ grep extern ${PETSC_DIR}/include/*.h *.h | grep "(" | tr -s '' ' ' | \
416	cut -d'(' -f1 | cut -d' ' -f3 | grep -v "\*" | tr -s '' '\012' |  \
417	tr 'A-Z' 'a-z' |  sort > /tmp/countcfunctions
418
419difffortranfunctions: countfortranfunctions countcfunctions
420	-@echo -------------- Functions missing in the fortran interface ---------------------
421	-@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^<" | cut -d' ' -f2
422	-@echo ----------------- Functions missing in the C interface ------------------------
423	-@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^>" | cut -d' ' -f2
424	-@${RM}  /tmp/countcfunctions /tmp/countfortranfunctions
425
426checkbadfortranstubs:
427	-@echo "========================================="
428	-@echo "Functions with MPI_Comm as an Argument"
429	-@echo "========================================="
430	-@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'MPI_Comm' | \
431	tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3
432	-@echo "========================================="
433	-@echo "Functions with a String as an Argument"
434	-@echo "========================================="
435	-@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'char \*' | \
436	tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3
437	-@echo "========================================="
438	-@echo "Functions with Pointers to PETSc Objects as Argument"
439	-@echo "========================================="
440	-@cd ${PETSC_DIR}/src/fortran/auto; \
441	_p_OBJ=`grep _p_ ${PETSC_DIR}/include/*.h | tr -s '' ' ' | \
442	cut -d' ' -f 3 | tr -s '' '\012' | grep -v '{' | cut -d'*' -f1 | \
443	sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \
444	for OBJ in $$_p_OBJ; do \
445	grep "$$OBJ \*" *.c | tr -s '' ' ' | tr -s ':' ' ' | \
446	cut -d'(' -f1 | cut -d' ' -f1,3; \
447	done
448# Builds noise routines (not yet publically available)
449# Note:	 libfast cannot run on .F files on certain machines, so we
450# use lib and check for errors here.
451noise: info chkpetsc_dir
452	-@echo "Beginning to compile noise routines"
453	-@echo "========================================="
454	-@cd src/snes/interface/noise; \
455	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib > trashz 2>&1; \
456	  grep -v clog trashz | grep -v "information sections" | \
457	  egrep -i '(Error|warning|Can)' >> /dev/null;\
458	  if [ "$$?" != 1 ]; then \
459	  cat trashz ; fi; ${RM} trashz
460	${RANLIB} ${PDIR}/libpetscsnes.a
461	-@chmod g+w  ${PDIR}/libpetscsnes.a
462	-@echo "Completed compiling noise routines"
463	-@echo "========================================="
464
465