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