1 2.include "${SRCTOP}/lib/clang/lldb.pre.mk" 3 4PACKAGE= lldb 5PROG_CXX= lldb 6 7CFLAGS+= -I${LLDB_SRCS}/include 8CFLAGS+= -I${.OBJDIR} 9 10SRCDIR= lldb/tools/driver 11SRCS+= Driver.cpp 12 13.include "${SRCTOP}/lib/clang/clang.build.mk" 14 15LIBDEPS+= lldb 16LIBDEPS+= clang 17LIBDEPS+= llvm 18 19.for lib in ${LIBDEPS} 20DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a 21LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a 22.endfor 23 24INCFILE= Options.inc 25TDFILE= ${LLVM_BASE}/${SRCDIR}/Options.td 26GENOPT= -gen-opt-parser-defs 27${INCFILE}: ${TDFILE} 28 ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ 29 -o ${.TARGET} ${TDFILE} 30TGHDRS+= ${INCFILE} 31 32DEPENDFILES+= ${TGHDRS:C/$/.d/} 33DPSRCS+= ${TGHDRS} 34CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 35 36LIBADD= tinfow 37LIBADD+= edit 38LIBADD+= execinfo 39LIBADD+= kvm 40LIBADD+= lua 41LIBADD+= lzma 42LIBADD+= ncursesw 43LIBADD+= panelw 44LIBADD+= pthread 45LIBADD+= z 46LIBADD+= zstd 47 48.include <bsd.prog.mk> 49