mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Clean up the -g/DEBUG handling. This logic can go in the Makefile
so that config -g can work the same as: makeoptions DEBUG="-g"
This commit is contained in:
parent
a4e77b9b5f
commit
b282e6c130
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45660
@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.20 1998/05/06 15:27:57 bde Exp $
|
||||
|
||||
PROG= config
|
||||
CFLAGS+=-I. -I${.CURDIR}
|
||||
@ -9,6 +9,6 @@ MAN8= config.8
|
||||
DPADD= ${LIBL}
|
||||
LDADD= -ll
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
mkmakefile.o: configvers.h
|
||||
|
||||
$(OBJS): configvers.h
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -6,6 +6,6 @@
|
||||
* The numbering scheme is inspired by the sys/conf/newvers.sh RELDATE
|
||||
* and <osreldate.h> system.
|
||||
*
|
||||
* $Id: configvers.h,v 1.8 1998/11/15 18:07:35 dfr Exp $
|
||||
* $Id: configvers.h,v 1.9 1999/04/07 09:42:29 grog Exp $
|
||||
*/
|
||||
#define CONFIGVERS 300010
|
||||
#define CONFIGVERS 300011
|
||||
|
@ -36,7 +36,7 @@
|
||||
static char sccsid[] = "@(#)mkmakefile.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: mkmakefile.c,v 1.35 1999/04/07 09:27:56 grog Exp $";
|
||||
"$Id: mkmakefile.c,v 1.36 1999/04/11 03:40:10 grog Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -824,30 +824,8 @@ do_systemspec(f, fl, first)
|
||||
int first;
|
||||
{
|
||||
|
||||
if (debugging) {
|
||||
fprintf(f,
|
||||
"KERNEL=\t\t%s\n"
|
||||
"FULLKERNEL=\t%s.debug\n"
|
||||
"INSTALL=\tinstall.debug\n\n"
|
||||
"%s: %s.debug\n",
|
||||
fl->f_needs,
|
||||
fl->f_needs,
|
||||
fl->f_needs,
|
||||
fl->f_needs );
|
||||
fprintf (f,
|
||||
"\tobjcopy --strip-debug %s.debug %s\n\n",
|
||||
fl->f_needs,
|
||||
fl->f_needs );
|
||||
fprintf(f, "%s.debug: ${SYSTEM_DEP} swap%s.o", fl->f_needs, fl->f_fn);
|
||||
} else {
|
||||
fprintf(f,
|
||||
"KERNEL=\t\t%s\n"
|
||||
"FULLKERNEL=\t%s\n\n"
|
||||
"INSTALL=\tinstall\n\n",
|
||||
fl->f_needs,
|
||||
fl->f_needs );
|
||||
fprintf(f, "%s: ${SYSTEM_DEP} swap%s.o", fl->f_needs, fl->f_fn);
|
||||
}
|
||||
fprintf(f, "KERNEL=\t%s\n", fl->f_needs);
|
||||
fprintf(f, "${FULLKERNEL}: ${SYSTEM_DEP} swap%s.o", fl->f_fn);
|
||||
if (first)
|
||||
fprintf(f, " vers.o");
|
||||
fprintf(f, "\n\t${SYSTEM_LD_HEAD}\n");
|
||||
|
Loading…
Reference in New Issue
Block a user