1# $NetBSD: Makefile,v 1.1 2010/02/24 21:34:57 darran Exp $ 2 3.include <bsd.own.mk> 4 5HOSTPROGNAME= ${_TOOL_PREFIX}ctfconvert 6HOST_SRCDIR= external/cddl/osnet/usr.bin/ctfconvert 7#HOST_SRCS= alist.c \ 8 ctf.c \ 9 ctfconvert.c \ 10 dwarf.c \ 11 fixup_tdescs.c \ 12 hash.c \ 13 iidesc.c \ 14 input.c \ 15 list.c \ 16 memory.c \ 17 merge.c \ 18 output.c \ 19 st_parse.c \ 20 stabs.c \ 21 stack.c \ 22 strtab.c \ 23 symbol.c \ 24 tdata.c \ 25 traverse.c \ 26 util.c 27 28LIBELF_DIR= ${.CURDIR}/../../external/bsd/libelf/dist 29LIBDWARF_DIR= ${.CURDIR}/../../external/bsd/libdwarf/dist 30 31HOST_CPPFLAGS+= -I${OSNETDIR}/sys \ 32 -I${OSNETDIR}/include \ 33 -I${OPENSOLARIS_DISTDIR} \ 34 -I${OPENSOLARIS_DISTDIR}/head \ 35 -I${OPENSOLARIS_DISTDIR}/tools/ctf/common \ 36 -I${OPENSOLARIS_DISTDIR}/tools/ctf/cvt \ 37 -I${OPENSOLARIS_DISTDIR}/uts/common \ 38 -I${LIBELF_DIR} \ 39 -I${LIBDWARF_DIR} 40 41HOST_CPPFLAGS+= -DHAVE_NBTOOL_CONFIG_H=1 42 43OSNETDIR= ${.CURDIR}/../../external/cddl/osnet 44OPENSOLARIS_DISTDIR= ${OSNETDIR}/dist 45 46CTFOBJ!= cd ${.CURDIR}/../libctf && ${PRINTOBJDIR} 47DWARFOBJ!= cd ${.CURDIR}/../libdwarf && ${PRINTOBJDIR} 48ELFOBJ!= cd ${.CURDIR}/../libelf && ${PRINTOBJDIR} 49LDADD+= -L${CTFOBJ} -lctf 50LDADD+= -L${DWARFOBJ} -ldwarf 51LDADD+= -L${ELFOBJ} -lelf 52 53.PATH: ${OPENSOLARIS_DISTDIR}/tools/ctf/common 54.PATH: ${OPENSOLARIS_DISTDIR}/tools/ctf/cvt 55 56.include "${.CURDIR}/../Makefile.nbincludes" 57.include "${.CURDIR}/../Makefile.host" 58