#include <string.h>
Include dependency graph for osf.c:

Go to the source code of this file.
Defines | |
| #define | LCCDIR "/usr/local/lib/lcc/" |
Functions | |
| int | access (const char *, int) |
| char * | concat (char *, char *) |
| int | option (char *arg) |
Variables | |
| char * | as [] = { "/bin/as", "-o", "$3", "", "$1", "-nocpp", "$2", 0 } |
| char * | com [] = { LCCDIR "rcc", "-target=alpha/osf", "$1", "$2", "$3", "", 0 } |
| char * | cpp [] |
| char * | include [] |
| char | inputs [256] = "" |
| char * | ld [] |
| char * | suffixes [] = { ".c", ".i", ".s", ".o", ".out", 0 } |
|
|
|
|
||||||||||||
|
Referenced by AASOuputFile(), exists(), main(), and option(). |
|
||||||||||||
|
|
|
|
Definition at line 29 of file osf.c. References access(), com, concat(), cpp, include, ld, strcmp(), and strncmp(). 00029 {
00030 if (strncmp(arg, "-lccdir=", 8) == 0) {
00031 cpp[0] = concat(&arg[8], "/cpp");
00032 include[0] = concat("-I", concat(&arg[8], "/include"));
00033 com[0] = concat(&arg[8], "/rcc");
00034 ld[8] = concat("-L", &arg[8]);
00035 } else if (strcmp(arg, "-g4") == 0
00036 && access("/u/drh/lib/alpha/rcc", 4) == 0
00037 && access("/u/drh/book/cdb/alpha/osf/cdbld", 4) == 0) {
00038 com[0] = "/u/drh/lib/alpha/rcc";
00039 com[5] = "-g4";
00040 ld[0] = "/u/drh/book/cdb/alpha/osf/cdbld";
00041 ld[1] = "-o";
00042 ld[2] = "$3";
00043 ld[3] = "$1";
00044 ld[4] = "$2";
00045 ld[5] = 0;
00046 } else if (strcmp(arg, "-g") == 0)
00047 return 1;
00048 else if (strcmp(arg, "-b") == 0)
00049 ;
00050 else
00051 return 0;
00052 return 1;
00053 }
|
Here is the call graph for this function:

|
|
|
|
|
|
|
|
Initial value: {
LCCDIR "cpp", "-D__STDC__=1",
"-DLANGUAGE_C", "-D__LANGUAGE_C__",
"-D_unix", "-D__unix__", "-D_osf", "-D__osf__", "-Dunix",
"-Dalpha", "-D_alpha", "-D__alpha",
"-D__SYSTYPE_BSD", "-D_SYSTYPE_BSD",
"$1", "$2", "$3", 0 }
|
|
|
Initial value: { "-I" LCCDIR "include", "-I/usr/local/include",
"-I/usr/include", 0 }
|
|
|
|
|
|
Initial value: { "/usr/bin/ld", "-o", "$3", "/usr/lib/cmplrs/cc/crt0.o",
"$1", "$2", "", "", "-L" LCCDIR, "-llcc", "-lm", "-lc", 0 }
|
|
|
|
1.3.9.1