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 25LLVM_TBLGEN?= llvm-tblgen 26INCFILE= Options.inc 27TDFILE= ${LLDB_SRCS}/tools/driver/Options.td 28GENOPT= -gen-opt-parser-defs 29${INCFILE}: ${TDFILE} 30 ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ 31 -o ${.TARGET} ${TDFILE} 32TGHDRS+= ${INCFILE} 33 34DPSRCS+= ${TGHDRS} 35CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 36 37LIBADD+= edit 38LIBADD+= execinfo 39LIBADD+= lzma 40LIBADD+= ncursesw 41LIBADD+= panel 42LIBADD+= pthread 43LIBADD+= z 44 45.include <bsd.prog.mk> 46