
rm -f cscope.*
rm -f tags
# Put all sources into a file list.
find ./ -name '*.cc' > tagfilelist
find ./ -name '*.c' >> tagfilelist
find ./ -name '*.h' >> tagfilelist
find ./ -name '*.s' >> tagfilelist
find ./ -name '*.S' >> tagfilelist
find ./ -name '*.lds' >> tagfilelist

# Use file list to include in tags.
ctags --languages=C,C++,Asm --recurse -Ltagfilelist
# exuberant-ctags --languages=C,C++,Asm --recurse -Ltagfilelist

cscope -q -k -R -i tagfilelist
# Remove file list.
rm -f tagfilelist
