xref: /petsc/makefile (revision deb7fc1c4465ca5fb9b48a0272a8b64265471076)
16b5873e3SBarry SmithIPETSCDIR = .
261523587SBarry Smith
36b5873e3SBarry SmithCFLAGS   = $(OPT) -I$(IPETSCDIR)/include -I.. -I$(IPETSCDIR) $(CONF)
461523587SBarry SmithSOURCEC  =
561523587SBarry SmithSOURCEF  =
66f817ba4SBarry SmithSOURCEH  = Changes Machines Readme maint/addlinks maint/buildtest \
7e4ed4ffcSBarry Smith           maint/builddist FAQ Installation Performance\
8*deb7fc1cSBarry Smith           maint/buildlinks maint/wwwman maint/xclude maint/crontab\
9*deb7fc1cSBarry Smith           bmake/common
1061523587SBarry SmithOBJSC    =
1161523587SBarry SmithOBJSF    =
1261523587SBarry SmithLIBBASE  = libpetscvec
1301fc3e1bSBarry SmithDIRS     = src include pinclude docs
1461523587SBarry Smith
157857610eSBarry Smithinclude $(IPETSCDIR)/bmake/$(PETSC_ARCH)/$(PETSC_ARCH)
1661523587SBarry Smith
177857610eSBarry Smithall: chkpetsc_dir
184e04c1a0SBarry Smith	-$(RM) -f $(PDIR)/*.a
19e35bd481SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
20f3848965SBarry Smith           ACTION=libfast  tree
214e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
2261523587SBarry Smith
238c37ef55SBarry Smithranlib:
244e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
2561523587SBarry Smith
2661523587SBarry Smithdeletelibs:
274e04c1a0SBarry Smith	-$(RM) -f $(PDIR)/*.a $(PDIR)/complex/* $(PDIR)/c++/*
28d44968ceSBarry Smith
29d44968ceSBarry Smithdeletemanpages:
307857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/Keywords $(PETSC_DIR)/docs/man/man*/*
31d44968ceSBarry Smith
32b346654fSBarry Smithdeletewwwpages:
337857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/docs/www/man*/* $(PETSC_DIR)/docs/www/www.cit
34b346654fSBarry Smith
35b346654fSBarry Smithdeletelatexpages:
367857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/docs/tex/rsum/*sum*.tex
3720563c6bSBarry Smith
38126c565eSBarry Smithallmanpages: deletemanpages deletewwwpages deletelatexpages
39126c565eSBarry Smith	-make ACTION=manpages tree
40126c565eSBarry Smith	-make ACTION=wwwpages tree
41126c565eSBarry Smith	-make ACTION=latexpages tree
42126c565eSBarry Smith	-maint/wwwman
43126c565eSBarry Smith
447acb7333SLois Curfman McInnes#  To access the tags in emacs, type M-x visit-tags-table and specify
457acb7333SLois Curfman McInnes#  the file petsc/TAGS.  Then, to move to where a PETSc function is
467acb7333SLois Curfman McInnes#  defined, enter M-. and the function name.  To search for a string
477acb7333SLois Curfman McInnes#  and move to the first occurrence, use M-x tags-search and the string.
487acb7333SLois Curfman McInnes#  To locate later occurrences, use M-,
497acb7333SLois Curfman McInnes
5020563c6bSBarry Smithetags:
51edd2f0e1SBarry Smith	$(RM) TAGS
5270a6ad8cSBarry Smith	etags -f TAGS    src/*/impls/*/*.h src/*/impls/*/*/*.h
5370a6ad8cSBarry Smith	etags -a -f TAGS src/*/examples/*.c
549b0d1189SLois Curfman McInnes	etags -a -f TAGS src/*/*.h src/*/src/*.c src/*/impls/*/*.c
55d60b1e76SLois Curfman McInnes	etags -a -f TAGS src/*/impls/*/*/*.c src/*/impls/*/*/*/*.c
5670a6ad8cSBarry Smith	etags -a -f TAGS include/*.h pinclude/*.h bmake/common
5770a6ad8cSBarry Smith	etags -a -f TAGS src/*/impls/*.c src/*/utils/*.c
58f5354500SBarry Smith	etags -a -f TAGS makefile src/*/src/makefile src/makefile
59f5354500SBarry Smith	etags -a -f TAGS src/*/impls/makefile src/*/impls/*/makefile
603ebb8ef7SBarry Smith	etags -a -f TAGS src/*/utils/makefile src/*/examples/makefile
613ebb8ef7SBarry Smith	etags -a -f TAGS src/*/makefile src/*/impls/*/*/makefile
620675aaacSBarry Smith	etags -a -f TAGS bmake/common bmake/sun4/sun4* bmake/rs6000/rs6000*
63*deb7fc1cSBarry Smith	etags -a -f TAGS bmake/solaris/solaris*
640675aaacSBarry Smith	etags -a -f TAGS bmake/IRIX/IRIX* bmake/freebsd/freebsd*
65017faef8SBarry Smith	etags -a -f TAGS bmake/hpux/hpux* bmake/alpha/alpha*
660675aaacSBarry Smith	etags -a -f TAGS bmake/t3d/t3d* bmake/paragon/paragon*
6770a6ad8cSBarry Smith	etags -a -f TAGS docs/tex/routin.tex  docs/tex/manual.tex
686f817ba4SBarry Smith	etags -a -f TAGS docs/tex/intro.tex  docs/tex/part1.tex
6928988994SBarry Smith	chmod g+w TAGS
70