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 33${TGHDRS}: ${LLVM_TBLGEN_BIN} 34 35DEPENDFILES+= ${TGHDRS:C/$/.d/} 36DPSRCS+= ${TGHDRS} 37CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 38 39LIBADD= tinfow 40LIBADD+= edit 41LIBADD+= execinfo 42LIBADD+= kvm 43LIBADD+= lua 44LIBADD+= lzma 45LIBADD+= ncursesw 46LIBADD+= panelw 47LIBADD+= pthread 48LIBADD+= z 49 50.include <bsd.prog.mk> 51