36 lines
846 B
Makefile
36 lines
846 B
Makefile
# $NetBSD: Makefile,v 1.3 2001/12/31 23:04:12 thorpej Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.if defined(USE_NEW_TOOLCHAIN) && ${MKBFD} != "no"
|
|
TOP= ${.CURDIR}/../..
|
|
DIST= ${TOP}/dist/toolchain
|
|
|
|
PROG= dbsym
|
|
MAN= dbsym.8
|
|
|
|
CPPFLAGS+= -I${BFDDIR} -I${DIST}/bfd -I${DIST}/binutils -I${DIST}/include \
|
|
-DHAVE_CONFIG_H
|
|
|
|
DPADD+= ${BFDDIR}/libbfd.a
|
|
LDADD+= -L${BFDDIR} -lbfd
|
|
|
|
DPADD+= ${IBERTYDIR}/libiberty.a
|
|
LDADD+= -L${IBERTYDIR} -liberty
|
|
|
|
.ifndef HOSTPROG
|
|
.include "${TOP}/lib/libbfd/arch/${MACHINE_ARCH}/defs.mk"
|
|
|
|
BFDDIR!= cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}
|
|
IBERTYDIR!= cd ${TOP}/lib/libiberty && ${PRINTOBJDIR}
|
|
|
|
CPPFLAGS+= -I${TOP}/lib/libbfd/arch/${MACHINE_ARCH} ${G_INCLUDES}
|
|
LDADD+= -lintl
|
|
DPADD+= ${LIBINTL}
|
|
.endif # HOSTPROG
|
|
.endif # USE_NEW_TOOLCHAIN && MKBFD != no
|
|
|
|
.ifndef HOSTPROG
|
|
.include <bsd.prog.mk>
|
|
.endif # HOSTPROG
|