diff options
author | peter <peter@FreeBSD.org> | 1999-04-13 18:22:57 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-13 18:22:57 +0000 |
commit | 22b374184d4be9aa062ff5db81671078e660d88a (patch) | |
tree | d65dbd5d9c48f19f75674b5f8e8fa961e1d1fe1c /usr.sbin/config/mkmakefile.c | |
parent | 3f5095a2fabcad266861952782330d3cb6fd5797 (diff) | |
download | FreeBSD-src-22b374184d4be9aa062ff5db81671078e660d88a.zip FreeBSD-src-22b374184d4be9aa062ff5db81671078e660d88a.tar.gz |
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"
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index a2ed836..77fcb46 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -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"); |