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