xref: /freebsd/cddl/usr.bin/ctfmerge/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1acc37ca1SEnji Cooper.PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/common
2acc37ca1SEnji Cooper.PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/cvt
3d30b4ed2SJohn Birrell
4*f0408cd9SEmmanuel VadotPACKAGE=	ctf-tools
5d30b4ed2SJohn BirrellPROG=		ctfmerge
6d30b4ed2SJohn BirrellSRCS=		alist.c \
7d30b4ed2SJohn Birrell		barrier.c \
8d30b4ed2SJohn Birrell		ctf.c \
9d30b4ed2SJohn Birrell		ctfmerge.c \
10d30b4ed2SJohn Birrell		fifo.c \
11d30b4ed2SJohn Birrell		hash.c \
12d30b4ed2SJohn Birrell		iidesc.c \
13d30b4ed2SJohn Birrell		input.c \
14d30b4ed2SJohn Birrell		list.c \
15d30b4ed2SJohn Birrell		memory.c \
16d30b4ed2SJohn Birrell		merge.c \
17d30b4ed2SJohn Birrell		output.c \
18d30b4ed2SJohn Birrell		strtab.c \
19d30b4ed2SJohn Birrell		symbol.c \
20d30b4ed2SJohn Birrell		tdata.c \
21d30b4ed2SJohn Birrell		traverse.c \
22d30b4ed2SJohn Birrell		util.c
23d30b4ed2SJohn Birrell
244ef20db2SUlrich SpörleinWARNS?=		1
25d30b4ed2SJohn Birrell
269e5787d2SMatt Macy
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 elf z pthread
43d30b4ed2SJohn Birrell
44d30b4ed2SJohn Birrell.include <bsd.prog.mk>
45