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

Go to the source code of this file.
Defines | |
| #define | LCCDIR "/usr/local/lib/lcc/" |
| #define | SUNDIR "/opt/SUNWspro/SC4.2/lib/" |
Functions | |
| char * | concat (char *, char *) |
| int | option (char *arg) |
Variables | |
| char * | as [] = { "/usr/ccs/bin/as", "-Qy", "-s", "-o", "$3", "$1", "$2", 0 } |
| char * | com [] |
| char * | cpp [] |
| char * | include [] |
| char | inputs [256] = "" |
| char * | ld [] |
| char * | suffixes [] = { ".c", ".i", ".s", ".o", ".out", 0 } |
|
|
|
|
|
Definition at line 10 of file solaris.c. Referenced by option(). |
|
||||||||||||
|
|
|
|
Definition at line 31 of file solaris.c. References com, concat(), cpp, include, ld, strcmp(), strncmp(), and SUNDIR. 00031 {
00032 if (strncmp(arg, "-lccdir=", 8) == 0) {
00033 cpp[0] = concat(&arg[8], "/cpp");
00034 include[0] = concat("-I", concat(&arg[8], "/include"));
00035 ld[12] = concat("-L", &arg[8]);
00036 com[0] = concat(&arg[8], "/rcc");
00037 } else if (strcmp(arg, "-g") == 0)
00038 ;
00039 else if (strcmp(arg, "-p") == 0) {
00040 ld[5] = SUNDIR "mcrt1.o";
00041 ld[10] = "P," SUNDIR "libp:/usr/ccs/lib/libp:/usr/lib/libp:"
00042 SUNDIR ":/usr/ccs/lib:/usr/lib";
00043 } else if (strcmp(arg, "-b") == 0)
00044 ;
00045 else if (strncmp(arg, "-ld=", 4) == 0)
00046 ld[0] = &arg[4];
00047 else
00048 return 0;
00049 return 1;
00050 }
|
Here is the call graph for this function:

|
|
|
|
|
Initial value: { LCCDIR "rcc", "-target=sparc/solaris",
"$1", "$2", "$3", 0 }
|
|
|
Initial value: { LCCDIR "cpp",
"-D__STDC__=1", "-Dsparc", "-D__sparc__", "-Dsun", "-D__sun__", "-Dunix",
"$1", "$2", "$3", 0 }
|
|
|
Initial value: { "-I" LCCDIR "include", "-I/usr/local/include",
"-I/usr/include", 0 }
|
|
|
|
|
|
Initial value: |
|
|
|
1.3.9.1