diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-11-24 02:47:43 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-11-24 02:47:43 +0000 |
commit | b7b83f1239a9bf9dca371111fd67a4d9c9f93a2b (patch) | |
tree | 6e83b4e61f7c9e9d9dd0c7a13c0e9ada6ba315aa /share | |
parent | 6388d3d9cf07f4ef99b2149951cb5533a69f8912 (diff) |
Add a new knob called DEBUG. Define to -g to have it turn off STRIP=-s
and add itself to CFLAGS and ASFLAGS
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.README | 5 | ||||
-rw-r--r-- | share/mk/bsd.own.mk | 4 | ||||
-rw-r--r-- | share/mk/sys.mk | 6 |
3 files changed, 10 insertions, 5 deletions
diff --git a/share/mk/bsd.README b/share/mk/bsd.README index 5d65f799fad..e02aa0b5389 100644 --- a/share/mk/bsd.README +++ b/share/mk/bsd.README @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.README,v 1.10 1996/07/27 10:05:48 deraadt Exp $ +# $OpenBSD: bsd.README,v 1.11 1996/11/24 02:47:40 niklas Exp $ # $NetBSD: bsd.README,v 1.17 1996/04/13 02:08:08 thorpej Exp $ # @(#)bsd.README 5.1 (Berkeley) 5/11/90 @@ -199,6 +199,9 @@ NOPIC Do not build PIC versions of system libraries, and NOLINT Do not build lint libraries. [set, set unconditionally] +DEBUG Add -g to assembly and C compiler passes. Also doesn't + set STRIP to -s per defalt if defined. + bsd.own.mk is generally useful when building your own Makefiles so that they use the same default owners etc. as the rest of the tree. diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index f561f7bb5a7..2bf5fa21008 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.own.mk,v 1.12 1996/09/16 10:23:58 downsj Exp $ +# $OpenBSD: bsd.own.mk,v 1.13 1996/11/24 02:47:41 niklas Exp $ # $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $ .if defined(MAKECONF) && exists(${MAKECONF}) @@ -58,7 +58,9 @@ NLSOWN?= root NLSMODE?= ${NONBINMODE} COPY?= -c +.ifndef DEBUG STRIP?= -s +.endif # This may be changed for _single filesystem_ configurations (such as # routers and other embedded systems); normal systems should leave it alone! diff --git a/share/mk/sys.mk b/share/mk/sys.mk index 0d02c183bf4..c5626cc3e69 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -1,4 +1,4 @@ -# $OpenBSD: sys.mk,v 1.8 1996/11/23 00:28:38 niklas Exp $ +# $OpenBSD: sys.mk,v 1.9 1996/11/24 02:47:42 niklas Exp $ # $NetBSD: sys.mk,v 1.27 1996/04/10 05:47:19 mycroft Exp $ # @(#)sys.mk 5.11 (Berkeley) 3/13/91 @@ -13,14 +13,14 @@ ARFLAGS?= rl RANLIB?= ranlib AS?= as -AFLAGS?= +AFLAGS?= ${DEBUG} COMPILE.s?= ${CC} ${AFLAGS} -c LINK.s?= ${CC} ${AFLAGS} ${LDFLAGS} COMPILE.S?= ${CC} ${AFLAGS} ${CPPFLAGS} -c LINK.S?= ${CC} ${AFLAGS} ${CPPFLAGS} ${LDFLAGS} CC?= cc -CFLAGS?= -O +CFLAGS?= -O ${DEBUG} COMPILE.c?= ${CC} ${CFLAGS} ${CPPFLAGS} -c LINK.c?= ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} |