xref: /petsc/makefile (revision 8c48e01225d742c33a2eb845e650075371422bb0)
1IPETSCDIR = .
2
3CFLAGS   = $(OPT) -I$(IPETSCDIR)/include -I.. -I$(IPETSCDIR) $(CONF)
4SOURCEC  =
5SOURCEF  =
6WSOURCEC =
7SOURCEH  = Changes Machines readme maint/addlinks maint/buildtest maint/builddist \
8           maint/buildlinks maint/wwwman maint/xclude maint/crontab
9OBJSC    =
10WOBJS    =
11OBJSF    =
12LIBBASE  = libpetscvec
13LINCLUDE = $(SOURCEH)
14DIRS     = src include pinclude docs
15
16include $(IPETSCDIR)/bmake/$(PETSC_ARCH)/$(PETSC_ARCH)
17
18all: chkpetsc_dir
19	-$(RM) -f $(PDIR)/*.a
20	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
21           PETSC_VERSION=$(PETSC_VERSION) ACTION=libfast  tree
22	$(RANLIB) $(PDIR)/*.a
23
24ranlib:
25	$(RANLIB) $(PDIR)/*.a
26
27deletelibs:
28	-$(RM) -f $(PDIR)/*.a $(PDIR)/complex/* $(PDIR)/c++/*
29
30deletemanpages:
31	$(RM) -f $(PETSC_DIR)/Keywords $(PETSC_DIR)/docs/man/man*/*
32
33deletewwwpages:
34	$(RM) -f $(PETSC_DIR)/docs/www/man*/* $(PETSC_DIR)/docs/www/www.cit
35
36deletelatexpages:
37	$(RM) -f $(PETSC_DIR)/docs/tex/rsum/*sum*.tex
38
39#  To access the tags in emacs, type M-x visit-tags-table and specify
40#  the file petsc/TAGS.  Then, to move to where a PETSc function is
41#  defined, enter M-. and the function name.  To search for a string
42#  and move to the first occurrence, use M-x tags-search and the string.
43#  To locate later occurrences, use M-,
44
45etags:
46	$(RM) TAGS
47	etags -f TAGS    src/*/impls/*/*.h src/*/impls/*/*/*.h
48	etags -a -f TAGS src/*/examples/*.c
49	etags -a -f TAGS src/*/*.h src/*/src/*.c src/*/impls/*/*.c
50	etags -a -f TAGS src/*/impls/*/*/*.c src/*/impls/*/*/*/*.c
51	etags -a -f TAGS include/*.h pinclude/*.h bmake/common
52	etags -a -f TAGS src/*/impls/*.c src/*/utils/*.c
53	etags -a -f TAGS makefile src/*/src/makefile src/makefile
54	etags -a -f TAGS src/*/impls/makefile src/*/impls/*/makefile
55	etags -a -f TAGS src/*/utils/makefile src/*/examples/makefile
56	etags -a -f TAGS src/*/makefile src/*/impls/*/*/makefile
57	etags -a -f TAGS bmake/common.* bmake/sun4/sun4* bmake/rs6000/rs6000*
58	etags -a -f TAGS bmake/IRIX/*.* bmake/freebsd/freebsd*
59	etags -a -f TAGS bmake/hpux/*.* bmake/NeXT/NeXT* bmake/alpha/alpha*
60	etags -a -f TAGS docs/tex/routin.tex  docs/tex/manual.tex
61	chmod g+w TAGS
62