|
|
1.1 root 1: /* VAXes running UNIX 4.3BSD or ULTRIX at Princeton University */
2:
3: #include <string.h>
4:
5: char *cpp[] = { "/usr/gnu/lib/gcc-cpp", "-undef", "-Dvax",
6: "$1", "$2", "$3", 0 };
7: char *include[] = { "-I/usr/local/include/ansi", 0 };
8: char *com[] = { "/usr/local/lib/rcc", "$1", "$2", "$3", 0 };
9: char *as[] = { "/bin/as", "-J", "-o", "$3", "$1", "$2", 0 };
10: char *ld[] = { "/bin/ld", "-o", "$3", "/lib/crt0.o", "-X",
11: "$1", "$2", "", "", "-lm", "", "-lc", 0 };
12:
13: static char *libprefix = "/cmnusr/local/lib/ldb/";
14: extern char *concat();
15:
16: int option(arg) char *arg; {
17: if (strcmp(arg, "-g") == 0)
18: ld[10] = "-lg";
19: else if (strcmp(arg, "-p") == 0 && strcmp(ld[3], "/lib/crt0.o") == 0) {
20: ld[3] = "/lib/mcrt0.o";
21: ld[11] = "-lc_p";
22: } else if (strcmp(arg, "-pg") == 0 && strcmp(ld[3], "/lib/crt0.o") == 0) {
23: ld[3] = "/usr/lib/gcrt0.o";
24: ld[11] = "-lc_p";
25: } else if (strcmp(arg, "-b") == 0
26: && access("/usr/local/lib/bbexit.o", 4) == 0)
27: ld[7] = "/usr/local/lib/bbexit.o";
28: else if (strncmp(arg, "-B", 2) == 0)
29: libprefix = arg + 2;
30: else if (strcmp(arg, "-G") == 0 && strcmp(ld[3], "/lib/crt0.o") == 0) {
31: com[0] = concat(libprefix, "vax/rcc");
32: ld[0] = "/cmnusr/local/lib/ldb/ldb-ld";
33: ld[3] = concat(libprefix, "vax/crt0.o");
34: ld[8] = concat(libprefix, "vax/Cnub.o");
35: } else
36: return 0;
37: return 1;
38: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.