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

solaris.c File Reference

#include <string.h>

Include dependency graph for solaris.c:

Include dependency graph

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 }


Define Documentation

#define LCCDIR   "/usr/local/lib/lcc/"
 

Definition at line 7 of file solaris.c.

#define SUNDIR   "/opt/SUNWspro/SC4.2/lib/"
 

Definition at line 10 of file solaris.c.

Referenced by option().


Function Documentation

char* concat char *  ,
char * 
 

int option char *  arg  ) 
 

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:


Variable Documentation

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

Definition at line 22 of file solaris.c.

char* com[]
 

Initial value:

 { LCCDIR "rcc", "-target=sparc/solaris",
    "$1", "$2", "$3", 0 }

Definition at line 20 of file solaris.c.

char* cpp[]
 

Initial value:

 { LCCDIR "cpp",
    "-D__STDC__=1", "-Dsparc", "-D__sparc__", "-Dsun", "-D__sun__", "-Dunix",
    "$1", "$2", "$3", 0 }

Definition at line 15 of file solaris.c.

char* include[]
 

Initial value:

 { "-I" LCCDIR "include", "-I/usr/local/include",
    "-I/usr/include", 0 }

Definition at line 18 of file solaris.c.

char inputs[256] = ""
 

Definition at line 14 of file solaris.c.

char* ld[]
 

Initial value:

 { "/usr/ccs/bin/ld", "-o", "$3", "$1",
    SUNDIR "crti.o", SUNDIR "crt1.o",
    SUNDIR "values-xa.o", "$2", "",
    "-Y", "P," SUNDIR ":/usr/ccs/lib:/usr/lib", "-Qy",
    "-L" LCCDIR, "-llcc", "-lm", "-lc", SUNDIR "crtn.o", 0 }

Definition at line 23 of file solaris.c.

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

Definition at line 13 of file solaris.c.


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