Article View: gnu.gdb.bug
Article #312Fixes for gdb 3.4 Makefile.dist
From: Casey Leedom
Date: Sun, 12 Nov 1989 09:26
Date: Sun, 12 Nov 1989 09:26
71 lines
2668 bytes
2668 bytes
*** gdb/Makefile.dist-dist Wed Oct 18 11:43:59 1989
--- gdb/Makefile.dist Sun Nov 12 01:13:02 1989
***************
*** 1,6 ****
--- 1,22 ----
/* This file should be run through the C preprocessor by config.gdb
to produce the Makefile. */
+ /* DESTDIR is the top level directory into which things will be installed.
+ BINDIR is where gdb will be installed (relative to DESTDIR).
+ XBINDIR is where xgdb (if compiled) will be installed (relative to DESTDIR).
+
+ XGDB should be "xgdb" to compile xgdb or "" to skip compiling xgdb.
+ XCFLAGS are any extra cc flags necessary to compile xgdb.c.
+ XLDFLAGS are any extra flags necessary to load xgdb. */
+
+ DESTDIR=
+ BINDIR=/usr/local/bin
+ XBINDIR=/usr/local/bin/X11
+
+ XGDB=xgdb
+ XCFLAGS=-I/usr/local/include
+ XLDFLAGS=-L/usr/local/lib/X11
+
/* System V:
If your system has a broken alloca(), define ALLOCA & ALLOCA1 below.
Also, if you compile gdb with a compiler which uses the coff
***************
*** 193,198 ****
--- 209,222 ----
${CC} -c ${CFLAGS} $< */
TARGET_ARCH=
+ all : gdb $(XGDB)
+
+ install : gdb $(XGDB)
+ install -c gdb $(DESTDIR)$(BINDIR)/gdb
+ -if [ "$(XGDB)" = xgdb ]; then \
+ install -c xgdb $(DESTDIR)$(XBINDIR)/xgdb; \
+ fi
+
gdb : $(OBS) $(TSOBS) ${ADD_DEPS} ${RL_LIB}
rm -f init.c
./munch ${MUNCH_DEFINE} $(OBS) $(TSOBS) > init.c
***************
*** 215,221 ****
xgdb : $(OBS) $(TSOBS) xgdb.o ${ADD_DEPS} ${RL_LIB}
rm -f init.c
./munch ${MUNCH_DEFINE} $(OBS) $(TSOBS) xgdb.o > init.c
! $(CC-LD) $(LDFLAGS) -o xgdb init.c $(OBS) $(TSOBS) xgdb.o \
-lXaw -lXmu -lXt -lX11 ${RL_LIB} $(CLIBS)
/* Old (pre R3) xgdb comp.
--- 239,245 ----
xgdb : $(OBS) $(TSOBS) xgdb.o ${ADD_DEPS} ${RL_LIB}
rm -f init.c
./munch ${MUNCH_DEFINE} $(OBS) $(TSOBS) xgdb.o > init.c
! $(CC-LD) $(LDFLAGS) $(XLDFLAGS) -o xgdb init.c $(OBS) $(TSOBS) xgdb.o \
-lXaw -lXmu -lXt -lX11 ${RL_LIB} $(CLIBS)
/* Old (pre R3) xgdb comp.
***************
*** 272,277 ****
--- 296,302 ----
rm -f Makefile
xgdb.o : defs.h param.h symtab.h frame.h
+ $(CC) -c $(CFLAGS) $(XCFLAGS) xgdb.c
/* Make copying.c from COPYING */
copying.c : COPYING copying.awk
Technical Details
Message-ID:
<8911120927.AA16563@gauss.llnl.gov>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!LLL-CRG.LLNL.GOV!casey%gauss.llnl.govShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!LLL-CRG.LLNL.GOV!casey%gauss.llnl.gov From: casey%gauss.llnl.gov@LLL-CRG.LLNL.GOV (Casey Leedom) Newsgroups: gnu.gdb.bug Subject: Fixes for gdb 3.4 Makefile.dist Message-ID: <8911120927.AA16563@gauss.llnl.gov> Date: 12 Nov 89 09:26:59 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 71