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