1 2.include <src.opts.mk> 3 4.PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/common 5.PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/cvt 6 7PACKAGE= ctf-tools 8PROG= ctfconvert 9SRCS= alist.c \ 10 ctf.c \ 11 ctfconvert.c \ 12 dwarf.c \ 13 fixup_tdescs.c \ 14 hash.c \ 15 iidesc.c \ 16 input.c \ 17 list.c \ 18 memory.c \ 19 merge.c \ 20 output.c \ 21 stack.c \ 22 strtab.c \ 23 symbol.c \ 24 tdata.c \ 25 traverse.c \ 26 util.c 27 28CFLAGS+= -DIN_BASE 29CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 30CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 31CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 32CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 33CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris \ 34 -I${SRCTOP}/cddl/compat/opensolaris/include \ 35 -I${OPENSOLARIS_USR_DISTDIR} \ 36 -I${OPENSOLARIS_SYS_DISTDIR} \ 37 -I${OPENSOLARIS_USR_DISTDIR}/head \ 38 -I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/common \ 39 -I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/cvt \ 40 -I${OPENSOLARIS_SYS_DISTDIR}/uts/common 41CFLAGS+= -DHAVE_ISSETUGID 42 43LIBADD= spl dwarf elf z pthread 44 45HAS_TESTS= 46SUBDIR.${MK_TESTS}+= tests 47 48.include <bsd.prog.mk> 49