* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
"@(#) Copyright (c) 1980 Regents of the University of California.\n\
static char sccsid
[] = "@(#)main.c 5.1 (Berkeley) %G%";
* Config builds a set of files for building a UNIX
* system given a description of the desired system.
if (argc
> 1 && eq("-p", argv
[1])) {
fprintf(stderr
, "usage: config [ -p ] 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 */
swapconf(); /* swap config 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
);