casey%gauss.llnl.gov@LLL-CRG.LLNL.GOV (Casey Leedom) (11/12/89)
*** 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