xref: /petsc/makefile (revision 897b336666b7dded7d2c499e823acecb61265727)
16b5873e3SBarry SmithIPETSCDIR = .
261523587SBarry Smith
36b5873e3SBarry SmithCFLAGS   = $(OPT) -I$(IPETSCDIR)/include -I.. -I$(IPETSCDIR) $(CONF)
461523587SBarry SmithSOURCEC  =
561523587SBarry SmithSOURCEF  =
661523587SBarry SmithWSOURCEC =
761523587SBarry SmithSOURCEH  =
861523587SBarry SmithOBJSC    =
961523587SBarry SmithWOBJS    =
1061523587SBarry SmithOBJSF    =
1161523587SBarry SmithLIBBASE  = libpetscvec
1261523587SBarry SmithLINCLUDE = $(SOURCEH)
1320563c6bSBarry SmithDIRS     = src include pinclude
1461523587SBarry Smith
157857610eSBarry Smithinclude $(IPETSCDIR)/bmake/$(PETSC_ARCH)/$(PETSC_ARCH)
1661523587SBarry Smith
177857610eSBarry Smithall: chkpetsc_dir
1828988994SBarry Smith	-@if [ ! -d $(LDIR) ]; then \
1928988994SBarry Smith          echo $(LDIR) ; mkdir -p $(LDIR) ; fi
20f0479e8cSBarry Smith	-$(RM) -f $(LDIR)/*.a
21e35bd481SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
22e35bd481SBarry Smith           PETSC_VERSION=$(PETSC_VERSION) ACTION=libfast  tree
2320563c6bSBarry Smith	$(RANLIB) $(LDIR)/*.a
2461523587SBarry Smith
258c37ef55SBarry Smithranlib:
2620563c6bSBarry Smith	$(RANLIB) $(LDIR)/*.a
2761523587SBarry Smith
2861523587SBarry Smithdeletelibs:
29e35bd481SBarry Smith	-$(RM) -f $(LDIR)/*.a $(LDIR)/complex/* $(LDIR)/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
407acb7333SLois Curfman McInnes#  To access the tags in emacs, type M-x visit-tags-table and specify
417acb7333SLois Curfman McInnes#  the file petsc/TAGS.  Then, to move to where a PETSc function is
427acb7333SLois Curfman McInnes#  defined, enter M-. and the function name.  To search for a string
437acb7333SLois Curfman McInnes#  and move to the first occurrence, use M-x tags-search and the string.
447acb7333SLois Curfman McInnes#  To locate later occurrences, use M-,
457acb7333SLois Curfman McInnes
4620563c6bSBarry Smithetags:
4720563c6bSBarry Smith	$(RM) -f TAGS
4820563c6bSBarry Smith	etags -f TAGS    src/*/impls/*/*.h src/*/impls/*/*/*.h src/*/examples/*.c
49fc9f4da1SBarry Smith	etags -a -f TAGS src/*/*.h src/*/*.c src/*/src/*.c src/*/impls/*/*.c
50c6a45a97SBarry Smith	etags -a -f TAGS src/*/impls/*/*/*.c src/*/utils/*.c
516b5873e3SBarry Smith	etags -a -f TAGS docs/tex/manual.tex src/sys/error/*.c
521eb62cbbSBarry Smith	etags -a -f TAGS include/*.h pinclude/*.h
53fe7474a4SBarry Smith	etags -a -f TAGS src/*/impls/*.c src/sys/*.c
54f5354500SBarry Smith	etags -a -f TAGS makefile src/*/src/makefile src/makefile
55f5354500SBarry Smith	etags -a -f TAGS src/*/impls/makefile src/*/impls/*/makefile
56*897b3366SBarry Smith	etags -a -f TAGS bmake/common docs/tex/routin.tex
573ebb8ef7SBarry Smith	etags -a -f TAGS src/*/utils/makefile src/*/examples/makefile
583ebb8ef7SBarry Smith	etags -a -f TAGS src/*/makefile src/*/impls/*/*/makefile
5928988994SBarry Smith	chmod g+w TAGS
601eb62cbbSBarry Smith
61c6a45a97SBarry Smithrunexamples:
62