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

83 lines
2.0 KiB
Makefile
Raw Normal View History

2006-05-15 20:31:37 +04:00
# $NetBSD: Makefile,v 1.1 2006/05/15 16:31:37 nathanw Exp $
.include "../Makefile.inc"
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk)
TOP= ${NETBSDSRCDIR}/gnu
DIST= ${TOP}/dist/gdb6
.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
PROG= gdb
SRCS= gdb.c
CPPFLAGS= -I${.CURDIR} \
-I${.CURDIR}/../arch/${MACHINE_ARCH} \
-I${DIST}/gdb \
-I${DIST}/gdb/config \
-I${DIST}/include \
-I${DIST}/include/opcode \
-I${DIST}/bfd \
-I${.CURDIR}/../bfd \
-I${DIST}/gdb/tui \
-I${DIST} \
-DHAVE_CONFIG_H \
-DLOCALEDIR='"/usr/share/locale"' \
-DUSE_INCLUDED_REGEX \
-DNETBSD_CORE
LDADD= -lcurses -lintl -lm -lkvm
DPADD= ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
.if ${SRCS:Mnbsd-thread.c} != ""
LDADD+= -lpthread_dbg
.endif
TEXINFO= gdb.texinfo gdbint.texinfo stabs.texinfo
INFOFLAGS= -I${DIST}/gdb/doc -I${DIST}/gdb/mi \
-I${DIST}/readline/doc -I${.CURDIR}/..
.endif
.include "../../Makefile.inc"
.include <bsd.prog.mk>
.include <bsd.info.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
# PSIM support for PowerPC.
.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == powerpcle
PSIMOBJ!= cd ${.CURDIR}/../sim/ppc && ${PRINTOBJDIR}
LDADD+= -L${PSIMOBJ} -lsim
DPADD+= ${PSIMOBJ}/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
.PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${MACHINE_ARCH}