Sort DBG vs CPPFLAGS in the DEBUG case, as requested by Christos

This commit is contained in:
martin 2015-05-10 09:13:15 +00:00
parent 5608b80ca0
commit b3b23df81a
1 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.6 2015/05/09 06:15:42 martin Exp $
# $NetBSD: Makefile.inc,v 1.7 2015/05/10 09:13:15 martin Exp $
#
# Makefile for sysinst
@ -6,10 +6,6 @@
.include "${.CURDIR}/../../../Makefile.inc"
.endif
.if empty(DBG:M-g)
COPTS += -Os
.endif
PROG= sysinst
NOMAN= # defined
@ -60,7 +56,12 @@ CPPFLAGS+= -I. -I${.CURDIR}/../.. -I${.CURDIR} \
# when compiling with -O0)
O0TRACKING= -fvar-tracking-assignments -fvar-tracking
.endif
CPPFLAGS+=-DDEBUG -g -O0 ${O0TRACKING}
CPPFLAGS+=-DDEBUG
DBG +=-g -O0 ${O0TRACKING}
.endif
.if empty(DBG:M-g)
COPTS += -Os
.endif
.if (!defined(SMALLPROG) || defined(SMALLPROG_INET6)) && (${USE_INET6} != "no")