xref: /petsc/makefile (revision 97be1f8b05802a047110cc9c0d100c63d1c34936)
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\
8deb7fc1cSBarry Smith           maint/buildlinks maint/wwwman maint/xclude maint/crontab\
96b2e9f06SBarry Smith           bmake/common bmake/*/*.*
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
44*97be1f8bSBarry SmithallC2f77:
45*97be1f8bSBarry Smith	-@$(RM) $(PETSC_DIR)/c2f77/*.c
46*97be1f8bSBarry Smith	-make ACTION=C2f77 tree
47*97be1f8bSBarry Smith
487acb7333SLois Curfman McInnes#  To access the tags in emacs, type M-x visit-tags-table and specify
497acb7333SLois Curfman McInnes#  the file petsc/TAGS.  Then, to move to where a PETSc function is
507acb7333SLois Curfman McInnes#  defined, enter M-. and the function name.  To search for a string
517acb7333SLois Curfman McInnes#  and move to the first occurrence, use M-x tags-search and the string.
527acb7333SLois Curfman McInnes#  To locate later occurrences, use M-,
537acb7333SLois Curfman McInnes
5420563c6bSBarry Smithetags:
55edd2f0e1SBarry Smith	$(RM) TAGS
5670a6ad8cSBarry Smith	etags -f TAGS    src/*/impls/*/*.h src/*/impls/*/*/*.h
5770a6ad8cSBarry Smith	etags -a -f TAGS src/*/examples/*.c
589b0d1189SLois Curfman McInnes	etags -a -f TAGS src/*/*.h src/*/src/*.c src/*/impls/*/*.c
59d60b1e76SLois Curfman McInnes	etags -a -f TAGS src/*/impls/*/*/*.c src/*/impls/*/*/*/*.c
6070a6ad8cSBarry Smith	etags -a -f TAGS include/*.h pinclude/*.h bmake/common
6170a6ad8cSBarry Smith	etags -a -f TAGS src/*/impls/*.c src/*/utils/*.c
62f5354500SBarry Smith	etags -a -f TAGS makefile src/*/src/makefile src/makefile
63f5354500SBarry Smith	etags -a -f TAGS src/*/impls/makefile src/*/impls/*/makefile
643ebb8ef7SBarry Smith	etags -a -f TAGS src/*/utils/makefile src/*/examples/makefile
653ebb8ef7SBarry Smith	etags -a -f TAGS src/*/makefile src/*/impls/*/*/makefile
660675aaacSBarry Smith	etags -a -f TAGS bmake/common bmake/sun4/sun4* bmake/rs6000/rs6000*
67deb7fc1cSBarry Smith	etags -a -f TAGS bmake/solaris/solaris*
680675aaacSBarry Smith	etags -a -f TAGS bmake/IRIX/IRIX* bmake/freebsd/freebsd*
69017faef8SBarry Smith	etags -a -f TAGS bmake/hpux/hpux* bmake/alpha/alpha*
700675aaacSBarry Smith	etags -a -f TAGS bmake/t3d/t3d* bmake/paragon/paragon*
7170a6ad8cSBarry Smith	etags -a -f TAGS docs/tex/routin.tex  docs/tex/manual.tex
726f817ba4SBarry Smith	etags -a -f TAGS docs/tex/intro.tex  docs/tex/part1.tex
7328988994SBarry Smith	chmod g+w TAGS
74bfce26a3SBarry Smith
75bfce26a3SBarry Smithetags_noexamples:
76bfce26a3SBarry Smith	$(RM) TAGS_NO_EXAMPLES
77bfce26a3SBarry Smith	etags -f TAGS_NO_EXAMPLES src/*/impls/*/*.h src/*/impls/*/*/*.h
78464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/*.h src/*/src/*.c src/*/impls/*/*.c
79464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/impls/*/*/*.c src/*/impls/*/*/*/*.c
80464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES include/*.h pinclude/*.h bmake/common
81464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/impls/*.c src/*/utils/*.c
82464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES makefile src/*/src/makefile src/makefile
83464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/impls/makefile src/*/impls/*/makefile
84464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/utils/makefile
85464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/makefile src/*/impls/*/*/makefile
86464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/common bmake/sun4/sun4*
87464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/rs6000/rs6000*
88464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/solaris/solaris*
89464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/IRIX/IRIX* bmake/freebsd/freebsd*
90464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/hpux/hpux* bmake/alpha/alpha*
91464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/t3d/t3d* bmake/paragon/paragon*
92464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/routin.tex  docs/tex/manual.tex
93464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/intro.tex  docs/tex/part1.tex
94bfce26a3SBarry Smith	chmod g+w TAGS_NO_EXAMPLES
95