OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [tags/] [eco32-0.26/] [lcc/] [etc/] [solaris.c] - Diff between revs 4 and 270

Only display areas with differences | Details | Blame | View Log

Rev 4 Rev 270
/* SPARCs running Solaris 2.5.1 at CS Dept., Princeton University */
/* SPARCs running Solaris 2.5.1 at CS Dept., Princeton University */
 
 
#include <string.h>
#include <string.h>
 
 
static char rcsid[] = "$Id: solaris.c,v 1.10 1998/09/14 20:36:33 drh Exp $";
static char rcsid[] = "$Id: solaris.c,v 1.10 1998/09/14 20:36:33 drh Exp $";
 
 
#ifndef LCCDIR
#ifndef LCCDIR
#define LCCDIR "/usr/local/lib/lcc/"
#define LCCDIR "/usr/local/lib/lcc/"
#endif
#endif
#ifndef SUNDIR
#ifndef SUNDIR
#define SUNDIR "/opt/SUNWspro/SC4.2/lib/"
#define SUNDIR "/opt/SUNWspro/SC4.2/lib/"
#endif
#endif
 
 
char *suffixes[] = { ".c", ".i", ".s", ".o", ".out", 0 };
char *suffixes[] = { ".c", ".i", ".s", ".o", ".out", 0 };
char inputs[256] = "";
char inputs[256] = "";
char *cpp[] = { LCCDIR "cpp",
char *cpp[] = { LCCDIR "cpp",
        "-D__STDC__=1", "-Dsparc", "-D__sparc__", "-Dsun", "-D__sun__", "-Dunix",
        "-D__STDC__=1", "-Dsparc", "-D__sparc__", "-Dsun", "-D__sun__", "-Dunix",
        "$1", "$2", "$3", 0 };
        "$1", "$2", "$3", 0 };
char *include[] = { "-I" LCCDIR "include", "-I/usr/local/include",
char *include[] = { "-I" LCCDIR "include", "-I/usr/local/include",
        "-I/usr/include", 0 };
        "-I/usr/include", 0 };
char *com[] = { LCCDIR "rcc", "-target=sparc/solaris",
char *com[] = { LCCDIR "rcc", "-target=sparc/solaris",
        "$1", "$2", "$3", 0 };
        "$1", "$2", "$3", 0 };
char *as[] = { "/usr/ccs/bin/as", "-Qy", "-s", "-o", "$3", "$1", "$2", 0 };
char *as[] = { "/usr/ccs/bin/as", "-Qy", "-s", "-o", "$3", "$1", "$2", 0 };
char *ld[] = { "/usr/ccs/bin/ld", "-o", "$3", "$1",
char *ld[] = { "/usr/ccs/bin/ld", "-o", "$3", "$1",
        SUNDIR "crti.o", SUNDIR "crt1.o",
        SUNDIR "crti.o", SUNDIR "crt1.o",
        SUNDIR "values-xa.o", "$2", "",
        SUNDIR "values-xa.o", "$2", "",
        "-Y", "P," SUNDIR ":/usr/ccs/lib:/usr/lib", "-Qy",
        "-Y", "P," SUNDIR ":/usr/ccs/lib:/usr/lib", "-Qy",
        "-L" LCCDIR, "-llcc", "-lm", "-lc", SUNDIR "crtn.o", 0 };
        "-L" LCCDIR, "-llcc", "-lm", "-lc", SUNDIR "crtn.o", 0 };
 
 
extern char *concat(char *, char *);
extern char *concat(char *, char *);
 
 
int option(char *arg) {
int option(char *arg) {
        if (strncmp(arg, "-lccdir=", 8) == 0) {
        if (strncmp(arg, "-lccdir=", 8) == 0) {
                cpp[0] = concat(&arg[8], "/cpp");
                cpp[0] = concat(&arg[8], "/cpp");
                include[0] = concat("-I", concat(&arg[8], "/include"));
                include[0] = concat("-I", concat(&arg[8], "/include"));
                ld[12] = concat("-L", &arg[8]);
                ld[12] = concat("-L", &arg[8]);
                com[0] = concat(&arg[8], "/rcc");
                com[0] = concat(&arg[8], "/rcc");
        } else if (strcmp(arg, "-g") == 0)
        } else if (strcmp(arg, "-g") == 0)
                ;
                ;
        else if (strcmp(arg, "-p") == 0) {
        else if (strcmp(arg, "-p") == 0) {
                ld[5] = SUNDIR "mcrt1.o";
                ld[5] = SUNDIR "mcrt1.o";
                ld[10] = "P," SUNDIR "libp:/usr/ccs/lib/libp:/usr/lib/libp:"
                ld[10] = "P," SUNDIR "libp:/usr/ccs/lib/libp:/usr/lib/libp:"
                         SUNDIR ":/usr/ccs/lib:/usr/lib";
                         SUNDIR ":/usr/ccs/lib:/usr/lib";
        } else if (strcmp(arg, "-b") == 0)
        } else if (strcmp(arg, "-b") == 0)
                ;
                ;
        else if (strncmp(arg, "-ld=", 4) == 0)
        else if (strncmp(arg, "-ld=", 4) == 0)
                ld[0] = &arg[4];
                ld[0] = &arg[4];
        else
        else
                return 0;
                return 0;
        return 1;
        return 1;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.