2017-01-04 21:47:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2020-11-03 19:57:28 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2017-01-04 21:47:39 +00:00
|
|
|
PROG_CXX= llvm-cxxfilt
|
|
|
|
|
2019-12-20 19:53:05 +00:00
|
|
|
SRCDIR= llvm/tools/llvm-cxxfilt
|
2017-01-04 21:47:39 +00:00
|
|
|
SRCS+= llvm-cxxfilt.cpp
|
|
|
|
|
2022-07-04 19:20:19 +00:00
|
|
|
CFLAGS.llvm-cxxfilt.cpp+= -Dllvm_cxxfilt_main=main
|
|
|
|
|
2021-08-22 19:00:43 +00:00
|
|
|
.include "${SRCTOP}/lib/clang/llvm.pre.mk"
|
|
|
|
|
|
|
|
CFLAGS+= -I${.OBJDIR}
|
|
|
|
|
2023-03-29 18:29:48 +00:00
|
|
|
INCFILE= Opts.inc
|
|
|
|
TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td
|
|
|
|
GENOPT= -gen-opt-parser-defs
|
|
|
|
${INCFILE}: ${TDFILE}
|
|
|
|
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
|
|
|
|
-o ${.TARGET} ${TDFILE}
|
|
|
|
TGHDRS+= ${INCFILE}
|
2021-08-22 19:00:43 +00:00
|
|
|
|
|
|
|
DEPENDFILES+= ${TGHDRS:C/$/.d/}
|
|
|
|
DPSRCS+= ${TGHDRS}
|
|
|
|
CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/}
|
|
|
|
|
2020-11-03 19:57:28 +00:00
|
|
|
.if ${MK_LLVM_CXXFILT} != "no"
|
|
|
|
LINKS= ${BINDIR}/llvm-cxxfilt ${BINDIR}/c++filt
|
|
|
|
MLINKS= llvm-cxxfilt.1 c++filt.1
|
|
|
|
.endif
|
|
|
|
|
2017-01-04 21:47:39 +00:00
|
|
|
.include "../llvm.prog.mk"
|