101d8757dSDimitry Andric.include "${SRCTOP}/lib/clang/lldb.pre.mk" 2e8f1392dSEd Maste 38930262bSDimitry AndricPACKAGE= lldb 4e8f1392dSEd MastePROG_CXX= lldb 5e8f1392dSEd Maste 6986e05bcSDimitry AndricCFLAGS+= -I${LLDB_SRCS}/include 76e3f21a2SDimitry AndricCFLAGS+= -I${.OBJDIR} 8e8f1392dSEd Maste 90b57cec5SDimitry AndricSRCDIR= lldb/tools/driver 10986e05bcSDimitry AndricSRCS+= Driver.cpp 11e8f1392dSEd Maste 12e1cd7682SDimitry Andric.include "${SRCTOP}/lib/clang/clang.build.mk" 13986e05bcSDimitry Andric 14986e05bcSDimitry AndricLIBDEPS+= lldb 15986e05bcSDimitry AndricLIBDEPS+= clang 16986e05bcSDimitry AndricLIBDEPS+= llvm 17986e05bcSDimitry Andric 18986e05bcSDimitry Andric.for lib in ${LIBDEPS} 19e1cd7682SDimitry AndricDPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a 20e1cd7682SDimitry AndricLDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a 21e8f1392dSEd Maste.endfor 22e8f1392dSEd Maste 23d8ed7fa3SDimitry AndricINCFILE= Options.inc 24d8ed7fa3SDimitry AndricTDFILE= ${LLVM_BASE}/${SRCDIR}/Options.td 25d8ed7fa3SDimitry AndricGENOPT= -gen-opt-parser-defs 26d8ed7fa3SDimitry Andric${INCFILE}: ${TDFILE} 27d8ed7fa3SDimitry Andric ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ 28d8ed7fa3SDimitry Andric -o ${.TARGET} ${TDFILE} 29d8ed7fa3SDimitry AndricTGHDRS+= ${INCFILE} 306e3f21a2SDimitry Andric 31fe6060f1SDimitry AndricDEPENDFILES+= ${TGHDRS:C/$/.d/} 326e3f21a2SDimitry AndricDPSRCS+= ${TGHDRS} 336e3f21a2SDimitry AndricCLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 346e3f21a2SDimitry Andric 35cbc83e37SBaptiste DaroussinLIBADD= tinfow 36986e05bcSDimitry AndricLIBADD+= edit 37a32f82c2SDimitry AndricLIBADD+= execinfo 3804eeddc0SDimitry AndricLIBADD+= kvm 39652a9748SEd MasteLIBADD+= lua 40f46f1d28SDimitry AndricLIBADD+= lzma 41986e05bcSDimitry AndricLIBADD+= ncursesw 42cbc83e37SBaptiste DaroussinLIBADD+= panelw 431ef7db0fSBryan DreweryLIBADD+= pthread 44986e05bcSDimitry AndricLIBADD+= z 45*bdd1243dSDimitry AndricLIBADD+= zstd 46e8f1392dSEd Maste 47986e05bcSDimitry Andric.include <bsd.prog.mk> 48