2018-05-01 22:59:42 +03:00
|
|
|
# $NetBSD: Makefile,v 1.10 2018/05/01 19:59:46 christos Exp $
|
2013-01-24 17:35:52 +04:00
|
|
|
|
2018-05-01 22:59:42 +03:00
|
|
|
.include <bsd.hostinit.mk>
|
2013-01-27 23:21:12 +04:00
|
|
|
|
2010-02-25 00:34:57 +03:00
|
|
|
HOSTPROGNAME= ${_TOOL_PREFIX}ctfmerge
|
|
|
|
HOST_SRCDIR= external/cddl/osnet/usr.bin/ctfmerge
|
|
|
|
|
2014-03-09 21:12:03 +04:00
|
|
|
LIBELFTOOLCHAIN_DIR= ${.CURDIR}/../../external/bsd/elftoolchain/dist
|
|
|
|
LIBELF_DIR= ${LIBELFTOOLCHAIN_DIR}/libelf
|
|
|
|
LIBDWARF_DIR= ${LIBELFTOOLCHAIN_DIR}libdwarf
|
2010-02-25 00:34:57 +03:00
|
|
|
|
|
|
|
HOST_CPPFLAGS+= -I${OSNETDIR}/sys \
|
|
|
|
-I${OSNETDIR}/include \
|
|
|
|
-I${OPENSOLARIS_DISTDIR} \
|
|
|
|
-I${OPENSOLARIS_DISTDIR}/head \
|
|
|
|
-I${OPENSOLARIS_DISTDIR}/tools/ctf/common \
|
|
|
|
-I${OPENSOLARIS_DISTDIR}/tools/ctf/cvt \
|
|
|
|
-I${OPENSOLARIS_DISTDIR}/uts/common \
|
|
|
|
-I${LIBELF_DIR} \
|
|
|
|
-I${LIBDWARF_DIR}
|
|
|
|
|
|
|
|
HOST_CPPFLAGS+= -DHAVE_NBTOOL_CONFIG_H=1
|
|
|
|
|
|
|
|
OSNETDIR= ${.CURDIR}/../../external/cddl/osnet
|
|
|
|
OPENSOLARIS_DISTDIR= ${OSNETDIR}/dist
|
|
|
|
|
|
|
|
CTFOBJ!= cd ${.CURDIR}/../libctf && ${PRINTOBJDIR}
|
|
|
|
DWARFOBJ!= cd ${.CURDIR}/../libdwarf && ${PRINTOBJDIR}
|
|
|
|
ELFOBJ!= cd ${.CURDIR}/../libelf && ${PRINTOBJDIR}
|
|
|
|
LDADD+= -L${CTFOBJ} -lctf
|
|
|
|
LDADD+= -L${DWARFOBJ} -ldwarf
|
|
|
|
LDADD+= -L${ELFOBJ} -lelf
|
|
|
|
|
|
|
|
# need native pthread support
|
2016-01-28 00:18:28 +03:00
|
|
|
HOST_CFLAGS+= -pthread
|
2010-02-25 00:34:57 +03:00
|
|
|
|
|
|
|
.PATH: ${OPENSOLARIS_DISTDIR}/tools/ctf/common
|
|
|
|
.PATH: ${OPENSOLARIS_DISTDIR}/tools/ctf/cvt
|
|
|
|
|
2010-06-20 03:11:10 +04:00
|
|
|
.include "${.CURDIR}/../Makefile.nbincludes"
|
2010-02-25 00:34:57 +03:00
|
|
|
.include "${.CURDIR}/../Makefile.host"
|