Sync usage with man page.
[netbsd-mini2440.git] / gnu / usr.bin / gdb6 / gdbtui / Makefile
blob076d422dabbd23b56357e04f3ac7012f394c1b61
1 # $NetBSD: Makefile,v 1.2 2006/05/29 19:20:05 nathanw Exp $
3 .include "../Makefile.inc"
5 TOP= ${NETBSDSRCDIR}/gnu
6 DIST= ${TOP}/dist/gdb6
8 .include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
10 PROG= gdbtui
12 SRCS= tui-main.c
13 CPPFLAGS= -I${.CURDIR} \
14 -I${.CURDIR}/../arch/${MACHINE_ARCH} \
15 -I${DIST}/gdb \
16 -I${DIST}/gdb/config \
17 -I${DIST}/include/opcode \
18 -I${DIST} \
19 -I${.CURDIR}/../bfd/arch/${MACHINE_ARCH} \
20 -I${DIST}/bfd \
21 -I${DIST}/include \
22 ${GCPPFLAGS:M-D*}
24 NOMAN= # defined
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
38 LIBEDIT=-ledit
39 .else
40 LIBREADLINEDIR!= cd ${.CURDIR}/../readline && ${PRINTOBJDIR}
41 LIBEDIT= -L${LIBREADLINEDIR} -lreadline
42 .endif
44 LDADD+= -L${LIBGDBDIR} -lgdb
45 DPADD+= ${LIBGDBDIR}/libgdb.a
47 # Simulator support
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
56 .endif
58 LDADD+= -L${LIBOPCODESDIR} -lopcodes \
59 -L${LIBBFDDIR} -lbfd \
60 ${LIBEDIT} \
61 -ltermcap \
62 -L${LIBIBERTYDIR} -liberty
64 DPADD+= ${LIBOPCODESDIR}/libopcodes.a \
65 ${LIBBFDDIR}/libbfd.a \
66 ${LIBEDIT} \
67 ${LIBTERMCAP} \
68 ${LIBIBERTYDIR}/libiberty.a
70 LDADD+= -lcurses -lintl -lm -lkvm
71 DPADD+= ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
73 .if ${SRCS:Mnbsd-thread.c} != ""
74 LDADD+= -lpthread_dbg
75 .endif
77 .PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
78 ${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${MACHINE_ARCH}