gdb: Fix gdb -tui mode
[dragonfly.git] / gnu / usr.bin / gdb / kgdb / Makefile
1 PROG=   kgdb
2 SRCS=   kgdb.c kthr.c kld.c trgt.c trgt_${MACHINE_ARCH}.c
3
4 CFLAGS+= -I${.OBJDIR}/../libgdb -I${.CURDIR}/../libgdb -I${BASEDIR}/include
5 CFLAGS+= -I${BASEDIR}/bfd -I${BASEDIR}/gdb -I${BASEDIR}/gdb/config -I${.CURDIR}/../libbfd
6 CFLAGS+= -I${.OBJDIR}/../libbfd -I${BASEDIR}/gdb/common
7 CFLAGS+= -D_KERNEL_STRUCTURES
8
9 DPADD=  ${GDBLIBS}
10 DPADD+= ${LIBNCURSES} ${LIBM} ${LIBZ} ${LIBKVM}
11 LDADD=  -L../libgdb -lgdb
12 LDADD+= -L../libreadline -lreadline
13 LDADD+= -L../libopcodes -lopcodes
14 LDADD+= -L../libbfd -lbfd
15 LDADD+= -L../libiberty -liberty
16 LDADD+= -L../libdecnumber -ldecnumber
17 LDADD+= -lncurses -lm -lz -lkvm
18
19 WARNS?= 2
20
21 .include <bsd.prog.mk>
22
23 .PATH:  ${BASEDIR}/gdb