diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-05-31 21:56:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-05-31 21:56:44 +0000 |
commit | 40667da5c8f78ea227ac331a49a9e278f4a3eeb4 (patch) | |
tree | 88e46070f0bfaecd29ec5c4c9ad8ba1cf18c82ee /usr.sbin/config/mkmakefile.c | |
parent | e427229895bf7380905f9c1916ce7111a59e5359 (diff) |
Do not add the swap*.c to the CFILES as a dependency. The rest of the
Makefile.* file copes with swap*.c the same as vers.c; it is also much
nicer to keep the whole CFILES as far-reaching absolute or relative paths
rather than relative to .
ok miod
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index d59814727b6..4732dee75ea 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkmakefile.c,v 1.33 2010/05/24 20:02:08 deraadt Exp $ */ +/* $OpenBSD: mkmakefile.c,v 1.34 2010/05/31 21:56:43 deraadt Exp $ */ /* $NetBSD: mkmakefile.c,v 1.34 1997/02/02 21:12:36 thorpej Exp $ */ /* @@ -397,32 +397,6 @@ emitfiles(FILE *fp, int suffix) lpos += len + 1; sp = ' '; } - /* - * The allfiles list does not include the configuration-specific - * C source files. These files should be eliminated someday, but - * for now, we have to add them to ${CFILES} (and only ${CFILES}). - */ - if (suffix == 'c') { - for (cf = allcf; cf != NULL; cf = cf->cf_next) { - if (cf->cf_root == NULL) - (void)snprintf(swapname, sizeof swapname, - "$S/conf/swapgeneric.c"); - else - (void)snprintf(swapname, sizeof swapname, - "./swap%s.c", cf->cf_name); - len = strlen(swapname); - if (lpos + len > 72) { - if (fputs(" \\\n", fp) < 0) - return (1); - sp = '\t'; - lpos = 7; - } - if (fprintf(fp, "%c%s", sp, swapname) < 0) - return (1); - lpos += len + 1; - sp = ' '; - } - } if (putc('\n', fp) < 0) return (1); return (0); |