xref: /petsc/makefile (revision 0675aaacbf3831b403ed765eef261398294a8f75)
16b5873e3SBarry SmithIPETSCDIR = .
261523587SBarry Smith
36b5873e3SBarry SmithCFLAGS   = $(OPT) -I$(IPETSCDIR)/include -I.. -I$(IPETSCDIR) $(CONF)
461523587SBarry SmithSOURCEC  =
561523587SBarry SmithSOURCEF  =
661523587SBarry SmithWSOURCEC =
767fa8010SBarry SmithSOURCEH  = Changes Machines readme maint/addlinks maint/buildtest maint/builddist \
867fa8010SBarry Smith           maint/buildlinks maint/wwwman maint/xclude maint/crontab
961523587SBarry SmithOBJSC    =
1061523587SBarry SmithWOBJS    =
1161523587SBarry SmithOBJSF    =
1261523587SBarry SmithLIBBASE  = libpetscvec
1361523587SBarry SmithLINCLUDE = $(SOURCEH)
1401fc3e1bSBarry SmithDIRS     = src include pinclude docs
1561523587SBarry Smith
167857610eSBarry Smithinclude $(IPETSCDIR)/bmake/$(PETSC_ARCH)/$(PETSC_ARCH)
1761523587SBarry Smith
187857610eSBarry Smithall: chkpetsc_dir
194e04c1a0SBarry Smith	-$(RM) -f $(PDIR)/*.a
20e35bd481SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
21f3848965SBarry Smith           ACTION=libfast  tree
224e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
2361523587SBarry Smith
248c37ef55SBarry Smithranlib:
254e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
2661523587SBarry Smith
2761523587SBarry Smithdeletelibs:
284e04c1a0SBarry Smith	-$(RM) -f $(PDIR)/*.a $(PDIR)/complex/* $(PDIR)/c++/*
29d44968ceSBarry Smith
30d44968ceSBarry Smithdeletemanpages:
317857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/Keywords $(PETSC_DIR)/docs/man/man*/*
32d44968ceSBarry Smith
33b346654fSBarry Smithdeletewwwpages:
347857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/docs/www/man*/* $(PETSC_DIR)/docs/www/www.cit
35b346654fSBarry Smith
36b346654fSBarry Smithdeletelatexpages:
377857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/docs/tex/rsum/*sum*.tex
3820563c6bSBarry Smith
397acb7333SLois Curfman McInnes#  To access the tags in emacs, type M-x visit-tags-table and specify
407acb7333SLois Curfman McInnes#  the file petsc/TAGS.  Then, to move to where a PETSc function is
417acb7333SLois Curfman McInnes#  defined, enter M-. and the function name.  To search for a string
427acb7333SLois Curfman McInnes#  and move to the first occurrence, use M-x tags-search and the string.
437acb7333SLois Curfman McInnes#  To locate later occurrences, use M-,
447acb7333SLois Curfman McInnes
4520563c6bSBarry Smithetags:
46edd2f0e1SBarry Smith	$(RM) TAGS
4770a6ad8cSBarry Smith	etags -f TAGS    src/*/impls/*/*.h src/*/impls/*/*/*.h
4870a6ad8cSBarry Smith	etags -a -f TAGS src/*/examples/*.c
499b0d1189SLois Curfman McInnes	etags -a -f TAGS src/*/*.h src/*/src/*.c src/*/impls/*/*.c
50d60b1e76SLois Curfman McInnes	etags -a -f TAGS src/*/impls/*/*/*.c src/*/impls/*/*/*/*.c
5170a6ad8cSBarry Smith	etags -a -f TAGS include/*.h pinclude/*.h bmake/common
5270a6ad8cSBarry Smith	etags -a -f TAGS src/*/impls/*.c src/*/utils/*.c
53f5354500SBarry Smith	etags -a -f TAGS makefile src/*/src/makefile src/makefile
54f5354500SBarry Smith	etags -a -f TAGS src/*/impls/makefile src/*/impls/*/makefile
553ebb8ef7SBarry Smith	etags -a -f TAGS src/*/utils/makefile src/*/examples/makefile
563ebb8ef7SBarry Smith	etags -a -f TAGS src/*/makefile src/*/impls/*/*/makefile
57*0675aaacSBarry Smith	etags -a -f TAGS bmake/common bmake/sun4/sun4* bmake/rs6000/rs6000*
58*0675aaacSBarry Smith	etags -a -f TAGS bmake/IRIX/IRIX* bmake/freebsd/freebsd*
59*0675aaacSBarry Smith	etags -a -f TAGS bmake/hpux/hpux* bmake/NeXT/NeXT* bmake/alpha/alpha*
60*0675aaacSBarry Smith	etags -a -f TAGS bmake/t3d/t3d* bmake/paragon/paragon*
6170a6ad8cSBarry Smith	etags -a -f TAGS docs/tex/routin.tex  docs/tex/manual.tex
6228988994SBarry Smith	chmod g+w TAGS
63