/* main.c 1.7 82/10/25 */
* Config builds a set of files for building a UNIX
* system given a description of the desired system.
fprintf(stderr
, "usage: config sysname\n");
if (freopen(argv
[1], "r", stdin
) == NULL
) {
vax_ioconf(); /* Print ioconf.c */
ubglue(); /* Create ubglue.s */
printf("Specify machine type, e.g. ``machine vax''\n");
makefile(); /* build Makefile */
headers(); /* make a lot of .h files */
printf("Don't forget to run \"make depend\"\n");
* returns EOF on end of file
* pointer to the word otherwise
while ((ch
= getc(fp
)) != EOF
)
if (ch
!= ' ' && ch
!= '\t')
while ((ch
= getc(fp
)) != EOF
) {
* prepend the path to a filename
cp
= malloc((unsigned)(strlen(PREFIX
)+strlen(file
)+5));
(void) strcpy(cp
, "../");
(void) strcat(cp
, PREFIX
);