1# $NetBSD: Makefile,v 1.1 2010/02/24 21:34:57 darran Exp $ 2 3.include <bsd.own.mk> 4 5HOSTPROGNAME= ${_TOOL_PREFIX}ctfmerge 6HOST_SRCDIR= external/cddl/osnet/usr.bin/ctfmerge 7 8LIBELF_DIR= ${.CURDIR}/../../external/bsd/libelf/dist 9LIBDWARF_DIR= ${.CURDIR}/../../external/bsd/libdwarf/dist 10 11HOST_CPPFLAGS+= -I${OSNETDIR}/sys \ 12 -I${OSNETDIR}/include \ 13 -I${OPENSOLARIS_DISTDIR} \ 14 -I${OPENSOLARIS_DISTDIR}/head \ 15 -I${OPENSOLARIS_DISTDIR}/tools/ctf/common \ 16 -I${OPENSOLARIS_DISTDIR}/tools/ctf/cvt \ 17 -I${OPENSOLARIS_DISTDIR}/uts/common \ 18 -I${LIBELF_DIR} \ 19 -I${LIBDWARF_DIR} 20 21HOST_CPPFLAGS+= -DHAVE_NBTOOL_CONFIG_H=1 22 23OSNETDIR= ${.CURDIR}/../../external/cddl/osnet 24OPENSOLARIS_DISTDIR= ${OSNETDIR}/dist 25 26CTFOBJ!= cd ${.CURDIR}/../libctf && ${PRINTOBJDIR} 27DWARFOBJ!= cd ${.CURDIR}/../libdwarf && ${PRINTOBJDIR} 28ELFOBJ!= cd ${.CURDIR}/../libelf && ${PRINTOBJDIR} 29LDADD+= -L${CTFOBJ} -lctf 30LDADD+= -L${DWARFOBJ} -ldwarf 31LDADD+= -L${ELFOBJ} -lelf 32 33# need native pthread support 34LDADD+= -lpthread 35 36.PATH: ${OPENSOLARIS_DISTDIR}/tools/ctf/common 37.PATH: ${OPENSOLARIS_DISTDIR}/tools/ctf/cvt 38 39.include "${.CURDIR}/../Makefile.nbincludes" 40.include "${.CURDIR}/../Makefile.host" 41