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