|
|
1.1 ! root 1: /* Sun-3s & Sun-4s running Sun UNIX 4.0 at CIT, Princeton University */ ! 2: ! 3: #include <string.h> ! 4: ! 5: char *cpp[] = { "/usr/princeton/lib/gnu/gcc-cpp", "-undef", "-Dsun", ! 6: #ifdef sparc ! 7: "-Dsparc", ! 8: #else ! 9: "-Dmc68000", "-Dmc68020", ! 10: #endif ! 11: "$1", "$2", "$3", 0 }; ! 12: char *include[] = { "-I/usr/princeton/include/ansi", "-I/usr/include", 0 }; ! 13: char *com[] = { "/usr/princeton/lib/rcc", "$1", "$2", "$3", 0 }; ! 14: char *as[] = { "/bin/as", "-o", "$3", ! 15: #ifndef sparc ! 16: "-mc68020", ! 17: #endif ! 18: "$1", "$2", 0 }; ! 19: char *ld[] = { "/bin/ld", "-o", "$3", "-dc", "-dp", "-e", "start", "-X", ! 20: "$1", "/usr/lib/crt0.o", ! 21: #ifdef sparc ! 22: "", "", ! 23: #else ! 24: "/usr/lib/Mcrt1.o", "-L/usr/lib/f68881", ! 25: #endif ! 26: "$2", "", "-lm", "", "-lc", 0 }; ! 27: ! 28: int option(arg) char *arg; { ! 29: if (strcmp(arg, "-g") == 0) ! 30: ld[15] = "-lg"; ! 31: else if (strcmp(arg, "-p") == 0) { ! 32: ld[9] = "/usr/lib/mcrt0.o"; ! 33: ld[16] = "-lc_p"; ! 34: } else if (strcmp(arg, "-pg") == 0) { ! 35: ld[9] = "/usr/lib/gcrt0.o"; ! 36: ld[16] = "-lc_p"; ! 37: } else if (strcmp(arg, "-b") == 0 && access("/usr/princeton/lib/bbexit.o", 4) == 0) ! 38: ld[13] = "/usr/princeton/lib/bbexit.o"; ! 39: else if (strcmp(arg, "-f68881") == 0) ! 40: ; ! 41: else ! 42: return 0; ! 43: return 1; ! 44: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.