xref: /petsc/makefile (revision 15091d3721b14bd18f7efa625bb8738e103dca31)
1# $Id: makefile,v 1.271 1999/03/15 22:01:20 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_complete
185	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags_noexamples
186	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags_examples
187	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags_makefiles
188# Builds the basic etags file.	This should be employed by most users.
189etags:
190	-${RM} ${TAGSDIR}/TAGS
191	-touch ${TAGSDIR}/TAGS
192	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_sourcec alltree
193	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_sourceh alltree
194	-cd src/fortran; ${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_sourcef alltree
195	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesc alltree
196	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesf alltree
197	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesch alltree
198	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesfh alltree
199	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_makefile alltree
200	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS etags_bmakefiles
201	-chmod g+w TAGS
202# Builds complete etags list; only for PETSc developers.
203etags_complete:
204	-${RM} ${TAGSDIR}/TAGS_COMPLETE
205	-touch ${TAGSDIR}/TAGS_COMPLETE
206	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_sourcec alltree
207	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_sourceh alltree
208	-cd src/fortran; ${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_sourcef alltree
209	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesc alltree
210	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesf alltree
211	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesch alltree
212	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesfh alltree
213	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_makefile alltree
214	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE etags_bmakefiles
215	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_docs alltree
216	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_scripts alltree
217	-chmod g+w TAGS_COMPLETE
218# Builds the etags file that excludes the examples directories
219etags_noexamples:
220	-${RM} ${TAGSDIR}/TAGS_NO_EXAMPLES
221	-touch ${TAGSDIR}/TAGS_NO_EXAMPLES
222	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_sourcec alltree
223	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_sourceh alltree
224	-cd src/fortran; ${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_sourcef alltree
225	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_makefile alltree
226	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES etags_bmakefiles
227	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_docs alltree
228	-chmod g+w TAGS_NO_EXAMPLES
229# Builds the etags file for makefiles
230etags_makefiles:
231	-${RM} ${TAGSDIR}/TAGS_MAKEFILES
232	-touch ${TAGSDIR}/TAGS_MAKEFILES
233	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_MAKEFILES ACTION=etags_makefile alltree
234	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_MAKEFILES etags_bmakefiles
235	-chmod g+w TAGS_MAKEFILES
236# Builds the etags file for examples
237etags_examples:
238	-${RM} ${TAGSDIR}/TAGS_EXAMPLES
239	-touch ${TAGSDIR}/TAGS_EXAMPLES
240	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesc alltree
241	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesch alltree
242	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesf alltree
243	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesfh alltree
244	-chmod g+w TAGS_EXAMPLES
245etags_fexamples:
246	-${RM} ${TAGSDIR}/TAGS_FEXAMPLES
247	-touch ${TAGSDIR}/TAGS_FEXAMPLES
248	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_FEXAMPLES ACTION=etags_examplesf alltree
249	-${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesfh alltree
250	-chmod g+w TAGS_FEXAMPLES
251#
252# These are here for the target allci and allco, and etags
253#
254
255BMAKEFILES = bmake/common* bmake/*/base* bmake/*/petscconf.h bmake/win32/makefile.dos
256DOCS	   = bin/petscviewinfo.text bin/petscoptsinfo.text \
257	     bmake/readme bmake/petscconf.defs
258SCRIPTS    = maint/addlinks maint/builddist maint/buildlinks maint/wwwman \
259	     maint/xclude maint/crontab  \
260	     maint/autoftp include/foldinclude/generateincludes
261
262# Builds all the documentation - should be done everynight
263alldoc: allmanpages
264	cd docs/tex/manual; ${OMAKE} manual.dvi manual.ps manual.html manual/manual.html
265
266# Deletes man pages (HTML version)
267deletemanualpages:
268	${RM} -f ${PETSC_DIR}/docs/manualpages/*/*.html \
269                 ${PETSC_DIR}/docs/manualpages/manualpages.cit
270
271# Deletes man pages (LaTeX version)
272deletelatexpages:
273	${RM} -f ${PETSC_DIR}/docs/tex/rsum/*sum*.tex
274
275# Builds all versions of the man pages
276allmanpages: allmanualpages alllatexpages
277allmanualpages: deletemanualpages
278	-${OMAKE} ACTION=manualpages_buildcite tree
279	-${OMAKE} ACTION=manualpages tree
280	-maint/wwwindex.py ${PETSC_DIR}
281	-maint/examplesindex.tcl
282	-maint/htmlkeywords.tcl
283	-@chmod g+w docs/manualpages/*/*.html
284
285alllatexpages: deletelatexpages
286	-${OMAKE} ACTION=latexpages tree
287	-@chmod g+w docs/tex/rsum/*
288
289# Builds Fortran stub files
290allfortranstubs:
291	-@include/foldinclude/generateincludes
292	-@${RM} -f src/fortran/auto/*.c
293	-${OMAKE} ACTION=fortranstubs tree
294	-@cd src/fortran/auto; ${OMAKE} -f makefile fixfortran
295	chmod g+w src/fortran/auto/*.c
296
297allci:
298	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=ci  alltree
299
300allco:
301	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=co  alltree
302
303#
304#   The commands below are for generating ADIC versions of the code;
305# they are not currently used.
306#
307alladicignore:
308	-@${RM} ${PDIR}/adicignore
309	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adicignore  tree
310
311alladic:
312	-@echo "Beginning to compile ADIC source code in all directories"
313	-@echo "Using ADIC compiler: ${ADIC_CC} ${CCPPFLAGS}"
314	-@echo "========================================="
315	-@cd include ; \
316           ${ADIC_CC} -s -f 1 ${CCPPFLAGS} petsc.h
317	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic  tree
318	-@cd src/inline ; \
319            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} adic
320	-@cd src/blaslapack ; \
321            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic  tree
322
323alladiclib:
324	-@echo "Beginning to compile ADIC libraries in all directories"
325	-@echo "Using compiler: ${CC} ${COPTFLAGS}"
326	-@echo "-----------------------------------------"
327	-@echo "Using PETSc flags: ${PETSCFLAGS} ${PCONF}"
328	-@echo "-----------------------------------------"
329	-@echo "Using configuration flags:"
330	-@grep "define " bmake/${PETSC_ARCH}/petscconf.h
331	-@echo "-----------------------------------------"
332	-@echo "Using include paths: ${PETSC_INCLUDE}"
333	-@echo "-----------------------------------------"
334	-@echo "Using PETSc directory: ${PETSC_DIR}"
335	-@echo "Using PETSc arch: ${PETSC_ARCH}"
336	-@echo "========================================="
337	-@${RM} -f  ${PDIR}/*adic.a
338	-@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib  tree
339	-@cd src/blaslapack ; \
340            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib  tree
341	-@cd src/adic/src ; \
342            ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib
343
344# -------------------------------------------------------------------------------
345#
346# Some macros to check if the fortran interface is up-to-date.
347#
348countfortranfunctions:
349	-@cd ${PETSC_DIR}/src/fortran; egrep '^void' custom/*.c auto/*.c | \
350	cut -d'(' -f1 | tr -s '' ' ' | cut -d' ' -f2 | uniq | egrep -v "(^$$|Petsc)" | \
351	sed "s/_$$//" | sort > /tmp/countfortranfunctions
352
353countcfunctions:
354	-@ grep extern ${PETSC_DIR}/include/*.h *.h | grep "(" | tr -s '' ' ' | \
355	cut -d'(' -f1 | cut -d' ' -f3 | grep -v "\*" | tr -s '' '\012' |  \
356	tr 'A-Z' 'a-z' |  sort > /tmp/countcfunctions
357
358difffortranfunctions: countfortranfunctions countcfunctions
359	-@echo -------------- Functions missing in the fortran interface ---------------------
360	-@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^<" | cut -d' ' -f2
361	-@echo ----------------- Functions missing in the C interface ------------------------
362	-@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^>" | cut -d' ' -f2
363	-@${RM}  /tmp/countcfunctions /tmp/countfortranfunctions
364
365checkbadfortranstubs:
366	-@echo "========================================="
367	-@echo "Functions with MPI_Comm as an Argument"
368	-@echo "========================================="
369	-@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'MPI_Comm' | \
370	tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3
371	-@echo "========================================="
372	-@echo "Functions with a String as an Argument"
373	-@echo "========================================="
374	-@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'char \*' | \
375	tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3
376	-@echo "========================================="
377	-@echo "Functions with Pointers to PETSc Objects as Argument"
378	-@echo "========================================="
379	-@cd ${PETSC_DIR}/src/fortran/auto; \
380	_p_OBJ=`grep _p_ ${PETSC_DIR}/include/*.h | tr -s '' ' ' | \
381	cut -d' ' -f 3 | tr -s '' '\012' | grep -v '{' | cut -d'*' -f1 | \
382	sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \
383	for OBJ in $$_p_OBJ; do \
384	grep "$$OBJ \*" *.c | tr -s '' ' ' | tr -s ':' ' ' | \
385	cut -d'(' -f1 | cut -d' ' -f1,3; \
386	done
387# Builds noise routines (not yet publically available)
388# Note:	 libfast cannot run on .F files on certain machines, so we
389# use lib and check for errors here.
390noise: info chkpetsc_dir
391	-@echo "Beginning to compile noise routines"
392	-@echo "========================================="
393	-@cd src/snes/interface/noise; \
394	  ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib > trashz 2>&1; \
395	  grep -v clog trashz | grep -v "information sections" | \
396	  egrep -i '(Error|warning|Can)' >> /dev/null;\
397	  if [ "$$?" != 1 ]; then \
398	  cat trashz ; fi; ${RM} trashz
399	${RANLIB} ${PDIR}/libpetscsnes.a
400	-@chmod g+w  ${PDIR}/libpetscsnes.a
401	-@echo "Completed compiling noise routines"
402	-@echo "========================================="
403
404