Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libmenu Add conditional with the debug stuff in it so a ...
details: https://anonhg.NetBSD.org/src/rev/904a06e3bfd0
branches: trunk
changeset: 534552:904a06e3bfd0
user: blymn <blymn%NetBSD.org@localhost>
date: Mon Jul 29 12:58:10 2002 +0000
description:
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:
lib/libmenu/Makefile | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 4e74b4b60908 -r 904a06e3bfd0 lib/libmenu/Makefile
--- a/lib/libmenu/Makefile Mon Jul 29 10:01:58 2002 +0000
+++ b/lib/libmenu/Makefile Mon Jul 29 12:58:10 2002 +0000
@@ -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 @@
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>
Home |
Main Index |
Thread Index |
Old Index