Annotation of researchv10no/cmd/lcc/etc/shamash.c, revision 1.1.1.1

1.1       root        1: /* mc68020s running Sun UNIX 4.0 at Bell Labs */
                      2: 
                      3: #include <string.h>
                      4: 
                      5: char *cpp[] = { "/usr/v8/lib/gcc-cpp", "-undef", "-Dsun", "-Dmc68000", "-Dmc68020", "$1", "$2", "$3", 0 };
                      6: char *include[] = { "-I/usr/v8/include", "-I/usr/v8/include/lcc", 0 };
                      7: char *com[] = { "/usr/v8/lib/rcc", "$1", "$2", "$3", 0 };
                      8: char *as[] = { "/bin/as", "-o", "$3", "$1", "-mc68020", "$2", 0 };
                      9: char *ld[] = { "/bin/ld" , "-o", "$3", "-dc", "-dp", "-e", "start", "-X",
                     10:                "/usr/lib/crt0.o", "/usr/lib/Mcrt1.o", "-L/usr/lib/f68881",
                     11:                "$1", "$2", "", "-lm", "", "-lc", 0 };
                     12: 
                     13: int option(arg) char *arg; {
                     14:        if (strcmp(arg, "-g") == 0)
                     15:                ld[15] = "-lg";
                     16:        else if (strcmp(arg, "-p") == 0) {
                     17:                ld[8] = "/usr/lib/mcrt0.o";
                     18:                ld[16] = "-lc_p";
                     19:        } else if (strcmp(arg, "-pg") == 0) {
                     20:                ld[8] = "/usr/lib/gcrt0.o";
                     21:                ld[16] = "-lc_p";
                     22:        } else if (strcmp(arg, "-b") == 0)
                     23:                ld[13] = "/usr/v8/lib/bbexit.o";
                     24:        else if (strcmp(arg, "-f68881") == 0)
                     25:                ;
                     26:        else
                     27:                return 0;
                     28:        return 1;
                     29: }

unix.superglobalmegacorp.com

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