Define KERNEL_BUILD at the top of the emitted kernel Makefile. This

means that the appropriate combination of checking for KERNEL_BUILD,
RELEASEDIR, DESTDIR, and/or BSD_PKG_MK, can allow the setting of COPTS
or CFLAGS (or anything else) depending on the specific task at hand.
Personally, I think that per-kernel install rules are the best part.
This commit is contained in:
atatat 2002-11-19 04:24:16 +00:00
parent a5bd4ec465
commit 399c5e40ce
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mkmakefile.c,v 1.56 2002/11/17 22:10:05 thorpej Exp $ */
/* $NetBSD: mkmakefile.c,v 1.57 2002/11/19 04:24:16 atatat Exp $ */
/*
* Copyright (c) 1992, 1993
@ -208,6 +208,8 @@ emitdefs(FILE *fp)
struct nvlist *nv;
char *sp;
if (fprintf(fp, "KERNEL_BUILD=%s\n", conffile) < 0)
return (1);
if (fputs("IDENT=", fp) < 0)
return (1);
sp = "";