1 2.include "${SRCTOP}/lib/clang/lldb.pre.mk" 3 4PACKAGE= lldb 5PROG_CXX= lldb-server 6 7CFLAGS+= -I${LLDB_SRCS}/include 8CFLAGS+= -I${LLDB_SRCS}/source 9CFLAGS+= -I${.OBJDIR} 10 11SRCDIR= lldb/tools/lldb-server 12 13SRCS+= Acceptor.cpp 14SRCS+= LLDBServerUtilities.cpp 15SRCS+= SystemInitializerLLGS.cpp 16SRCS+= lldb-gdbserver.cpp 17SRCS+= lldb-platform.cpp 18SRCS+= lldb-server.cpp 19 20.include "${SRCTOP}/lib/clang/clang.build.mk" 21 22LIBDEPS+= lldb 23LIBDEPS+= clang 24LIBDEPS+= llvm 25 26.for lib in ${LIBDEPS} 27DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a 28LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a 29.endfor 30 31INCFILE= LLGSOptions.inc 32TDFILE= ${LLDB_SRCS}/tools/lldb-server/LLGSOptions.td 33GENOPT= -gen-opt-parser-defs 34${INCFILE}: ${TDFILE} 35 ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ 36 -o ${.TARGET} ${TDFILE} 37TGHDRS+= ${INCFILE} 38 39DEPENDFILES+= ${TGHDRS:C/$/.d/} 40DPSRCS+= ${TGHDRS} 41CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 42 43LIBADD+= tinfow 44LIBADD+= edit 45LIBADD+= execinfo 46LIBADD+= lua 47LIBADD+= lzma 48LIBADD+= ncursesw 49LIBADD+= panel 50LIBADD+= pthread 51LIBADD+= z 52LIBADD+= zstd 53 54.include <bsd.prog.mk> 55