summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.lib.mk
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-09-16 14:30:25 +0000
committerjkh <jkh@FreeBSD.org>1994-09-16 14:30:25 +0000
commit7aa31544d63c08b97a4c9b329c2e33d97d17d977 (patch)
treea12ad3c3e705a4ec43a69b9e00f35a66b65f4ad6 /share/mk/bsd.lib.mk
parentf40d319a8685d1524f17f2e46cffef6bf9763224 (diff)
downloadFreeBSD-src-7aa31544d63c08b97a4c9b329c2e33d97d17d977.zip
FreeBSD-src-7aa31544d63c08b97a4c9b329c2e33d97d17d977.tar.gz
Add support for DEBUG_FLAGS. If you say something like:
make DEBUG_FLAGS=-g2 You can compile something for debugging at debugging level 2. It will also take care not to strip the resulting executable(s).
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r--share/mk/bsd.lib.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index 2dad907..8d9fac5 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -1,5 +1,5 @@
# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
-# $Id: bsd.lib.mk,v 1.5 1994/08/26 18:58:10 wollman Exp $
+# $Id: bsd.lib.mk,v 1.6 1994/08/28 15:37:39 bde Exp $
#
.if exists(${.CURDIR}/../Makefile.inc)
@@ -16,6 +16,10 @@ CFLAGS+= -I${DESTDIR}/usr/include
CXXINCLUDES+= -I${DESTDIR}/usr/include/${CXX}
.endif
+.if defined(DEBUG_FLAGS)
+CFLAGS+= ${DEBUG_FLAGS}
+.endif
+
INSTALL?= install
LIBDIR?= /usr/lib
LINTLIBDIR?= /usr/libdata/lint
@@ -23,7 +27,9 @@ LIBGRP?= bin
LIBOWN?= bin
LIBMODE?= 444
+.if !defined(DEBUG_FLAGS)
STRIP?= -s
+.endif
BINGRP?= bin
BINOWN?= bin
OpenPOWER on IntegriCloud