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