diff options
| author | blymn <blymn@NetBSD.org> | 2002-07-29 12:58:10 +0000 |
|---|---|---|
| committer | blymn <blymn@NetBSD.org> | 2002-07-29 12:58:10 +0000 |
| commit | eeeb9703366cdd652c8ec3303bc66ae05dfff7d9 (patch) | |
| tree | ed0ca3f53a7b00951c2d351e824e0dadce773238 /lib/libmenu | |
| parent | 0c0bf329c43a84a8f485ea1f05091f4ebc02b088 (diff) | |
Add conditional with the debug stuff in it so a debug version of libmenu
can be built by defining DEBUG_MENUS in the environment.
Diffstat (limited to 'lib/libmenu')
| -rw-r--r-- | lib/libmenu/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libmenu/Makefile b/lib/libmenu/Makefile index d046f4298d1..e8c16711574 100644 --- a/lib/libmenu/Makefile +++ b/lib/libmenu/Makefile @@ -1,7 +1,12 @@ -# $NetBSD: Makefile,v 1.6 2001/04/30 11:10:23 blymn Exp $ +# $NetBSD: Makefile,v 1.7 2002/07/29 12:58:10 blymn Exp $ # CPPFLAGS+=-I${.CURDIR} +.if defined(DEBUG_MENUS) +CFLAGS+=-g +CPPFLAGS+=-DDEBUG +LDFLAGS+=-g +.endif LIB= menu SRCS= menu.c item.c userptr.c internals.c driver.c post.c attributes.c MAN= menu_attributes.3 menu_item_name.3 menu_items.3 menu_userptr.3 \ @@ -11,7 +16,6 @@ MAN= menu_attributes.3 menu_item_name.3 menu_items.3 menu_userptr.3 \ menu_item_current.3 menu_item_visible.3 menu_post.3 INCS= menu.h eti.h INCSDIR=/usr/include -#LDFLAGS += -g .include <bsd.lib.mk> .include <bsd.subdir.mk> |
