From a46132c1a20ca768c8496be6796d474976b5efdf Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sat, 29 Mar 1997 10:29:40 +0000 Subject: [PATCH] Protect against multiple inclusion (All the CFLAGS+= items make the cc command lines get rather long). (bsd.lib.mk is particularly bad at this) --- gnu/usr.bin/gdb/Makefile.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/usr.bin/gdb/Makefile.inc b/gnu/usr.bin/gdb/Makefile.inc index 37b9c21a489..9a318452122 100644 --- a/gnu/usr.bin/gdb/Makefile.inc +++ b/gnu/usr.bin/gdb/Makefile.inc @@ -1,3 +1,6 @@ +# bsd.lib.mk causes this file to be loaded multiple times. +.if !defined(BEEN_HERE) +BEEN_HERE=1 # this may be defined in other places .if !defined(GDBDIR) @@ -8,4 +11,4 @@ CFLAGS+= -I${GDBDIR}/include/. -I${GDBDIR}/gdb/. -I${GDBDIR}/bfd/. CFLAGS+= -I${GDBDIR}/libiberty/. CFLAGS+= -I${GDBDIR}/gdb/config/. CFLAGS+= -DHAVE_CONFIG_H - +.endif