From c1ace5b59644a8e2fe72883aea1c3df9ce372b4c Mon Sep 17 00:00:00 2001 From: Jim Kingdon <jkingdon@engr.sgi.com> Date: Fri, 19 Apr 1991 17:28:32 +0000 Subject: * Makefile.dist (cplus-dem.o): Hack in an #include "param.h" before we compile it. defs.h: Protect against multiple inclusion. param.h: Include defs.h. --- gdb/Makefile.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gdb/Makefile.in') diff --git a/gdb/Makefile.in b/gdb/Makefile.in index ffaa1f5..f777018 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -503,5 +503,12 @@ force_update : # When used with GDB, the demangler should never look for leading underscores # because GDB strips them off during symbol read-in. Thus -Dnounderscore. +# Adding "param.h" gets us the USG define without having to edit cplus-dem.c +# (which is used by other programs which may or may not have a "param.h"). +# (no newline is added, so line numbers still work right). cplus-dem.o : cplus-dem.c - ${CC} -c ${CFLAGS} -Dnounderscore `echo ${srcdir}/cplus-dem.c | sed 's,^\./,,'` + sed <`echo ${srcdir}/cplus-dem.c | sed 's,^\./,,'` \ + >cplus.tmp.c \ + '1s,^,#include "param.h" ,' + ${CC} -c ${CFLAGS} -Dnounderscore cplus.tmp.c + mv cplus.tmp.o cplus-dem.o -- cgit v1.1