xref: /freebsd/usr.bin/clang/llvm-symbolizer/Makefile (revision e8d8bef961a50d4dc22501cde4fb9fb0be1b2532)
1c369979cSDimitry Andric# $FreeBSD$
2c369979cSDimitry Andric
3c369979cSDimitry AndricPROG_CXX=	llvm-symbolizer
4bd74205dSDimitry AndricMAN=		llvm-symbolizer.1 llvm-addr2line.1
5c369979cSDimitry Andric
60b57cec5SDimitry AndricSRCDIR=		llvm/tools/llvm-symbolizer
7986e05bcSDimitry AndricSRCS+=		llvm-symbolizer.cpp
8c369979cSDimitry Andric
9*e8d8bef9SDimitry Andric.include "${SRCTOP}/lib/clang/llvm.pre.mk"
10*e8d8bef9SDimitry Andric
11*e8d8bef9SDimitry AndricCFLAGS+=	-I${.OBJDIR}
12*e8d8bef9SDimitry Andric
13*e8d8bef9SDimitry AndricINCFILE=	Opts.inc
14*e8d8bef9SDimitry AndricTDFILE=		${LLVM_SRCS}/tools/llvm-symbolizer/Opts.td
15*e8d8bef9SDimitry AndricGENOPT=		-gen-opt-parser-defs
16*e8d8bef9SDimitry Andric${INCFILE}: ${TDFILE}
17*e8d8bef9SDimitry Andric	${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
18*e8d8bef9SDimitry Andric	    -o ${.TARGET} ${TDFILE}
19*e8d8bef9SDimitry AndricTGHDRS+=	${INCFILE}
20*e8d8bef9SDimitry Andric
21*e8d8bef9SDimitry AndricDEPENDFILES+=	${TGHDRS:C/$/.d/}
22*e8d8bef9SDimitry AndricDPSRCS+=	${TGHDRS}
23*e8d8bef9SDimitry AndricCLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
24*e8d8bef9SDimitry Andric
25dbc595b2SDimitry AndricLIBADD+=	z
26c369979cSDimitry Andric
27bd74205dSDimitry AndricLINKS+=		${BINDIR}/llvm-symbolizer ${BINDIR}/llvm-addr2line
28bd74205dSDimitry Andric
29986e05bcSDimitry Andric.include "../llvm.prog.mk"
30