1 # $NetBSD: Makefile,v 1.2 2006/05/29 19:20:05 nathanw 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} \
26 .
include "../../Makefile.inc"
27 .
include <bsd.prog.mk
>
32 LIBOPCODESDIR
!= cd
${.CURDIR
}/..
/opcodes
&& ${PRINTOBJDIR}
33 LIBBFDDIR
!= cd
${.CURDIR
}/..
/bfd
&& ${PRINTOBJDIR}
34 LIBIBERTYDIR
!= cd
${.CURDIR
}/..
/libiberty
&& ${PRINTOBJDIR}
35 LIBGDBDIR
!= cd
${.CURDIR
}/..
/libgdb
&& ${PRINTOBJDIR}
37 .if
${USE_LIBEDIT} == yes
40 LIBREADLINEDIR
!= cd
${.CURDIR
}/..
/readline
&& ${PRINTOBJDIR}
41 LIBEDIT
= -L
${LIBREADLINEDIR} -lreadline
44 LDADD
+= -L
${LIBGDBDIR} -lgdb
45 DPADD
+= ${LIBGDBDIR}/libgdb.a
48 .if
${MACHINE_ARCH} == powerpc ||
${MACHINE_ARCH} == powerpcle
49 SIMOBJ
!= cd
${.CURDIR
}/..
/sim
/ppc
&& ${PRINTOBJDIR}
50 LDADD
+= -L
${SIMOBJ} -lsim
51 DPADD
+= ${SIMOBJ}/libsim.a
52 .elif
${MACHINE_CPU} == xxmips
53 SIMOBJ
!= cd
${.CURDIR
}/..
/sim
/mips
&& ${PRINTOBJDIR}
54 LDADD
+= -L
${SIMOBJ} -lsim
55 DPADD
+= ${SIMOBJ}/libsim.a
58 LDADD
+= -L
${LIBOPCODESDIR} -lopcodes \
59 -L
${LIBBFDDIR} -lbfd \
62 -L
${LIBIBERTYDIR} -liberty
64 DPADD
+= ${LIBOPCODESDIR}/libopcodes.a \
65 ${LIBBFDDIR}/libbfd.a \
68 ${LIBIBERTYDIR}/libiberty.a
70 LDADD
+= -lcurses
-lintl
-lm
-lkvm
71 DPADD
+= ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
73 .if
${SRCS
:Mnbsd-thread.c
} != ""
77 .PATH
: ${DIST}/gdb
${DIST}/gdb
/mi
${DIST}/gdb
/cli
${DIST}/gdb
/tui \
78 ${DIST}/gdb
/signals
${DIST}/gdb
/doc
${.CURDIR
}/..
/arch
/${MACHINE_ARCH}