xref: /freebsd/usr.bin/clang/llvm-symbolizer/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1021385abSAlex Richardson.include <src.opts.mk>
2021385abSAlex Richardson
3c369979cSDimitry AndricPROG_CXX=	llvm-symbolizer
4bd74205dSDimitry AndricMAN=		llvm-symbolizer.1 llvm-addr2line.1
5c369979cSDimitry Andric
60b57cec5SDimitry AndricSRCDIR=		llvm/tools/llvm-symbolizer
7*5f757f3fSDimitry AndricSRCS+=		llvm-symbolizer-driver.cpp
8986e05bcSDimitry AndricSRCS+=		llvm-symbolizer.cpp
9c369979cSDimitry Andric
10e8d8bef9SDimitry Andric.include "${SRCTOP}/lib/clang/llvm.pre.mk"
11e8d8bef9SDimitry Andric
12e8d8bef9SDimitry AndricCFLAGS+=	-I${.OBJDIR}
13e8d8bef9SDimitry Andric
14d8ed7fa3SDimitry AndricINCFILE=	Opts.inc
15d8ed7fa3SDimitry AndricTDFILE=		${LLVM_BASE}/${SRCDIR}/Opts.td
16d8ed7fa3SDimitry AndricGENOPT=		-gen-opt-parser-defs
17d8ed7fa3SDimitry Andric${INCFILE}: ${TDFILE}
18d8ed7fa3SDimitry Andric	${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
19d8ed7fa3SDimitry Andric	    -o ${.TARGET} ${TDFILE}
20d8ed7fa3SDimitry AndricTGHDRS+=	${INCFILE}
21e8d8bef9SDimitry Andric
22e8d8bef9SDimitry AndricDEPENDFILES+=	${TGHDRS:C/$/.d/}
23e8d8bef9SDimitry AndricDPSRCS+=	${TGHDRS}
24e8d8bef9SDimitry AndricCLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
25e8d8bef9SDimitry Andric
26bd74205dSDimitry AndricLINKS+=		${BINDIR}/llvm-symbolizer ${BINDIR}/llvm-addr2line
27bd74205dSDimitry Andric
28021385abSAlex Richardson.if ${MK_LLVM_BINUTILS} != "no"
2941df1d60SEd MasteLINKS+=		${BINDIR}/llvm-symbolizer ${BINDIR}/addr2line
3041df1d60SEd MasteMLINKS+=	llvm-addr2line.1 addr2line.1
31021385abSAlex Richardson.endif
32021385abSAlex Richardson
33986e05bcSDimitry Andric.include "../llvm.prog.mk"
34