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