Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

linux.c File Reference

#include <string.h>

Include dependency graph for linux.c:

Include dependency graph

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 }


Define Documentation

#define LCCDIR   ""
 

Definition at line 15 of file linux.c.


Function Documentation

char* concat char *  ,
char * 
 

int option char *  arg  ) 
 

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:


Variable Documentation

char* as[] = { "/usr/bin/as", "-o", "$3", "$1", "$2", 0 }
 

Definition at line 30 of file linux.c.

char* com[] = {LCCDIR "q3rcc", "-target=x86/linux", "$1", "$2", "$3", 0 }
 

Definition at line 29 of file linux.c.

char* cpp[]
 

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 }

Definition at line 22 of file linux.c.

char* include[]
 

Initial value:

 {"-I" LCCDIR "include", "-I" LCCDIR "gcc/include", "-I/usr/include",
           "-I" SYSTEM "include", 0 }

Definition at line 27 of file linux.c.

char inputs[256] = ""
 

Definition at line 20 of file linux.c.

char* ld[]
 

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 }

Definition at line 33 of file linux.c.

char rcsid[] = "Dummy rcsid" [static]
 

Definition at line 5 of file linux.c.

char* suffixes[] = { ".c", ".i", ".asm", ".o", ".out", 0 }
 

Definition at line 19 of file linux.c.


Generated on Thu Aug 25 15:48:11 2005 for Quake III Arena by  doxygen 1.3.9.1