xref: /freebsd/cddl/usr.bin/ctfconvert/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1013953ebSAlan Somers.include <src.opts.mk>
2013953ebSAlan Somers
3acc37ca1SEnji Cooper.PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/common
4acc37ca1SEnji Cooper.PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/cvt
5d30b4ed2SJohn Birrell
6*f0408cd9SEmmanuel VadotPACKAGE=	ctf-tools
7d30b4ed2SJohn BirrellPROG=		ctfconvert
8d30b4ed2SJohn BirrellSRCS=		alist.c \
9d30b4ed2SJohn Birrell		ctf.c \
10d30b4ed2SJohn Birrell		ctfconvert.c \
11d30b4ed2SJohn Birrell		dwarf.c \
12d30b4ed2SJohn Birrell		fixup_tdescs.c \
13d30b4ed2SJohn Birrell		hash.c \
14d30b4ed2SJohn Birrell		iidesc.c \
15d30b4ed2SJohn Birrell		input.c \
16d30b4ed2SJohn Birrell		list.c \
17d30b4ed2SJohn Birrell		memory.c \
18d30b4ed2SJohn Birrell		merge.c \
19d30b4ed2SJohn Birrell		output.c \
20d30b4ed2SJohn Birrell		stack.c \
21d30b4ed2SJohn Birrell		strtab.c \
22d30b4ed2SJohn Birrell		symbol.c \
23d30b4ed2SJohn Birrell		tdata.c \
24d30b4ed2SJohn Birrell		traverse.c \
25d30b4ed2SJohn Birrell		util.c
26d30b4ed2SJohn Birrell
279e5787d2SMatt MacyCFLAGS+= -DIN_BASE
289e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
299e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
309e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
319e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
32acc37ca1SEnji CooperCFLAGS+=	-I${SRCTOP}/sys/cddl/compat/opensolaris \
33acc37ca1SEnji Cooper		-I${SRCTOP}/cddl/compat/opensolaris/include \
34d30b4ed2SJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR} \
35d30b4ed2SJohn Birrell		-I${OPENSOLARIS_SYS_DISTDIR} \
36d30b4ed2SJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/head \
37d30b4ed2SJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/common \
38d30b4ed2SJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/cvt \
39d30b4ed2SJohn Birrell		-I${OPENSOLARIS_SYS_DISTDIR}/uts/common
409e5787d2SMatt MacyCFLAGS+= -DHAVE_ISSETUGID
41d30b4ed2SJohn Birrell
429e5787d2SMatt MacyLIBADD=		spl dwarf elf z pthread
43d30b4ed2SJohn Birrell
44013953ebSAlan SomersHAS_TESTS=
45013953ebSAlan SomersSUBDIR.${MK_TESTS}+= tests
46013953ebSAlan Somers
47d30b4ed2SJohn Birrell.include <bsd.prog.mk>
48