1997-04-30 15:23:02 +00:00
|
|
|
# $Id: Makefile,v 1.22 1997/04/27 21:36:48 gj Exp $
|
1996-05-07 23:19:49 +00:00
|
|
|
|
1994-06-10 13:42:18 +00:00
|
|
|
PROG = gdb
|
1997-01-15 22:37:09 +00:00
|
|
|
|
|
|
|
GDBDIR= ${.CURDIR}/../../../../contrib/gdb
|
|
|
|
.PATH: ${GDBDIR}/gdb
|
|
|
|
.PATH: ${GDBDIR}/opcodes
|
|
|
|
|
1994-06-10 13:42:18 +00:00
|
|
|
BINDIR= /usr/bin
|
1994-12-30 23:27:33 +00:00
|
|
|
SRCS = annotate.c blockframe.c breakpoint.c buildsym.c c-lang.c \
|
|
|
|
c-typeprint.c c-valprint.c ch-lang.c ch-typeprint.c \
|
1997-04-07 08:08:20 +00:00
|
|
|
ch-valprint.c coffread.c command.c complaints.c copying.c \
|
1997-01-15 22:37:09 +00:00
|
|
|
corelow.c cp-valprint.c \
|
|
|
|
dcache.c dbxread.c demangle.c dwarfread.c \
|
1994-12-30 23:27:33 +00:00
|
|
|
elfread.c environ.c eval.c exec.c expprint.c \
|
1997-04-07 08:08:20 +00:00
|
|
|
findvar.c fork-child.c freebsd-nat.c gdbtypes.c \
|
1997-01-15 22:37:09 +00:00
|
|
|
i386-tdep.c infcmd.c inflow.c infptrace.c \
|
1994-12-30 23:27:33 +00:00
|
|
|
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 \
|
1995-01-06 21:26:39 +00:00
|
|
|
printcmd.c remote.c remote-utils.c solib.c source.c \
|
1994-12-30 23:27:33 +00:00
|
|
|
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\
|
1997-03-29 10:33:13 +00:00
|
|
|
c-exp.c f-exp.c m2-exp.c i387-tdep.c \
|
1997-01-15 22:37:09 +00:00
|
|
|
kvm-fbsd.c bcache.c \
|
|
|
|
corefile.c ch-exp.c f-lang.c scm-exp.c scm-lang.c \
|
|
|
|
scm-valprint.c f-typeprint.c f-valprint.c nlmread.c \
|
|
|
|
callback.c
|
|
|
|
SRCS+= i386-dis.c dis-buf.c disassemble.c
|
1994-06-10 13:42:18 +00:00
|
|
|
|
1997-01-15 22:37:09 +00:00
|
|
|
CFLAGS+= -I$(.CURDIR) -I${DESTDIR}/usr/include/readline -I$(.CURDIR)/../bfd
|
|
|
|
# use phkmalloc
|
|
|
|
CFLAGS+= -DNO_MMALLOC
|
|
|
|
# uncomment the next line if you want to debug gdb
|
|
|
|
#CFLAGS+= -g
|
1994-06-10 13:42:18 +00:00
|
|
|
|
1997-03-29 10:33:13 +00:00
|
|
|
CLEANFILES+= c-exp.c f-exp.c m2-exp.c y.tab.h
|
|
|
|
beforedepend: c-exp.c f-exp.c m2-exp.c
|
|
|
|
|
1997-01-15 22:37:09 +00:00
|
|
|
.if exists(${.OBJDIR}/../bfd)
|
|
|
|
LDADD+= -L${.OBJDIR}/../bfd -lbfd
|
|
|
|
DPADD+= ${.OBJDIR}/../bfd/libbfd.a
|
|
|
|
.else
|
|
|
|
LDADD+= -L${.CURDIR}/../bfd/ -lbfd
|
|
|
|
DPADD+= ${.CURDIR}/../bfd/libbfd.a
|
|
|
|
.endif
|
1994-06-10 13:42:18 +00:00
|
|
|
|
1997-01-15 22:37:09 +00:00
|
|
|
DPADD+= ${LIBREADLINE} ${LIBGNUREGEX}
|
|
|
|
LDADD+= -lreadline -lgnuregex
|
1994-06-10 13:42:18 +00:00
|
|
|
|
1996-06-24 04:26:21 +00:00
|
|
|
.if exists(${.OBJDIR}/../libiberty)
|
|
|
|
LDADD+= -L${.OBJDIR}/../libiberty -liberty
|
|
|
|
DPADD+= ${.OBJDIR}/../libiberty/libiberty.a
|
1994-06-10 13:42:18 +00:00
|
|
|
.else
|
|
|
|
LDADD+= -L${.CURDIR}/../libiberty/ -liberty
|
|
|
|
DPADD+= ${.CURDIR}/../libiberty/libiberty.a
|
|
|
|
.endif
|
|
|
|
|
1997-01-15 22:37:09 +00:00
|
|
|
DPADD+= ${LIBTERMCAP}
|
1997-01-17 06:32:35 +00:00
|
|
|
LDADD+= -ltermcap
|
1994-06-10 13:42:18 +00:00
|
|
|
|
1997-01-15 22:37:09 +00:00
|
|
|
.if exists(${.OBJDIR}/../libiberty)
|
|
|
|
LDADD+= -L${.OBJDIR}/../libiberty -liberty
|
|
|
|
DPADD+= ${.OBJDIR}/../libiberty/libiberty.a
|
1994-06-10 13:42:18 +00:00
|
|
|
.else
|
1997-01-15 22:37:09 +00:00
|
|
|
LDADD+= -L${.CURDIR}/../libiberty/ -liberty
|
|
|
|
DPADD+= ${.CURDIR}/../libiberty/libiberty.a
|
1994-06-10 13:42:18 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|