xref: /petsc/makefile (revision 6f817ba45998eff236e0c5c0ec39bed029720ccd)
16b5873e3SBarry SmithIPETSCDIR = .
261523587SBarry Smith
36b5873e3SBarry SmithCFLAGS   = $(OPT) -I$(IPETSCDIR)/include -I.. -I$(IPETSCDIR) $(CONF)
461523587SBarry SmithSOURCEC  =
561523587SBarry SmithSOURCEF  =
661523587SBarry SmithWSOURCEC =
7*6f817ba4SBarry SmithSOURCEH  = Changes Machines Readme maint/addlinks maint/buildtest \
8*6f817ba4SBarry Smith           maint/builddist FAQ Installation\
967fa8010SBarry Smith           maint/buildlinks maint/wwwman maint/xclude maint/crontab
1061523587SBarry SmithOBJSC    =
1161523587SBarry SmithWOBJS    =
1261523587SBarry SmithOBJSF    =
1361523587SBarry SmithLIBBASE  = libpetscvec
1461523587SBarry SmithLINCLUDE = $(SOURCEH)
1501fc3e1bSBarry SmithDIRS     = src include pinclude docs
1661523587SBarry Smith
177857610eSBarry Smithinclude $(IPETSCDIR)/bmake/$(PETSC_ARCH)/$(PETSC_ARCH)
1861523587SBarry Smith
197857610eSBarry Smithall: chkpetsc_dir
204e04c1a0SBarry Smith	-$(RM) -f $(PDIR)/*.a
21e35bd481SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
22f3848965SBarry Smith           ACTION=libfast  tree
234e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
2461523587SBarry Smith
258c37ef55SBarry Smithranlib:
264e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
2761523587SBarry Smith
2861523587SBarry Smithdeletelibs:
294e04c1a0SBarry Smith	-$(RM) -f $(PDIR)/*.a $(PDIR)/complex/* $(PDIR)/c++/*
30d44968ceSBarry Smith
31d44968ceSBarry Smithdeletemanpages:
327857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/Keywords $(PETSC_DIR)/docs/man/man*/*
33d44968ceSBarry Smith
34b346654fSBarry Smithdeletewwwpages:
357857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/docs/www/man*/* $(PETSC_DIR)/docs/www/www.cit
36b346654fSBarry Smith
37b346654fSBarry Smithdeletelatexpages:
387857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/docs/tex/rsum/*sum*.tex
3920563c6bSBarry Smith
40126c565eSBarry Smithallmanpages: deletemanpages deletewwwpages deletelatexpages
41126c565eSBarry Smith	-make ACTION=manpages tree
42126c565eSBarry Smith	-make ACTION=wwwpages tree
43126c565eSBarry Smith	-make ACTION=latexpages tree
44126c565eSBarry Smith	-maint/wwwman
45126c565eSBarry Smith
467acb7333SLois Curfman McInnes#  To access the tags in emacs, type M-x visit-tags-table and specify
477acb7333SLois Curfman McInnes#  the file petsc/TAGS.  Then, to move to where a PETSc function is
487acb7333SLois Curfman McInnes#  defined, enter M-. and the function name.  To search for a string
497acb7333SLois Curfman McInnes#  and move to the first occurrence, use M-x tags-search and the string.
507acb7333SLois Curfman McInnes#  To locate later occurrences, use M-,
517acb7333SLois Curfman McInnes
5220563c6bSBarry Smithetags:
53edd2f0e1SBarry Smith	$(RM) TAGS
5470a6ad8cSBarry Smith	etags -f TAGS    src/*/impls/*/*.h src/*/impls/*/*/*.h
5570a6ad8cSBarry Smith	etags -a -f TAGS src/*/examples/*.c
569b0d1189SLois Curfman McInnes	etags -a -f TAGS src/*/*.h src/*/src/*.c src/*/impls/*/*.c
57d60b1e76SLois Curfman McInnes	etags -a -f TAGS src/*/impls/*/*/*.c src/*/impls/*/*/*/*.c
5870a6ad8cSBarry Smith	etags -a -f TAGS include/*.h pinclude/*.h bmake/common
5970a6ad8cSBarry Smith	etags -a -f TAGS src/*/impls/*.c src/*/utils/*.c
60f5354500SBarry Smith	etags -a -f TAGS makefile src/*/src/makefile src/makefile
61f5354500SBarry Smith	etags -a -f TAGS src/*/impls/makefile src/*/impls/*/makefile
623ebb8ef7SBarry Smith	etags -a -f TAGS src/*/utils/makefile src/*/examples/makefile
633ebb8ef7SBarry Smith	etags -a -f TAGS src/*/makefile src/*/impls/*/*/makefile
640675aaacSBarry Smith	etags -a -f TAGS bmake/common bmake/sun4/sun4* bmake/rs6000/rs6000*
650675aaacSBarry Smith	etags -a -f TAGS bmake/IRIX/IRIX* bmake/freebsd/freebsd*
660675aaacSBarry Smith	etags -a -f TAGS bmake/hpux/hpux* bmake/NeXT/NeXT* bmake/alpha/alpha*
670675aaacSBarry Smith	etags -a -f TAGS bmake/t3d/t3d* bmake/paragon/paragon*
6870a6ad8cSBarry Smith	etags -a -f TAGS docs/tex/routin.tex  docs/tex/manual.tex
69*6f817ba4SBarry Smith	etags -a -f TAGS docs/tex/intro.tex  docs/tex/part1.tex
7028988994SBarry Smith	chmod g+w TAGS
71