1 # $NetBSD: Makefile,v 1.6 2007/01/12 13:24:30 skrll Exp $
3 .
include "../Makefile.inc"
5 TOP
= ${NETBSDSRCDIR}/gnu
8 .
include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
13 CPPFLAGS
= -I
${.CURDIR
} \
14 -I
${.CURDIR
}/..
/arch
/${MACHINE_ARCH} \
16 -I
${DIST}/gdb
/config \
17 -I
${DIST}/include/opcode \
19 -I
${.CURDIR
}/..
/bfd
/arch
/${MACHINE_ARCH} \
24 TEXINFO
= gdb.texinfo gdbint.texinfo stabs.texinfo
25 INFOFLAGS
= -I
${DIST}/gdb
/doc
-I
${DIST}/gdb
/mi \
26 -I
${DIST}/readline
/doc
-I
${.CURDIR
}/..
28 .
include "../../Makefile.inc"
29 .
include <bsd.
info.mk
>
31 LIBOPCODESDIR
!= cd
${.CURDIR
}/..
/opcodes
&& ${PRINTOBJDIR}
32 LIBBFDDIR
!= cd
${.CURDIR
}/..
/bfd
&& ${PRINTOBJDIR}
33 LIBIBERTYDIR
!= cd
${.CURDIR
}/..
/libiberty
&& ${PRINTOBJDIR}
34 LIBGDBDIR
!= cd
${.CURDIR
}/..
/libgdb
&& ${PRINTOBJDIR}
36 .if
${USE_LIBEDIT} == yes
40 LIBRLDIR
!= cd
${.CURDIR
}/..
/readline
&& ${PRINTOBJDIR}
41 LIBRL
= -L
${LIBRLDIR} -lreadline
42 LIBRLDP
= ${LIBRLDIR}/libreadline.a
45 LDADD
+= -L
${LIBGDBDIR} -lgdb
46 DPADD
+= ${LIBGDBDIR}/libgdb.a
49 .if
${MACHINE_ARCH} == powerpc ||
${MACHINE_ARCH} == powerpcle || \
50 ${MACHINE_ARCH} == powerpc64
51 SIMOBJ
!= cd
${.CURDIR
}/..
/sim
/ppc
&& ${PRINTOBJDIR}
52 LDADD
+= -L
${SIMOBJ} -lsim
53 DPADD
+= ${SIMOBJ}/libsim.a
54 .elif
${MACHINE_CPU} == xxmips
55 SIMOBJ
!= cd
${.CURDIR
}/..
/sim
/mips
&& ${PRINTOBJDIR}
56 LDADD
+= -L
${SIMOBJ} -lsim
57 DPADD
+= ${SIMOBJ}/libsim.a
60 LDADD
+= -L
${LIBOPCODESDIR} -lopcodes \
61 -L
${LIBBFDDIR} -lbfd \
64 -L
${LIBIBERTYDIR} -liberty
66 DPADD
+= ${LIBOPCODESDIR}/libopcodes.a \
67 ${LIBBFDDIR}/libbfd.a \
70 ${LIBIBERTYDIR}/libiberty.a
72 LDADD
+= -lcurses
-lintl
-lm
-lkvm
73 DPADD
+= ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
75 .if
${SRCS
:Mnbsd-thread.c
} != ""
79 .
include <bsd.prog.mk
>
81 .PATH
: ${DIST}/gdb
${DIST}/gdb
/mi
${DIST}/gdb
/cli
${DIST}/gdb
/tui \
82 ${DIST}/gdb
/signals
${DIST}/gdb
/doc
${.CURDIR
}/..
/arch
/${MACHINE_ARCH}