freebsd-dev/gnu/usr.bin/binutils/gdb/Makefile
Jordan K. Hubbard 01db5e69c1 Hurrah! Let the champagne flow, the olive oil barrel be opened and
the wild, slippery orgy commence!

Gary Jennejohn, too studly for his own good, has finally come through with
the new, improved gdb 4.13.  This gdb features:

o	kgdb support - if this works (and I urge folks to test it), we can
	finally purge the old and hateful version of kgdb from our source
	tree.

o	attach/detach support.  See comments in README.FreeBSD for more
	details.

o	Well, it's newer.  Our previous version was 4.11.

Comments and flames to gj, of course! :-)

Thanks, Gary.  Much appreciated.  The previous state of gdb/kgdb has been a
thorn in all of our sides for some time..
Submitted by:	gj
1994-12-30 23:27:33 +00:00

79 lines
2.8 KiB
Makefile

PROG = gdb
BINDIR= /usr/bin
CLEANFILES+= y.tab.h c-exp.tab.c ch-exp.tab.c m2-exp.tab.c
SRCS = annotate.c blockframe.c breakpoint.c buildsym.c c-lang.c \
c-typeprint.c c-valprint.c ch-lang.c ch-typeprint.c \
ch-valprint.c coffread.c command.c complaints.c copying.c core.c \
coredep.c corelow.c cp-valprint.c \
dcache.c dbxread.c demangle.c disassemble.c dis-buf.c dwarfread.c \
elfread.c environ.c eval.c exec.c expprint.c \
findvar.c fork-child.c freebsd-nat.c gdbtypes.c i386-dis.c \
i386-pinsn.c i386-tdep.c infcmd.c inflow.c infptrace.c \
infrun.c inftarg.c init.c kcorelow.c language.c \
m2-lang.c m2-typeprint.c m2-valprint.c main.c maint.c \
mem-break.c minsyms.c objfiles.c parse.c \
printcmd.c regex.c remote.c remote-utils.c solib.c source.c \
stabsread.c stack.c symfile.c symmisc.c \
symtab.c target.c thread.c top.c \
typeprint.c utils.c valarith.c valops.c \
valprint.c values.c version.c serial.c ser-unix.c mdebugread.c\
c-exp.tab.c ch-exp.tab.c m2-exp.tab.c
c-exp.tab.c: $(.CURDIR)/c-exp.y
yacc -d -p c_ $(.CURDIR)/c-exp.y
sed -e '/extern.*malloc/d' -e '/extern.*realloc/d' -e '/extern.*free/d' \
-e '/include.*malloc.h/d' -e 's/malloc/xmalloc/g' \
-e 's/realloc/xrealloc/g' < y.tab.c > c-exp.new
rm y.tab.c
mv c-exp.new ./c-exp.tab.c
ch-exp.tab.c: $(.CURDIR)/ch-exp.y
yacc -d -p ch_ $(.CURDIR)/ch-exp.y
sed -e '/extern.*malloc/d' -e '/extern.*realloc/d' -e '/extern.*free/d' \
-e '/include.*malloc.h/d' -e 's/malloc/xmalloc/g' \
-e 's/realloc/xrealloc/g' < y.tab.c > ch-exp.new
rm y.tab.c
mv ch-exp.new ./ch-exp.tab.c
m2-exp.tab.c: $(.CURDIR)/m2-exp.y
yacc -d -p m2_ $(.CURDIR)/m2-exp.y
sed -e '/extern.*malloc/d' -e '/extern.*realloc/d' -e '/extern.*free/d' \
-e '/include.*malloc.h/d' -e 's/malloc/xmalloc/g' \
-e 's/realloc/xrealloc/g' < y.tab.c > m2-exp.new
rm y.tab.c
mv m2-exp.new ./m2-exp.tab.c
CFLAGS+= -I$(.CURDIR)/. -I${DESTDIR}/usr/include/readline -I$(.CURDIR)/../bfd
DPADD+= ${LIBREADLINE} ${LIBTERMCAP}
LDADD+= -lreadline -ltermcap
.if exists(${.CURDIR}/../libiberty/obj)
LDADD+= -L${.CURDIR}/../libiberty/obj -liberty
DPADD+= ${.CURDIR}/../libiberty/obj/libiberty.a
.else
LDADD+= -L${.CURDIR}/../libiberty/ -liberty
DPADD+= ${.CURDIR}/../libiberty/libiberty.a
.endif
.if exists(${.CURDIR}/../bfd/obj)
LDADD+= -L${.CURDIR}/../bfd/obj -lbfd
DPADD+= ${.CURDIR}/../bfd/obj/libbfd.a
.else
LDADD+= -L${.CURDIR}/../bfd/ -lbfd
DPADD+= ${.CURDIR}/../bfd/libbfd.a
.endif
.if exists(${.CURDIR}/../mmalloc/obj)
LDADD+= -L${.CURDIR}/../mmalloc/obj -lmmalloc
DPADD+= ${.CURDIR}/../mmalloc/obj/libmmalloc.a
.else
LDADD+= -L${.CURDIR}/../mmalloc/ -lmmalloc
DPADD+= ${.CURDIR}/../mmalloc/libmmalloc.a
.endif
LDADD+= -lcompat
DPADD+= ${LIBCOMPAT}
.include <bsd.prog.mk>