1.生成cscope.files
find /my/src -name '*.c' -o -name '*.h' > /my/db/cscope.files
2.在生成的结果上运行cscope
cscope -i /my/db/cscope.files
3.导出到环境变量
CSCOPE_DB=/my/db/cscope.out; export CSCOPE_DB