NetBSD/gnu/usr.bin/gdb6/gdbtui/Makefile

79 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2007/02/19 18:26:22 chs Exp $
.include "../Makefile.inc"
TOP= ${NETBSDSRCDIR}/gnu
DIST= ${TOP}/dist/gdb6
.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
PROG= gdbtui
SRCS= tui-main.c
CPPFLAGS= -I${.CURDIR} \
-I${.CURDIR}/../arch/${MACHINE_ARCH} \
-I${DIST}/gdb \
-I${DIST}/gdb/config \
-I${DIST}/include/opcode \
-I${DIST} \
-I${.CURDIR}/../bfd/arch/${MACHINE_ARCH} \
-I${DIST}/bfd \
-I${DIST}/include \
${GCPPFLAGS:M-D*}
NOMAN= # defined
.include "../../Makefile.inc"
.include <bsd.prog.mk>
LIBOPCODESDIR!= cd ${.CURDIR}/../opcodes && ${PRINTOBJDIR}
LIBBFDDIR!= cd ${.CURDIR}/../bfd && ${PRINTOBJDIR}
LIBIBERTYDIR!= cd ${.CURDIR}/../libiberty && ${PRINTOBJDIR}
LIBGDBDIR!= cd ${.CURDIR}/../libgdb && ${PRINTOBJDIR}
.if ${USE_LIBEDIT} == yes
LIBEDIT=-ledit
.else
LIBREADLINEDIR!= cd ${.CURDIR}/../readline && ${PRINTOBJDIR}
LIBEDIT= -L${LIBREADLINEDIR} -lreadline
.endif
LDADD+= -L${LIBGDBDIR} -lgdb
DPADD+= ${LIBGDBDIR}/libgdb.a
# Simulator support
.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == powerpcle
SIMOBJ!= cd ${.CURDIR}/../sim/ppc && ${PRINTOBJDIR}
LDADD+= -L${SIMOBJ} -lsim
DPADD+= ${SIMOBJ}/libsim.a
.elif ${MACHINE_CPU} == xxmips
SIMOBJ!= cd ${.CURDIR}/../sim/mips && ${PRINTOBJDIR}
LDADD+= -L${SIMOBJ} -lsim
DPADD+= ${SIMOBJ}/libsim.a
.endif
LDADD+= -L${LIBOPCODESDIR} -lopcodes \
-L${LIBBFDDIR} -lbfd \
${LIBEDIT} \
-ltermcap \
-L${LIBIBERTYDIR} -liberty
DPADD+= ${LIBOPCODESDIR}/libopcodes.a \
${LIBBFDDIR}/libbfd.a \
${LIBEDIT} \
${LIBTERMCAP} \
${LIBIBERTYDIR}/libiberty.a
LDADD+= -lcurses -lintl -lm -lkvm
DPADD+= ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
.if ${SRCS:Mnbsd-thread.c} != ""
LDADD+= -lpthread_dbg
.endif
.PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${MACHINE_ARCH}