Annotation of researchv10no/cmd/lcc/etc/snowbird.c, revision 1.1

1.1     ! root        1: /* NeXTs running NeXT MACH 4.3 at Princeton University */
        !             2: 
        !             3: #include <string.h>
        !             4: 
        !             5: char *cpp[] = { "/lib/cpp", "-undef", "-DNeXT", "-Dmc68000", "-Dmc68030", "-DMACH", "$1", "$2", "$3", 0 };
        !             6: char *include[] = { "-I/usr/local/include/ansi", 0 };
        !             7: char *com[] = { "/usr/local/lib/rcc", "-k", "$1", "$2", "$3", 0 };
        !             8: char *as[] = { "/bin/as", "-o", "$3", "$1", "$2", 0 };
        !             9: char *ld[] = { "/bin/ld", "-o", "$3", "-lcrt0.o", "$1", "$2", "", "-lm", "-lsys_s", 0 };
        !            10: 
        !            11: int option(arg) char *arg; {
        !            12:        if (strcmp(arg, "-g") == 0)
        !            13:                ;
        !            14:        else if (strcmp(arg, "-p") == 0) {
        !            15:                ld[3] = "-lmcrt0.o";
        !            16:                ld[8] = "-lsys_p";
        !            17:        } else if (strcmp(arg, "-pg") == 0) {
        !            18:                ld[3] = "-lgcrt0.o";
        !            19:                ld[8] = "-lsys_p";
        !            20:        } else if (strcmp(arg, "-b") == 0 && access("/usr/local/lib/bbexit.o", 4) == 0)
        !            21:                ld[6] = "/usr/local/lib/bbexit.o";
        !            22:        else if (strcmp(arg, "-f68881") == 0)
        !            23:                ;
        !            24:        else
        !            25:                return 0;
        !            26:        return 1;
        !            27: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.