No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / usr.bin / gdb6 / gdb / Makefile
blob624a843b8e1fc5052ce13068e245c103ed242eea
1 # $NetBSD: Makefile,v 1.6 2007/01/12 13:24:30 skrll Exp $
3 .include "../Makefile.inc"
5 TOP= ${NETBSDSRCDIR}/gnu
6 DIST= ${TOP}/dist/gdb6
8 .include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
10 PROG= gdb
12 SRCS= gdb.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 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
37 LIBRL=-ledit
38 LIBRLDP=${LIBEDIT}
39 .else
40 LIBRLDIR!= cd ${.CURDIR}/../readline && ${PRINTOBJDIR}
41 LIBRL= -L${LIBRLDIR} -lreadline
42 LIBRLDP= ${LIBRLDIR}/libreadline.a
43 .endif
45 LDADD+= -L${LIBGDBDIR} -lgdb
46 DPADD+= ${LIBGDBDIR}/libgdb.a
48 # Simulator support
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
58 .endif
60 LDADD+= -L${LIBOPCODESDIR} -lopcodes \
61 -L${LIBBFDDIR} -lbfd \
62 ${LIBRL} \
63 -ltermcap \
64 -L${LIBIBERTYDIR} -liberty
66 DPADD+= ${LIBOPCODESDIR}/libopcodes.a \
67 ${LIBBFDDIR}/libbfd.a \
68 ${LIBRLDP} \
69 ${LIBTERMCAP} \
70 ${LIBIBERTYDIR}/libiberty.a
72 LDADD+= -lcurses -lintl -lm -lkvm
73 DPADD+= ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
75 .if ${SRCS:Mnbsd-thread.c} != ""
76 LDADD+= -lpthread_dbg
77 .endif
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}