xref: /petsc/makefile (revision 4fd9bb8efa338132ab968ab8e57fbafc06c260cb)
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
156b5873e3SBarry Smithinclude $(IPETSCDIR)/bmake/$(PARCH)/$(PARCH)
1661523587SBarry Smith
1728988994SBarry Smithall: chkpetsclib
1828988994SBarry Smith	-@if [ ! -d $(LDIR) ]; then \
1928988994SBarry Smith          echo $(LDIR) ; mkdir -p $(LDIR) ; fi
20f0479e8cSBarry Smith	-$(RM) -f $(LDIR)/*.a
21c6a45a97SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PARCH=$(PARCH) COMPLEX=$(COMPLEX) \
22c6a45a97SBarry Smith           ACTION=libfast  tree
2320563c6bSBarry Smith	$(RANLIB) $(LDIR)/*.a
2461523587SBarry Smith
258c37ef55SBarry Smithranlib:
2620563c6bSBarry Smith	$(RANLIB) $(LDIR)/*.a
2761523587SBarry Smith
2861523587SBarry Smithdeletelibs:
29f0479e8cSBarry Smith	-$(RM) -f $(LDIR)/*.a $(LDIR)/complex/*
30d44968ceSBarry Smith
31d44968ceSBarry Smithdeletemanpages:
32*4fd9bb8eSLois Curfman McInnes	$(RM) -f $(PETSCLIB)/Keywords $(PETSCLIB)/docs/man/man*/*
33d44968ceSBarry Smith
34b346654fSBarry Smithdeletewwwpages:
35fbe28522SBarry Smith	$(RM) -f $(PETSCLIB)/docs/www/man*/* $(PETSCLIB)/docs/www/www.cit
36b346654fSBarry Smith
37b346654fSBarry Smithdeletelatexpages:
3828988994SBarry Smith	$(RM) -f $(PETSCLIB)/docs/tex/rsum/*sum*.tex
3920563c6bSBarry Smith
4020563c6bSBarry Smith#  to access the tags in emacs type esc-x visit-tags-table
4120563c6bSBarry Smith#  then esc . to find a function
4220563c6bSBarry Smithetags:
4320563c6bSBarry Smith	$(RM) -f TAGS
4420563c6bSBarry Smith	etags -f TAGS    src/*/impls/*/*.h src/*/impls/*/*/*.h src/*/examples/*.c
4520563c6bSBarry Smith	etags -a -f TAGS src/*/*.h */*.c src/*/src/*.c src/*/impls/*/*.c
46c6a45a97SBarry Smith	etags -a -f TAGS src/*/impls/*/*/*.c src/*/utils/*.c
476b5873e3SBarry Smith	etags -a -f TAGS docs/tex/manual.tex src/sys/error/*.c
481eb62cbbSBarry Smith	etags -a -f TAGS include/*.h pinclude/*.h
49a5a9c739SBarry Smith	etags -a -f TAGS src/*/impls/*.c
5028988994SBarry Smith	chmod g+w TAGS
511eb62cbbSBarry Smith
52c6a45a97SBarry Smithrunexamples:
53