652a974885
Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24266
47 lines
891 B
Makefile
47 lines
891 B
Makefile
# $FreeBSD$
|
|
|
|
.include "${SRCTOP}/lib/clang/lldb.pre.mk"
|
|
|
|
PACKAGE= lldb
|
|
PROG_CXX= lldb
|
|
|
|
CFLAGS+= -I${LLDB_SRCS}/include
|
|
CFLAGS+= -I${.OBJDIR}
|
|
|
|
SRCDIR= lldb/tools/driver
|
|
SRCS+= Driver.cpp
|
|
|
|
.include "${SRCTOP}/lib/clang/clang.build.mk"
|
|
|
|
LIBDEPS+= lldb
|
|
LIBDEPS+= clang
|
|
LIBDEPS+= llvm
|
|
|
|
.for lib in ${LIBDEPS}
|
|
DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
|
|
LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
|
|
.endfor
|
|
|
|
LLVM_TBLGEN?= llvm-tblgen
|
|
INCFILE= Options.inc
|
|
TDFILE= ${LLDB_SRCS}/tools/driver/Options.td
|
|
GENOPT= -gen-opt-parser-defs
|
|
${INCFILE}: ${TDFILE}
|
|
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
|
|
-o ${.TARGET} ${TDFILE}
|
|
TGHDRS+= ${INCFILE}
|
|
|
|
DPSRCS+= ${TGHDRS}
|
|
CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/}
|
|
|
|
LIBADD+= edit
|
|
LIBADD+= execinfo
|
|
LIBADD+= lua
|
|
LIBADD+= lzma
|
|
LIBADD+= ncursesw
|
|
LIBADD+= panel
|
|
LIBADD+= pthread
|
|
LIBADD+= z
|
|
|
|
.include <bsd.prog.mk>
|