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 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 st_parse.c \ 22 stabs.c \ 23 stack.c \ 24 strtab.c \ 25 symbol.c \ 26 tdata.c \ 27 traverse.c \ 28 util.c 29 30CFLAGS+= -DIN_BASE 31CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 32CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 33CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 34CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 35CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris \ 36 -I${SRCTOP}/cddl/compat/opensolaris/include \ 37 -I${OPENSOLARIS_USR_DISTDIR} \ 38 -I${OPENSOLARIS_SYS_DISTDIR} \ 39 -I${OPENSOLARIS_USR_DISTDIR}/head \ 40 -I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/common \ 41 -I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/cvt \ 42 -I${OPENSOLARIS_SYS_DISTDIR}/uts/common 43CFLAGS+= -DHAVE_ISSETUGID 44 45LIBADD= spl dwarf elf z pthread 46 47HAS_TESTS= 48SUBDIR.${MK_TESTS}+= tests 49 50.include <bsd.prog.mk> 51