diff options
author | sjg <sjg@FreeBSD.org> | 2013-10-13 02:35:19 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2013-10-13 02:35:19 +0000 |
commit | 7fcd33c1faf567506b5c0b4148c7a15a10788a5d (patch) | |
tree | 2c6f4d1ca5d1c643faea64e1f4c90105a1ab406a /usr.bin/clang | |
parent | 2a59274eda20cc626e28052fff7aa8b7bf6a3683 (diff) | |
parent | 5cca672bb0892f1c5da630c34a1f98e2de4d7064 (diff) | |
download | FreeBSD-src-7fcd33c1faf567506b5c0b4148c7a15a10788a5d.zip FreeBSD-src-7fcd33c1faf567506b5c0b4148c7a15a10788a5d.tar.gz |
Merge head@256284
Diffstat (limited to 'usr.bin/clang')
-rw-r--r-- | usr.bin/clang/Makefile | 8 | ||||
-rw-r--r-- | usr.bin/clang/lldb/Makefile | 135 |
2 files changed, 142 insertions, 1 deletions
diff --git a/usr.bin/clang/Makefile b/usr.bin/clang/Makefile index db5fae7..a61a418 100644 --- a/usr.bin/clang/Makefile +++ b/usr.bin/clang/Makefile @@ -4,7 +4,8 @@ SUBDIR= clang clang-tblgen tblgen -.if ${MK_CLANG_EXTRAS} != "no" && !defined(TOOLS_PREFIX) +.if !defined(TOOLS_PREFIX) +.if ${MK_CLANG_EXTRAS} != "no" SUBDIR+=bugpoint \ llc \ lli \ @@ -25,4 +26,9 @@ SUBDIR+=bugpoint \ opt .endif +.if ${MK_LLDB} != "no" +SUBDIR+=lldb +.endif +.endif # TOOLS_PREFIX + .include <bsd.subdir.mk> diff --git a/usr.bin/clang/lldb/Makefile b/usr.bin/clang/lldb/Makefile new file mode 100644 index 0000000..6869b8d --- /dev/null +++ b/usr.bin/clang/lldb/Makefile @@ -0,0 +1,135 @@ +# $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 \ + IOChannel.cpp + +lldb.1: + ln -fs ${LLDB_SRCS}/docs/lldb.1 ${.TARGET} + +DPADD= ${LIBEDIT} ${LIBCURSES} ${LIBEXECINFO} +LDADD= -ledit -lcurses -lexecinfo + +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 \ + 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 \ + \ + 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 \ + llvmruntimedyld \ + llvmvectorize \ + llvmx86desc \ + llvmx86instprinter \ + llvmexecutionengine \ + llvmcodegen \ + llvmscalaropts \ + llvmarminfo \ + llvmarminstprinter \ + llvmmcparser \ + llvmmipsinfo \ + llvmpowerpcinfo \ + llvmx86info \ + llvmx86utils \ + llvmobject \ + llvminstcombine \ + llvmtransformutils \ + llvmipa \ + llvmanalysis \ + llvmtarget \ + llvmcore \ + llvmmc \ + llvmsupport + +.include "../clang.prog.mk" + +LDADD+= -lpthread |