On 14/04/10 09:41 PM, Michael Schuster wrote:
All,

$subject says all; I've been fiddling with options; also tried to copy
what xref.mk does and looked into cscope-fast, but a simple

$ cd some/project/src
$ find . -name '*.[ch]' > cscope.files
$ cscope -b

will always have /usr/include added to its path to search in, at least
it did in my tests.

Since this is not in the solaris source, I can't use build-cscope ...
any help appreciated.


Hi Michael,
if you're using the cscope-fast from the gate, then unless you
want to hack on it a bit, you're out of luck::



http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/tools/cscope-fast/main.c#419 ::


    405                 /* get source directories from the environment */
    406                 if ((s = getenv("SOURCEDIRS")) != NULL) {
    407                         sourcedir(s);
    408                 }
    409                 /* make the source file list */
    410                 srcfiles = mymalloc(msrcfiles * sizeof (char *));
    411                 makefilelist();
    412                 if (nsrcfiles == 0) {
    413                         (void) fprintf(stderr,
    414                             "cscope: no source files found\n");
    415                         printusage();
    416                         exit(1);
    417                 }
    418                 /* get include directories from the environment */
    419                 if ((s = getenv("INCLUDEDIRS")) != NULL) {
    420                         includedir(s);
    421                 }
    422                 /* add /usr/include to the #include directory list */
    423                 includedir("/usr/include");



cheers,
James
--
Senior Software Engineer, Solaris
Oracle
http://www.jmcp.homeunix.com/blog
_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to