freebsd-skq/usr.bin/clang/lldb/Makefile
ngie 59d7f5e155 Convert LIBCURSES to LIBNCURSES to fix "make checkdpadd"
Also, add a missing LIBPANEL dependency for lldb

Approved by: rpaulo (mentor)
Suggested by: brooks
MFC after: 5 days
Phabric: D675 (as part of a larger diff)
PR: 192762
2014-08-26 09:10:28 +00:00

145 lines
2.7 KiB
Makefile

# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=lldb
LLDB_SRCS=${.CURDIR}/../../../contrib/llvm/tools/lldb
CFLAGS+= -I${LLDB_SRCS}/include
CXXFLAGS+= -std=c++11
SRCDIR= tools/lldb/tools/driver
SRCS= Driver.cpp \
Platform.cpp
lldb.1:
ln -fs ${LLDB_SRCS}/docs/lldb.1 ${.TARGET}
DPADD= ${LIBEDIT} ${LIBNCURSESW} ${LIBEXECINFO} ${LIBPANEL}
LDADD= -ledit -lncursesw -lexecinfo -lpanel
LLDB_LIBS=\
lldb \
\
lldbAPI \
lldbBreakpoint \
lldbCommands \
lldbCore \
lldbDataFormatters \
lldbExpression \
lldbHostFreeBSD \
lldbHostCommon \
lldbInterpreter \
lldbSymbol \
lldbTarget \
lldbUtility \
\
lldbPluginABISysV_x86_64 \
lldbPluginCXXItaniumABI \
lldbPluginDisassemblerLLVM \
lldbPluginInstructionARM \
lldbPluginSymbolFileDWARF \
lldbPluginSymbolFileSymtab \
lldbPluginDynamicLoaderStatic \
lldbPluginDynamicLoaderPosixDYLD \
lldbPluginObjectContainerBSDArchive \
lldbPluginObjectFileELF \
lldbPluginSymbolVendorELF \
lldbPluginPlatformFreeBSD \
lldbPluginPlatformGDB \
lldbPluginProcessElfCore \
lldbPluginProcessFreeBSD \
lldbPluginProcessGDBRemote \
lldbPluginProcessUtility \
lldbPluginProcessPOSIX \
lldbPluginProcessFreeBSD \
lldbPluginUnwindAssemblyInstEmulation \
lldbPluginUnwindAssemblyX86
LDADD+= -Wl,--start-group
.for lib in ${LLDB_LIBS}
DPADD+= ${.OBJDIR}/../../../lib/clang/lib${lib}/lib${lib}.a
LDADD+= ${.OBJDIR}/../../../lib/clang/lib${lib}/lib${lib}.a
.endfor
LDADD+= -Wl,--end-group
# Clang and LLVM libraries
LIBDEPS=\
clangfrontend \
clangdriver \
clangserialization \
clangcodegen \
clangparse \
clangsema \
clanganalysis \
clangedit \
clangast \
clangbasic \
clanglex \
\
llvmoption \
llvmarmasmparser \
llvmarmcodegen \
llvminstrumentation \
llvmirreader \
llvmlinker \
llvmmipsasmparser \
llvmmipscodegen \
llvmmipsdisassembler \
llvmobjcarcopts \
llvmpowerpccodegen \
llvmx86asmparser \
llvmx86codegen \
llvmx86disassembler \
llvmmcjit \
llvmmcdisassembler \
llvmarmdisassembler \
llvmselectiondag \
llvmipo \
llvmbitwriter \
llvmbitreader \
llvmasmparser \
llvminterpreter \
llvmjit \
llvmarmdesc \
llvmasmprinter \
llvmmipsdesc \
llvmmipsinstprinter \
llvmpowerpcdesc \
llvmpowerpcinstprinter \
llvmpowerpcasmparser \
llvmruntimedyld \
llvmvectorize \
llvmx86desc \
llvmx86instprinter \
llvmexecutionengine \
llvmcodegen \
llvmscalaropts \
llvmsparcdisassembler \
llvmsparccodegen \
llvmsparcasmparser \
llvmsparcdesc \
llvmsparcinfo \
llvmsparcinstprinter \
llvmarminfo \
llvmarminstprinter \
llvmmcparser \
llvmmipsinfo \
llvmpowerpcinfo \
llvmx86info \
llvmx86utils \
llvmobject \
llvminstcombine \
llvmtransformutils \
llvmipa \
llvmanalysis \
llvmtarget \
llvmcore \
llvmmc \
llvmsupport
.include "../clang.prog.mk"
LDADD+= -lpthread