diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-19 17:28:32 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-19 17:28:32 +0000 |
commit | c1ace5b59644a8e2fe72883aea1c3df9ce372b4c (patch) | |
tree | 5cf22f81444d2c5972d2b356905d6916731b1a3f /gdb/Makefile.dist | |
parent | c93a350722500593dffe960f89c8e7cded819540 (diff) | |
download | gdb-c1ace5b59644a8e2fe72883aea1c3df9ce372b4c.zip gdb-c1ace5b59644a8e2fe72883aea1c3df9ce372b4c.tar.gz gdb-c1ace5b59644a8e2fe72883aea1c3df9ce372b4c.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/Makefile.dist')
-rwxr-xr-x | gdb/Makefile.dist | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/Makefile.dist b/gdb/Makefile.dist index ffaa1f5..f777018 100755 --- a/gdb/Makefile.dist +++ b/gdb/Makefile.dist @@ -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 |