xref: /petsc/makefile (revision 70a6ad8c5ec5987523cc8e26e6f9e9e3598a434c)
16b5873e3SBarry SmithIPETSCDIR = .
261523587SBarry Smith
36b5873e3SBarry SmithCFLAGS   = $(OPT) -I$(IPETSCDIR)/include -I.. -I$(IPETSCDIR) $(CONF)
461523587SBarry SmithSOURCEC  =
561523587SBarry SmithSOURCEF  =
661523587SBarry SmithWSOURCEC =
706be10caSBarry SmithSOURCEH  = Changes
861523587SBarry SmithOBJSC    =
961523587SBarry SmithWOBJS    =
1061523587SBarry SmithOBJSF    =
1161523587SBarry SmithLIBBASE  = libpetscvec
1261523587SBarry SmithLINCLUDE = $(SOURCEH)
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) \
20e35bd481SBarry Smith           PETSC_VERSION=$(PETSC_VERSION) 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
387acb7333SLois Curfman McInnes#  To access the tags in emacs, type M-x visit-tags-table and specify
397acb7333SLois Curfman McInnes#  the file petsc/TAGS.  Then, to move to where a PETSc function is
407acb7333SLois Curfman McInnes#  defined, enter M-. and the function name.  To search for a string
417acb7333SLois Curfman McInnes#  and move to the first occurrence, use M-x tags-search and the string.
427acb7333SLois Curfman McInnes#  To locate later occurrences, use M-,
437acb7333SLois Curfman McInnes
4420563c6bSBarry Smithetags:
45edd2f0e1SBarry Smith	$(RM) TAGS
46*70a6ad8cSBarry Smith	etags -f TAGS    src/*/impls/*/*.h src/*/impls/*/*/*.h
47*70a6ad8cSBarry Smith	etags -a -f TAGS src/*/examples/*.c
489b0d1189SLois Curfman McInnes	etags -a -f TAGS src/*/*.h src/*/src/*.c src/*/impls/*/*.c
49d60b1e76SLois Curfman McInnes	etags -a -f TAGS src/*/impls/*/*/*.c src/*/impls/*/*/*/*.c
50*70a6ad8cSBarry Smith	etags -a -f TAGS include/*.h pinclude/*.h bmake/common
51*70a6ad8cSBarry Smith	etags -a -f TAGS src/*/impls/*.c src/*/utils/*.c
52f5354500SBarry Smith	etags -a -f TAGS makefile src/*/src/makefile src/makefile
53f5354500SBarry Smith	etags -a -f TAGS src/*/impls/makefile src/*/impls/*/makefile
543ebb8ef7SBarry Smith	etags -a -f TAGS src/*/utils/makefile src/*/examples/makefile
553ebb8ef7SBarry Smith	etags -a -f TAGS src/*/makefile src/*/impls/*/*/makefile
56d50785dfSBarry Smith	etags -a -f TAGS bmake/common.* bmake/sun4/sun4* bmake/rs6000/rs6000*
57d50785dfSBarry Smith	etags -a -f TAGS bmake/IRIX/*.* bmake/freebsd/freebsd*
58d50785dfSBarry Smith	etags -a -f TAGS bmake/hpux/*.* bmake/NeXT/NeXT* bmake/alpha/alpha*
59*70a6ad8cSBarry Smith	etags -a -f TAGS docs/tex/routin.tex  docs/tex/manual.tex
6028988994SBarry Smith	chmod g+w TAGS
61