Stuff the target names (the kernel names) into a make variable so that

ports that build "alternate" versions of the same target can clean up
properly.
This commit is contained in:
atatat 2001-12-04 17:53:40 +00:00
parent a19ffa4418
commit 73aae2a161
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mkmakefile.c,v 1.50 2001/11/27 14:04:05 atatat Exp $ */
/* $NetBSD: mkmakefile.c,v 1.51 2001/12/04 17:53:40 atatat Exp $ */
/*
* Copyright (c) 1992, 1993
@ -461,6 +461,8 @@ emitload(FILE *fp)
nm = cf->cf_name;
swname =
cf->cf_root != NULL ? cf->cf_name : "generic";
if (fprintf(fp, "KERNELS+=%s\n", nm) < 0)
return (1);
if (fprintf(fp, "SWAP_OBJ%s=swap%s.o\n", nm, swname) < 0)
return (1);
if (fprintf(fp, "%s: ${SYSTEM_DEP} swap%s.o newvers", nm,