Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Allow to activate debug_flags with make -DDEBUG_FLAGS and no assigned value
Baptiste Daroussin committed 13 years ago
commit d00d5621cbef6411e0620d615fb6fb2e71f8e370
parent e6ef269
5 files changed +34 -3
modified external/libelf/Makefile
@@ -70,6 +70,14 @@ libelf_convert.c: elf_types.m4 libelf_convert.m4
libelf_fsize.c:		elf_types.m4 libelf_fsize.m4
libelf_msize.c:		elf_types.m4 libelf_msize.m4

+
.if defined(DEBUG_FLAGS)
+
.if ${DEBUG_FLAGS} == 1
+
DEBUG_FLAGS=	-ggdb -O0
+
.else
+
DEBUG_FLAGS+=	-ggdb -O0
+
.endif
+
.endif
+

.include <bsd.lib.mk>

# Keep the .SUFFIXES line after the include of bsd.lib.mk
modified external/libyaml/Makefile
@@ -19,4 +19,12 @@ WARNS= 1

NO_MAN=		true

+
.if defined(DEBUG_FLAGS)
+
.if ${DEBUG_FLAGS} == 1
+
DEBUG_FLAGS=	-ggdb -O0
+
.else
+
DEBUG_FLAGS+=	-ggdb -O0
+
.endif
+
.endif
+

.include <bsd.lib.mk>
modified external/sqlite/Makefile
@@ -54,4 +54,12 @@ CFLAGS+= -DSQLITE_OMIT_AUTOVACUUM \

NO_MAN=		true

+
.if defined(DEBUG_FLAGS)
+
.if ${DEBUG_FLAGS} == 1
+
DEBUG_FLAGS=	-ggdb -O0
+
.else
+
DEBUG_FLAGS+=	-ggdb -O0
+
.endif
+
.endif
+

.include <bsd.lib.mk>
modified libpkg/Makefile
@@ -110,9 +110,12 @@ LDADD+= -ledit
CFLAGS+=	-DPREFIX=\"${PREFIX}\"

.if defined(DEBUG_FLAGS)
-
DEBUG_FLAGS+=  -g -O0
+
.if ${DEBUG_FLAGS} == 1
+
DEBUG_FLAGS=	-ggdb -O0
+
.else
+
DEBUG_FLAGS+=	-ggdb -O0
+
.endif
.endif
-
STRIP=
.if defined(PROFILE_BUILD)
DEBUG_FLAGS+=	-pg
.endif
modified pkg/Makefile
@@ -44,7 +44,11 @@ CFLAGS+= -DGITHASH="\" ${GITHASH}\""
.endif

.if defined(DEBUG_FLAGS)
-
DEBUG_FLAGS+=	-g -O0
+
.if ${DEBUG_FLAGS} == 1
+
DEBUG_FLAGS=	-ggdb -O0
+
.else
+
DEBUG_FLAGS+=	-ggdb -O0
+
.endif
.endif
.if defined(PROFILE_BUILD)
DEBUG_FLAGS+=	-pg