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= tinfow 38LIBADD+= edit 39LIBADD+= execinfo 40LIBADD+= lua 41LIBADD+= lzma 42LIBADD+= ncursesw 43LIBADD+= panelw 44LIBADD+= pthread 45LIBADD+= z 46 47.include <bsd.prog.mk> 48