904d674c67213a5288e762af70f1d6d5dc18c011
[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=  ${LIBEDIT} ${LIBKVM} ${LIBTERMCAP} ${LIBM} ${LIBZ}
10 DPADD+= ${GDBLIBS}
11 LDADD=  -L../libgdb -lgdb -L../libbfd -lbfd -L../libopcodes -lopcodes
12 LDADD+= -L../libiberty -liberty -L../libdecnumber -ldecnumber
13 LDADD+= -ledit -lkvm -ltermcap -lm -lz
14
15 WARNS?= 2
16
17 .include <bsd.prog.mk>
18
19 .PATH:  ${BASEDIR}/gdb