File:  [Research Unix] / researchv10no / cmd / lcc / etc / mtkato.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

/* NeXTs running NeXT 0.9 at Princeton University */

#include <string.h>

char *cpp[] = { "/lib/cpp", "-undef", "-DNeXT", "-Dmc68030", "-DMACH", "$1", "$2", "$3", 0 };
char *include[] = { "-I/usr/local/include/ansi", 0 };
char *com[] = { "/usr/local/lib/rcc", "$1", "$2", "$3", 0 };
char *as[] = { "/usr/local/lib/as", "-o", "$2", "-mc68020", "$1", 0 };
char *ld[] = { "/bin/ld", "-o", "$3", "-lcrt0.o", "$1", "$2", "-lm", "-lc", 0 };

int option(arg) char *arg; {
	if (strcmp(arg, "-g") == 0)
		;
	else if (strcmp(arg, "-p") == 0) {
		ld[3] = "-lmcrt0.o";
		ld[7] = "-lc_p";
	} else if (strcmp(arg, "-pg") == 0) {
		ld[3] = "-lgcrt0.o";
		ld[7] = "-lc_p";
	} else if (strcmp(arg, "-f68881") == 0)
		;
	else
		return 0;
	return 1;
}

unix.superglobalmegacorp.com

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