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

Go to the source code of this file.
Defines | |
| #define | LCCDIR "" |
Functions | |
| char * | concat (char *, char *) |
| int | option (char *arg) |
Variables | |
| char * | as [] = { "/usr/bin/as", "-o", "$3", "$1", "$2", 0 } |
| char * | com [] = {LCCDIR "q3rcc", "-target=x86/linux", "$1", "$2", "$3", 0 } |
| char * | cpp [] |
| char * | include [] |
| char | inputs [256] = "" |
| char * | ld [] |
| char | rcsid [] = "Dummy rcsid" |
| char * | suffixes [] = { ".c", ".i", ".asm", ".o", ".out", 0 } |
|
|
|
|
||||||||||||
|
|
|
|
Definition at line 49 of file linux.c. References com, concat(), cpp, include, ld, strcmp(), and strncmp(). 00049 {
00050 if (strncmp(arg, "-lccdir=", 8) == 0) {
00051 cpp[0] = concat(&arg[8], "/gcc/cpp");
00052 include[0] = concat("-I", concat(&arg[8], "/include"));
00053 include[1] = concat("-I", concat(&arg[8], "/gcc/include"));
00054 ld[9] = concat(&arg[8], "/gcc/crtbegin.o");
00055 ld[12] = concat("-L", &arg[8]);
00056 ld[14] = concat("-L", concat(&arg[8], "/gcc"));
00057 ld[19] = concat(&arg[8], "/gcc/crtend.o");
00058 com[0] = concat(&arg[8], "/rcc");
00059 } else if (strcmp(arg, "-p") == 0 || strcmp(arg, "-pg") == 0) {
00060 ld[7] = "/usr/lib/gcrt1.o";
00061 ld[18] = "-lgmon";
00062 } else if (strcmp(arg, "-b") == 0)
00063 ;
00064 else if (strcmp(arg, "-g") == 0)
00065 ;
00066 else if (strncmp(arg, "-ld=", 4) == 0)
00067 ld[0] = &arg[4];
00068 else if (strcmp(arg, "-static") == 0) {
00069 ld[3] = "-static";
00070 ld[4] = "";
00071 } else
00072 return 0;
00073 return 1;
00074 }
|
Here is the call graph for this function:

|
|
|
|
|
|
|
|
Initial value: { LCCDIR "q3cpp",
"-U__GNUC__", "-D_POSIX_SOURCE", "-D__STDC__=1", "-D__STRICT_ANSI__",
"-Dunix", "-Di386", "-Dlinux",
"-D__unix__", "-D__i386__", "-D__signed__=signed",
"$1", "$2", "$3", 0 }
|
|
|
Initial value: |
|
|
|
|
|
Initial value: {
"/usr/bin/ld", "-m", "elf_i386", "-dynamic-linker",
"/lib/ld-linux.so.2", "-o", "$3",
"/usr/lib/crt1.o", "/usr/lib/crti.o",
SYSTEM "crtbegin.o",
"$1", "$2",
"-L" LCCDIR,
"-llcc",
"-L" LCCDIR "/gcc", "-lgcc", "-lc", "-lm",
"",
SYSTEM "crtend.o", "/usr/lib/crtn.o",
"-L" SYSTEM,
0 }
|
|
|
|
|
|
|
1.3.9.1