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