kgdb - Add -D_KERNEL_STRUCTURES to access kernel structures properly.
[dragonfly.git] / gnu / usr.bin / gdb / kgdb / Makefile
CommitLineData
ba1f628b 1# $DragonFly: src/gnu/usr.bin/gdb/kgdb/Makefile,v 1.4 2008/07/30 01:48:14 corecode Exp $
8b6a428f
SS
2
3PROG= kgdb
4SRCS= kgdb.c kthr.c trgt.c trgt_${MACHINE_ARCH}.c
5
6CFLAGS+= -I${.OBJDIR}/../libgdb -I${.CURDIR}/../libgdb -I${BASEDIR}/include
7CFLAGS+= -I${BASEDIR}/bfd -I${BASEDIR}/gdb -I${BASEDIR}/gdb/config -I${.CURDIR}/../libbfd
ba1f628b 8CFLAGS+= -I${.OBJDIR}/../libbfd
503b7fb5 9CFLAGS+= -D_KERNEL_STRUCTURES
8b6a428f 10
7629c1f8 11DPADD= ${LIBEDIT} ${LIBKVM} ${LIBTERMCAP} ${LIBM}
8b6a428f 12DPADD+= ${GDBLIBS}
1e26cc8b
SS
13LDADD= -L../libgdb -lgdb -L../libbfd -lbfd -L../libopcodes -lopcodes
14LDADD+= -L../libiberty -liberty
7629c1f8 15LDADD+= -ledit -lkvm -ltermcap -lm
8b6a428f
SS
16
17.include <bsd.prog.mk>
18
19.PATH: ${BASEDIR}/gdb