Commit b752ac79 authored by Mike Kirby's avatar Mike Kirby

*** empty log message ***


git-svn-id: https://gforge.sci.utah.edu/svn/nektar/trunk@4 305cdda6-5ce1-45b3-a98d-dfc68c8b3305
parent c21bdd07
#include "BlockMat.h"
/*
g++ -I../../../include -g -o SCdemo SCdemo.cpp -L../../ -lBlockMat -lblas -llapack -lg2c
*/
using namespace blockmat;
/* declare matrix
| 1 2 - - |
A = | 3 4 - - | using submatrix mat = | 1 2 |
| - - 1 2 | | 3 4 |
| - - 3 4 |
| 1 2 3 - - - - - - |
B = | 4 5 6 - - - - - - | using submatrix mat = | 1 2 3 |
| 1 2 3 1 2 3 1 2 3 | | 4 5 6 |
| 4 5 6 4 5 6 4 5 6 |
| 1 2 3 - - - - - - |
| 4 5 6 - - - - - - |
C = | 7 0 0 - - - - - - | using submatrix mat = | 1 2 3 |
| - - - 1 2 3 - - - | | 4 5 6 |
| - - - 4 5 6 - - - | | 7 0 0 |
| - - - 7 0 0 - - - |
| - - - - - - 1 2 3 |
| - - - - - - 4 5 6 |
| - - - - - - 7 0 0 |
| 1 2 1 2 |
D = | 3 4 3 4 | using submatrix mat = | 1 2 |
| 5 6 5 6 | | 3 4 |
| - - 1 2 | | 5 6 |
| - - 3 4 |
| - - 5 6 |
| - - 1 2 |
| - - 3 4 |
| - - 5 6 |
Calculate DC = A - B*C*D
*/
main(){
BlockMat *A,*B,*C,*D,*T,*SC;
double *mat;
mat = new double [9];
mat[0] = 1; mat[1] = 2; mat[2] = 3;
mat[3] = 4; mat[4] = 5; mat[5] = 6;
mat[6] = 7; mat[7] = 0; mat[8] = 0;
cout << "A: " << endl;
A = new BlockMat(2,2);
A->GenBlock(0,0,2,2,mat);
A->GenBlock(1,1,2,2,mat);
A->PrintBlocks();
cout << endl << "B: " << endl;
B = new BlockMat(2,3);
B->GenBlock(0,0,2,3,mat);
B->GenBlock(1,0,2,3,mat);
B->GenBlock(1,1,2,3,mat);
B->GenBlock(1,2,2,3,mat);
B->PrintBlocks();
cout << endl << "C: " << endl;
C = new BlockMat(3,3);
C->GenBlock(0,0,3,3,mat);
C->GenBlock(1,1,3,3,mat);
C->GenBlock(2,2,3,3,mat);
C->PrintBlocks();
cout << endl << "C^{-1}: " << endl;
C->invert_diag();
C->PrintBlocks();
cout << endl << "D: " << endl;
D = new BlockMat(3,2);
D->GenBlock(0,0,3,2,mat);
D->GenBlock(0,1,3,2,mat);
D->GenBlock(1,1,3,2,mat);
D->GenBlock(2,1,3,2,mat);
D->PrintBlocks();
cout << endl << "SC=A-B*C*D: " << endl;
SC = new BlockMat(2,2);
T = new BlockMat(3,2);
// T->geMxM(RowMajor,RowMajor,1,*C,*D,0);
T->MxM(*C,*D);
SC->sub(*A,SC->MxM(*B,*T));
SC->PrintBlocks();
cout << endl << "SC=A-D^T*C*D: " << endl;
T->MxM(*C,*D);
SC->sub(*A,SC->MtxM(*D,*T));
SC->PrintBlocks();
cout << endl << "SC=A-B*C*B^T: " << endl;
T->MxMt(*C,*B);
//T->geMxM(RowMajor,ColMajor,1,*C,*B,0);
SC->sub(*A,SC->MxM(*B,*T));
SC->PrintBlocks();
delete A;
delete B;
delete C;
delete D;
delete T;
delete SC;
delete[] mat;
return 0;
}
#include "BlockMat.h"
/*
g++ -I../../../include -g -o demo demo.cpp -L../../ -lBlockMat -lblas -lg2c -llapack
*/
using namespace blockmat;
main(){
int i;
BlockMat *A,*B,*C;
double *mat;
/* declare matrix
| 1 2 - - |
A = | 3 4 - - | using submatrix mat = | 1 2 |
| - - 1 2 | | 3 4 |
| - - 3 4 |
*/
mat = new double [4];
mat[0] = 1; mat[1] = 2; mat[2] = 3; mat[3] = 4;
cout << "A: " << endl;
A = new BlockMat(2,2);
A->GenBlock(0,0,2,2,mat);
A->GenBlock(0,1,2,2,mat);
A->GenBlock(1,1,2,2,mat);
A->PrintBlocks();
cout << endl << "B: " << endl;
B = new BlockMat(2,2);
B->GenBlock(0,0,2,2,mat);
B->GenBlock(1,1,2,2,mat);
B->PrintBlocks();
cout << endl << "C=A+B: " << endl;
C = new BlockMat(2,2);
C->add(*A,*B);
C->PrintBlocks();
cout << endl << "C=A-B: " << endl;
C->sub(*A,*B);
C->PrintBlocks();
cout << endl << "C=A*B: " << endl;
C->MxM(*A,*B);
C->PrintBlocks();
double *y = new(double)[4];
double *v = new(double)[4];
Vmath::fill(4,1.0,v,1);
Vmath::zero(4,y,1);
cout << endl << "y = A*v: "<< endl;
C->Mxvpy(v,y);
for(i = 0; i < 4; ++i)
cout << y[i] << " ";
cout << endl;
Vmath::zero(4,y,1);
cout << endl << "y = A^T*v: "<< endl;
//C->Mtxvpy(v,y);
C->geMxv(ColMajor,1,v,1,y);
for(i = 0; i < 4; ++i)
cout << y[i] << " ";
cout << endl;
delete A;
delete B;
delete C;
delete[] y;
delete[] v;
delete[] mat;
return 0;
}
#include <cstdio>
#include <cstdlib>
#include <LibUtilities/NekGraph.h>
int main(int argc, char *argv[])
{
return 0;
}
bin_PROGRAMS = MemoryManagerExample
#GraphExample_SOURCES = GraphExample.cpp
#VecMatExample_SOURCES = VecMatExample.cpp
MemoryManagerExample_SOURCES = MemoryManager.cpp
#GraphExample_CPPFLAGS = -I$(srcdir)/../..
#VecMatExample_CPPFLAGS = -I$(srcdir)/../.. -I$(srcdir)/../../../ThirdParty/met -I$(srcdir)/../../../ThirdParty/met/common
MemoryManagerExample_CPPFLAGS = -I$(srcdir)/../..
MemoryManagerExample_LDADD = -lboost_thread-gcc-mt
# Makefile.in generated by automake 1.9.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
SOURCES = $(MemoryManagerExample_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
bin_PROGRAMS = MemoryManagerExample$(EXEEXT)
subdir = Demos/LibUtilities
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_CLEAN_FILES =
am__installdirs = "$(DESTDIR)$(bindir)"
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
PROGRAMS = $(bin_PROGRAMS)
am_MemoryManagerExample_OBJECTS = \
MemoryManagerExample-MemoryManager.$(OBJEXT)
MemoryManagerExample_OBJECTS = $(am_MemoryManagerExample_OBJECTS)
MemoryManagerExample_DEPENDENCIES =
DEFAULT_INCLUDES = -I. -I$(srcdir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(CXX)
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
-o $@
SOURCES = $(MemoryManagerExample_SOURCES)
DIST_SOURCES = $(MemoryManagerExample_SOURCES)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_RANLIB = @ac_ct_RANLIB@
ac_ct_STRIP = @ac_ct_STRIP@
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build_alias = @build_alias@
datadir = @datadir@
exec_prefix = @exec_prefix@
host_alias = @host_alias@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
prefix = @prefix@
program_transform_name = @program_transform_name@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
#GraphExample_SOURCES = GraphExample.cpp
#VecMatExample_SOURCES = VecMatExample.cpp
MemoryManagerExample_SOURCES = MemoryManager.cpp
#GraphExample_CPPFLAGS = -I$(srcdir)/../..
#VecMatExample_CPPFLAGS = -I$(srcdir)/../.. -I$(srcdir)/../../../ThirdParty/met -I$(srcdir)/../../../ThirdParty/met/common
MemoryManagerExample_CPPFLAGS = -I$(srcdir)/../..
MemoryManagerExample_LDADD = -lboost_thread-gcc-mt
all: all-am
.SUFFIXES:
.SUFFIXES: .cpp .o .obj
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Demos/LibUtilities/Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu Demos/LibUtilities/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
@list='$(bin_PROGRAMS)'; for p in $$list; do \
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
if test -f $$p \
; then \
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
$(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
else :; fi; \
done
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
rm -f "$(DESTDIR)$(bindir)/$$f"; \
done
clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
MemoryManagerExample$(EXEEXT): $(MemoryManagerExample_OBJECTS) $(MemoryManagerExample_DEPENDENCIES)
@rm -f MemoryManagerExample$(EXEEXT)
$(CXXLINK) $(MemoryManagerExample_LDFLAGS) $(MemoryManagerExample_OBJECTS) $(MemoryManagerExample_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MemoryManagerExample-MemoryManager.Po@am__quote@
.cpp.o:
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
.cpp.obj:
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
MemoryManagerExample-MemoryManager.o: MemoryManager.cpp
@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MemoryManagerExample_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MemoryManagerExample-MemoryManager.o -MD -MP -MF "$(DEPDIR)/MemoryManagerExample-MemoryManager.Tpo" -c -o MemoryManagerExample-MemoryManager.o `test -f 'MemoryManager.cpp' || echo '$(srcdir)/'`MemoryManager.cpp; \
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/MemoryManagerExample-MemoryManager.Tpo" "$(DEPDIR)/MemoryManagerExample-MemoryManager.Po"; else rm -f "$(DEPDIR)/MemoryManagerExample-MemoryManager.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MemoryManager.cpp' object='MemoryManagerExample-MemoryManager.o' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MemoryManagerExample_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MemoryManagerExample-MemoryManager.o `test -f 'MemoryManager.cpp' || echo '$(srcdir)/'`MemoryManager.cpp
MemoryManagerExample-MemoryManager.obj: MemoryManager.cpp
@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MemoryManagerExample_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MemoryManagerExample-MemoryManager.obj -MD -MP -MF "$(DEPDIR)/MemoryManagerExample-MemoryManager.Tpo" -c -o MemoryManagerExample-MemoryManager.obj `if test -f 'MemoryManager.cpp'; then $(CYGPATH_W) 'MemoryManager.cpp'; else $(CYGPATH_W) '$(srcdir)/MemoryManager.cpp'; fi`; \
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/MemoryManagerExample-MemoryManager.Tpo" "$(DEPDIR)/MemoryManagerExample-MemoryManager.Po"; else rm -f "$(DEPDIR)/MemoryManagerExample-MemoryManager.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MemoryManager.cpp' object='MemoryManagerExample-MemoryManager.obj' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MemoryManagerExample_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MemoryManagerExample-MemoryManager.obj `if test -f 'MemoryManager.cpp'; then $(CYGPATH_W) 'MemoryManager.cpp'; else $(CYGPATH_W) '$(srcdir)/MemoryManager.cpp'; fi`
uninstall-info-am:
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique; \
fi
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags