summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2013-09-20 01:52:02 +0000
committeremaste <emaste@FreeBSD.org>2013-09-20 01:52:02 +0000
commit51ba585f88949f7d515cf6be9c32aa678838a67c (patch)
tree03c4639d8dd72b5865e528b3705c2061add52e92 /lib
parent07c75ee46c7f2c2fa93ef848a944b6c054d22168 (diff)
downloadFreeBSD-src-51ba585f88949f7d515cf6be9c32aa678838a67c.zip
FreeBSD-src-51ba585f88949f7d515cf6be9c32aa678838a67c.tar.gz
Add LLDB bmake infrastructure
This connects LLDB to the build, but it is disabled by default. Add WITH_LLDB= to src.conf to build it. Note that LLDB requires a C++11 compiler so is disabled on platforms using GCC. Approved by: re (gjb) Sponsored by: DARPA, AFRL
Diffstat (limited to 'lib')
-rw-r--r--lib/clang/Makefile56
-rw-r--r--lib/clang/liblldb/Makefile18
-rw-r--r--lib/clang/liblldbAPI/Makefile61
-rw-r--r--lib/clang/liblldbBreakpoint/Makefile35
-rw-r--r--lib/clang/liblldbCommands/Makefile41
-rw-r--r--lib/clang/liblldbCore/Makefile84
-rw-r--r--lib/clang/liblldbDataFormatters/Makefile33
-rw-r--r--lib/clang/liblldbExpression/Makefile39
-rw-r--r--lib/clang/liblldbHostCommon/Makefile24
-rw-r--r--lib/clang/liblldbHostFreeBSD/Makefile15
-rw-r--r--lib/clang/liblldbInterpreter/Makefile56
-rw-r--r--lib/clang/liblldbPluginABISysV_x86_64/Makefile15
-rw-r--r--lib/clang/liblldbPluginCXXItaniumABI/Makefile15
-rw-r--r--lib/clang/liblldbPluginDisassemblerLLVM/Makefile15
-rw-r--r--lib/clang/liblldbPluginDynamicLoaderPosixDYLD/Makefile17
-rw-r--r--lib/clang/liblldbPluginDynamicLoaderStatic/Makefile15
-rw-r--r--lib/clang/liblldbPluginInstructionARM/Makefile16
-rw-r--r--lib/clang/liblldbPluginObjectContainerBSDArchive/Makefile15
-rw-r--r--lib/clang/liblldbPluginObjectFileELF/Makefile16
-rw-r--r--lib/clang/liblldbPluginPlatformFreeBSD/Makefile15
-rw-r--r--lib/clang/liblldbPluginPlatformGDB/Makefile15
-rw-r--r--lib/clang/liblldbPluginProcessElfCore/Makefile21
-rw-r--r--lib/clang/liblldbPluginProcessFreeBSD/Makefile20
-rw-r--r--lib/clang/liblldbPluginProcessGDBRemote/Makefile21
-rw-r--r--lib/clang/liblldbPluginProcessPOSIX/Makefile28
-rw-r--r--lib/clang/liblldbPluginProcessUtility/Makefile31
-rw-r--r--lib/clang/liblldbPluginSymbolFileDWARF/Makefile41
-rw-r--r--lib/clang/liblldbPluginSymbolFileSymtab/Makefile15
-rw-r--r--lib/clang/liblldbPluginSymbolVendorELF/Makefile15
-rw-r--r--lib/clang/liblldbPluginUnwindAssemblyInstEmulation/Makefile15
-rw-r--r--lib/clang/liblldbPluginUnwindAssemblyX86/Makefile15
-rw-r--r--lib/clang/liblldbSymbol/Makefile43
-rw-r--r--lib/clang/liblldbTarget/Makefile54
-rw-r--r--lib/clang/liblldbUtility/Makefile18
-rw-r--r--lib/clang/libllvmmc/Makefile2
-rw-r--r--lib/clang/libllvmsupport/Makefile7
-rw-r--r--lib/clang/libllvmx86disassembler/Makefile2
-rw-r--r--lib/clang/lldb.lib.mk8
38 files changed, 963 insertions, 9 deletions
diff --git a/lib/clang/Makefile b/lib/clang/Makefile
index 6bc9552..3f30c96 100644
--- a/lib/clang/Makefile
+++ b/lib/clang/Makefile
@@ -3,17 +3,22 @@
.include <bsd.own.mk>
.if !make(install)
-.if !defined(EARLY_BUILD) && defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no"
+.if !defined(EARLY_BUILD)
+.if defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no"
_libclangstaticanalyzer= \
libclangstaticanalyzercheckers \
libclangstaticanalyzercore \
libclangstaticanalyzerfrontend
_libclangarcmigrate= \
libclangarcmigrate
+.endif # MK_CLANG_FULL
+.if (defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no") || \
+ (defined(MK_LLDB) && ${MK_LLDB} != "no")
_libclangrewriter= \
libclangrewritecore \
libclangrewritefrontend
-.endif # !EARLY_BUILD && MK_CLANG_FULL
+.endif # (MK_CLANG_FULL || MK_LLDB)
+.endif # !EARLY_BUILD
SUBDIR= libclanganalysis \
${_libclangarcmigrate} \
@@ -82,14 +87,55 @@ SUBDIR= libclanganalysis \
libllvmx86utils
.if ${MK_CLANG_EXTRAS} != "no"
-SUBDIR+=libllvmdebuginfo \
- libllvmexecutionengine \
+SUBDIR+=libllvmdebuginfo
+.endif # MK_CLANG_EXTRAS
+.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
+SUBDIR+=libllvmexecutionengine \
libllvminterpreter \
libllvmjit \
libllvmmcdisassembler \
libllvmmcjit \
libllvmruntimedyld
-.endif # MK_CLANG_EXTRAS
+.endif # MK_CLANG_EXTRAS | LLDB
+
+.if !defined(EARLY_BUILD) && ${MK_LLDB} != "no"
+SUBDIR+=liblldb \
+ \
+ liblldbAPI \
+ liblldbBreakpoint \
+ liblldbCommands \
+ liblldbCore \
+ liblldbDataFormatters \
+ liblldbExpression \
+ liblldbHostCommon \
+ liblldbHostFreeBSD \
+ liblldbInterpreter \
+ liblldbSymbol \
+ liblldbTarget \
+ liblldbUtility \
+ \
+ liblldbPluginABISysV_x86_64 \
+ liblldbPluginCXXItaniumABI \
+ liblldbPluginDisassemblerLLVM \
+ liblldbPluginDynamicLoaderStatic \
+ liblldbPluginDynamicLoaderPosixDYLD \
+ liblldbPluginInstructionARM \
+ liblldbPluginObjectContainerBSDArchive \
+ liblldbPluginObjectFileELF \
+ liblldbPluginPlatformFreeBSD \
+ liblldbPluginPlatformGDB \
+ liblldbPluginProcessElfCore \
+ liblldbPluginProcessFreeBSD \
+ liblldbPluginProcessGDBRemote \
+ liblldbPluginProcessPOSIX \
+ liblldbPluginProcessUtility \
+ liblldbPluginSymbolFileDWARF \
+ liblldbPluginSymbolFileSymtab \
+ liblldbPluginSymbolVendorELF \
+ liblldbPluginUnwindAssemblyInstEmulation \
+ liblldbPluginUnwindAssemblyX86
+.endif # !EARLY_BUILD && MK_LLDB
+
.endif # !make(install)
SUBDIR+= include
diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile
new file mode 100644
index 0000000..cba14e7
--- /dev/null
+++ b/lib/clang/liblldb/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldb
+
+CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/POSIX
+
+SRCDIR= tools/lldb/source
+SRCS= lldb.cpp \
+ lldb-log.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbAPI/Makefile b/lib/clang/liblldbAPI/Makefile
new file mode 100644
index 0000000..275b26f
--- /dev/null
+++ b/lib/clang/liblldbAPI/Makefile
@@ -0,0 +1,61 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbAPI
+
+SRCDIR= tools/lldb/source/API
+SRCS= SBAddress.cpp \
+ SBBlock.cpp \
+ SBBreakpoint.cpp \
+ SBBreakpointLocation.cpp \
+ SBBroadcaster.cpp \
+ SBCommandInterpreter.cpp \
+ SBCommandReturnObject.cpp \
+ SBCommunication.cpp \
+ SBCompileUnit.cpp \
+ SBData.cpp \
+ SBDebugger.cpp \
+ SBDeclaration.cpp \
+ SBError.cpp \
+ SBEvent.cpp \
+ SBExpressionOptions.cpp \
+ SBFileSpec.cpp \
+ SBFileSpecList.cpp \
+ SBFrame.cpp \
+ SBFunction.cpp \
+ SBHostOS.cpp \
+ SBInputReader.cpp \
+ SBInstruction.cpp \
+ SBInstructionList.cpp \
+ SBLineEntry.cpp \
+ SBListener.cpp \
+ SBModule.cpp \
+ SBModuleSpec.cpp \
+ SBProcess.cpp \
+ SBSection.cpp \
+ SBSourceManager.cpp \
+ SBStream.cpp \
+ SBStringList.cpp \
+ SBSymbol.cpp \
+ SBSymbolContext.cpp \
+ SBSymbolContextList.cpp \
+ SBTarget.cpp \
+ SBThread.cpp \
+ SBType.cpp \
+ SBTypeCategory.cpp \
+ SBTypeFilter.cpp \
+ SBTypeFormat.cpp \
+ SBTypeNameSpecifier.cpp \
+ SBTypeSummary.cpp \
+ SBTypeSynthetic.cpp \
+ SBValue.cpp \
+ SBValueList.cpp \
+ SBWatchpoint.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbBreakpoint/Makefile b/lib/clang/liblldbBreakpoint/Makefile
new file mode 100644
index 0000000..396b0aa
--- /dev/null
+++ b/lib/clang/liblldbBreakpoint/Makefile
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbBreakpoint
+
+SRCDIR= tools/lldb/source/Breakpoint
+SRCS= Breakpoint.cpp \
+ BreakpointID.cpp \
+ BreakpointIDList.cpp \
+ BreakpointList.cpp \
+ BreakpointLocation.cpp \
+ BreakpointLocationCollection.cpp \
+ BreakpointLocationList.cpp \
+ BreakpointOptions.cpp \
+ BreakpointResolver.cpp \
+ BreakpointResolverAddress.cpp \
+ BreakpointResolverFileLine.cpp \
+ BreakpointResolverFileRegex.cpp \
+ BreakpointResolverName.cpp \
+ BreakpointSite.cpp \
+ BreakpointSiteList.cpp \
+ Stoppoint.cpp \
+ StoppointCallbackContext.cpp \
+ StoppointLocation.cpp \
+ Watchpoint.cpp \
+ WatchpointList.cpp \
+ WatchpointOptions.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbCommands/Makefile b/lib/clang/liblldbCommands/Makefile
new file mode 100644
index 0000000..6709017
--- /dev/null
+++ b/lib/clang/liblldbCommands/Makefile
@@ -0,0 +1,41 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbCommands
+
+SRCDIR= tools/lldb/source/Commands
+SRCS= CommandCompletions.cpp \
+ CommandObjectApropos.cpp \
+ CommandObjectArgs.cpp \
+ CommandObjectBreakpoint.cpp \
+ CommandObjectBreakpointCommand.cpp \
+ CommandObjectCommands.cpp \
+ CommandObjectDisassemble.cpp \
+ CommandObjectExpression.cpp \
+ CommandObjectFrame.cpp \
+ CommandObjectHelp.cpp \
+ CommandObjectLog.cpp \
+ CommandObjectMemory.cpp \
+ CommandObjectMultiword.cpp \
+ CommandObjectPlatform.cpp \
+ CommandObjectPlugin.cpp \
+ CommandObjectProcess.cpp \
+ CommandObjectQuit.cpp \
+ CommandObjectRegister.cpp \
+ CommandObjectSettings.cpp \
+ CommandObjectSource.cpp \
+ CommandObjectSyntax.cpp \
+ CommandObjectTarget.cpp \
+ CommandObjectThread.cpp \
+ CommandObjectType.cpp \
+ CommandObjectVersion.cpp \
+ CommandObjectWatchpoint.cpp \
+ CommandObjectWatchpointCommand.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbCore/Makefile b/lib/clang/liblldbCore/Makefile
new file mode 100644
index 0000000..4457531
--- /dev/null
+++ b/lib/clang/liblldbCore/Makefile
@@ -0,0 +1,84 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbCore
+
+SRCDIR= tools/lldb/source/Core
+SRCS= Address.cpp \
+ AddressRange.cpp \
+ AddressResolver.cpp \
+ AddressResolverFileLine.cpp \
+ AddressResolverName.cpp \
+ ArchSpec.cpp \
+ Baton.cpp \
+ Broadcaster.cpp \
+ Communication.cpp \
+ Connection.cpp \
+ ConnectionFileDescriptor.cpp \
+ ConnectionMachPort.cpp \
+ ConnectionSharedMemory.cpp \
+ ConstString.cpp \
+ DataBufferHeap.cpp \
+ DataBufferMemoryMap.cpp \
+ DataEncoder.cpp \
+ DataExtractor.cpp \
+ Debugger.cpp \
+ Disassembler.cpp \
+ DynamicLoader.cpp \
+ EmulateInstruction.cpp \
+ Error.cpp \
+ Event.cpp \
+ FileLineResolver.cpp \
+ FileSpecList.cpp \
+ History.cpp \
+ InputReader.cpp \
+ InputReaderEZ.cpp \
+ InputReaderStack.cpp \
+ Language.cpp \
+ Listener.cpp \
+ Log.cpp \
+ Mangled.cpp \
+ Module.cpp \
+ ModuleChild.cpp \
+ ModuleList.cpp \
+ Opcode.cpp \
+ PluginManager.cpp \
+ RegisterValue.cpp \
+ RegularExpression.cpp \
+ Scalar.cpp \
+ SearchFilter.cpp \
+ Section.cpp \
+ SourceManager.cpp \
+ State.cpp \
+ Stream.cpp \
+ StreamAsynchronousIO.cpp \
+ StreamCallback.cpp \
+ StreamFile.cpp \
+ StreamString.cpp \
+ StringList.cpp \
+ Timer.cpp \
+ UserID.cpp \
+ UserSettingsController.cpp \
+ UUID.cpp \
+ Value.cpp \
+ ValueObject.cpp \
+ ValueObjectCast.cpp \
+ ValueObjectChild.cpp \
+ ValueObjectConstResult.cpp \
+ ValueObjectConstResultChild.cpp \
+ ValueObjectConstResultImpl.cpp \
+ ValueObjectDynamicValue.cpp \
+ ValueObjectList.cpp \
+ ValueObjectMemory.cpp \
+ ValueObjectRegister.cpp \
+ ValueObjectSyntheticFilter.cpp \
+ ValueObjectVariable.cpp \
+ VMRange.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbDataFormatters/Makefile b/lib/clang/liblldbDataFormatters/Makefile
new file mode 100644
index 0000000..ca8a6c8
--- /dev/null
+++ b/lib/clang/liblldbDataFormatters/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbDataFormatters
+
+SRCDIR= tools/lldb/source/DataFormatters
+SRCS= CF.cpp \
+ Cocoa.cpp \
+ CXXFormatterFunctions.cpp \
+ DataVisualization.cpp \
+ FormatCache.cpp \
+ FormatClasses.cpp \
+ FormatManager.cpp \
+ LibCxx.cpp \
+ LibCxxList.cpp \
+ LibCxxMap.cpp \
+ LibStdcpp.cpp \
+ NSArray.cpp \
+ NSDictionary.cpp \
+ NSSet.cpp \
+ TypeCategory.cpp \
+ TypeCategoryMap.cpp \
+ TypeFormat.cpp \
+ TypeSummary.cpp \
+ TypeSynthetic.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbExpression/Makefile b/lib/clang/liblldbExpression/Makefile
new file mode 100644
index 0000000..120add5
--- /dev/null
+++ b/lib/clang/liblldbExpression/Makefile
@@ -0,0 +1,39 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbExpression
+
+SRCDIR= tools/lldb/source/Expression
+SRCS= ASTDumper.cpp \
+ ASTResultSynthesizer.cpp \
+ ASTStructExtractor.cpp \
+ ClangASTSource.cpp \
+ ClangExpressionDeclMap.cpp \
+ ClangExpressionParser.cpp \
+ ClangExpressionVariable.cpp \
+ ClangFunction.cpp \
+ ClangPersistentVariables.cpp \
+ ClangUserExpression.cpp \
+ ClangUtilityFunction.cpp \
+ DWARFExpression.cpp \
+ ExpressionSourceCode.cpp \
+ IRDynamicChecks.cpp \
+ IRExecutionUnit.cpp \
+ IRForTarget.cpp \
+ IRInterpreter.cpp \
+ IRMemoryMap.cpp \
+ Materializer.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList \
+ AttrList \
+ Attrs \
+ AttrParsedAttrList \
+ DiagnosticFrontendKinds \
+ DiagnosticSemaKinds \
+ Intrinsics
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbHostCommon/Makefile b/lib/clang/liblldbHostCommon/Makefile
new file mode 100644
index 0000000..e787cbc
--- /dev/null
+++ b/lib/clang/liblldbHostCommon/Makefile
@@ -0,0 +1,24 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbHostCommon
+
+SRCDIR= tools/lldb/source/Host/common
+SRCS= Condition.cpp \
+ DynamicLibrary.cpp \
+ File.cpp \
+ FileSpec.cpp \
+ Host.cpp \
+ Mutex.cpp \
+ SocketAddress.cpp \
+ Symbols.cpp \
+ Terminal.cpp \
+ TimeValue.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbHostFreeBSD/Makefile b/lib/clang/liblldbHostFreeBSD/Makefile
new file mode 100644
index 0000000..e07f8ed
--- /dev/null
+++ b/lib/clang/liblldbHostFreeBSD/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbHostFreeBSD
+
+SRCDIR= tools/lldb/source/Host/freebsd
+SRCS= Host.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbInterpreter/Makefile b/lib/clang/liblldbInterpreter/Makefile
new file mode 100644
index 0000000..c560adf
--- /dev/null
+++ b/lib/clang/liblldbInterpreter/Makefile
@@ -0,0 +1,56 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbInterpreter
+
+SRCDIR= tools/lldb/source/Interpreter
+SRCS= Args.cpp \
+ CommandHistory.cpp \
+ CommandInterpreter.cpp \
+ CommandObject.cpp \
+ CommandObjectRegexCommand.cpp \
+ CommandObjectScript.cpp \
+ CommandReturnObject.cpp \
+ OptionGroupArchitecture.cpp \
+ OptionGroupBoolean.cpp \
+ OptionGroupFile.cpp \
+ OptionGroupFormat.cpp \
+ OptionGroupOutputFile.cpp \
+ OptionGroupPlatform.cpp \
+ OptionGroupString.cpp \
+ OptionGroupUInt64.cpp \
+ OptionGroupUUID.cpp \
+ OptionGroupValueObjectDisplay.cpp \
+ OptionValue.cpp \
+ OptionValueArch.cpp \
+ OptionValueArgs.cpp \
+ OptionValueArray.cpp \
+ OptionValueBoolean.cpp \
+ OptionValueDictionary.cpp \
+ OptionValueEnumeration.cpp \
+ OptionValueFileSpec.cpp \
+ OptionValueFileSpecLIst.cpp \
+ OptionValueFormat.cpp \
+ OptionValuePathMappings.cpp \
+ OptionValueProperties.cpp \
+ OptionValueRegex.cpp \
+ OptionValueSInt64.cpp \
+ OptionValueString.cpp \
+ OptionValueUInt64.cpp \
+ OptionValueUUID.cpp \
+ OptionGroupVariable.cpp \
+ OptionGroupWatchpoint.cpp \
+ Options.cpp \
+ Property.cpp \
+ PythonDataObjects.cpp \
+ ScriptInterpreter.cpp \
+ ScriptInterpreterNone.cpp \
+ ScriptInterpreterPython.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginABISysV_x86_64/Makefile b/lib/clang/liblldbPluginABISysV_x86_64/Makefile
new file mode 100644
index 0000000..730b107
--- /dev/null
+++ b/lib/clang/liblldbPluginABISysV_x86_64/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginABISysV_x86_64
+
+SRCDIR= tools/lldb/source/Plugins/ABI/SysV-x86_64
+SRCS= ABISysV_x86_64.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginCXXItaniumABI/Makefile b/lib/clang/liblldbPluginCXXItaniumABI/Makefile
new file mode 100644
index 0000000..35376f2
--- /dev/null
+++ b/lib/clang/liblldbPluginCXXItaniumABI/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginCXXItaniumABI
+
+SRCDIR= tools/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI
+SRCS= ItaniumABILanguageRuntime.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginDisassemblerLLVM/Makefile b/lib/clang/liblldbPluginDisassemblerLLVM/Makefile
new file mode 100644
index 0000000..0b00ac5
--- /dev/null
+++ b/lib/clang/liblldbPluginDisassemblerLLVM/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginDisassemblerLLVM
+
+SRCDIR= tools/lldb/source/Plugins/Disassembler/llvm
+SRCS= DisassemblerLLVMC.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginDynamicLoaderPosixDYLD/Makefile b/lib/clang/liblldbPluginDynamicLoaderPosixDYLD/Makefile
new file mode 100644
index 0000000..718607d
--- /dev/null
+++ b/lib/clang/liblldbPluginDynamicLoaderPosixDYLD/Makefile
@@ -0,0 +1,17 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginDynamicLoaderPosixDYLD
+
+SRCDIR= tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD
+SRCS= AuxVector.cpp \
+ DYLDRendezvous.cpp \
+ DynamicLoaderPOSIXDYLD.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginDynamicLoaderStatic/Makefile b/lib/clang/liblldbPluginDynamicLoaderStatic/Makefile
new file mode 100644
index 0000000..9ebe62b
--- /dev/null
+++ b/lib/clang/liblldbPluginDynamicLoaderStatic/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginDynamicLoaderStatic
+
+SRCDIR= tools/lldb/source/Plugins/DynamicLoader/Static
+SRCS= DynamicLoaderStatic.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginInstructionARM/Makefile b/lib/clang/liblldbPluginInstructionARM/Makefile
new file mode 100644
index 0000000..a9afb77
--- /dev/null
+++ b/lib/clang/liblldbPluginInstructionARM/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginInstructionARM
+
+SRCDIR= tools/lldb/source/Plugins/Instruction/ARM
+SRCS= EmulateInstructionARM.cpp \
+ EmulationStateARM.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginObjectContainerBSDArchive/Makefile b/lib/clang/liblldbPluginObjectContainerBSDArchive/Makefile
new file mode 100644
index 0000000..1d33582
--- /dev/null
+++ b/lib/clang/liblldbPluginObjectContainerBSDArchive/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginObjectContainerBSDArchive
+
+SRCDIR= tools/lldb/source/Plugins/ObjectContainer/BSD-Archive
+SRCS= ObjectContainerBSDArchive.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginObjectFileELF/Makefile b/lib/clang/liblldbPluginObjectFileELF/Makefile
new file mode 100644
index 0000000..7bd3dfa
--- /dev/null
+++ b/lib/clang/liblldbPluginObjectFileELF/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginObjectFileELF
+
+SRCDIR= tools/lldb/source/Plugins/ObjectFile/ELF
+SRCS= ELFHeader.cpp \
+ ObjectFileELF.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginPlatformFreeBSD/Makefile b/lib/clang/liblldbPluginPlatformFreeBSD/Makefile
new file mode 100644
index 0000000..9be7af3
--- /dev/null
+++ b/lib/clang/liblldbPluginPlatformFreeBSD/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginPlatformFreeBSD
+
+SRCDIR= tools/lldb/source/Plugins/Platform/FreeBSD
+SRCS= PlatformFreeBSD.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginPlatformGDB/Makefile b/lib/clang/liblldbPluginPlatformGDB/Makefile
new file mode 100644
index 0000000..1d8a994
--- /dev/null
+++ b/lib/clang/liblldbPluginPlatformGDB/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginPlatformGDB
+
+SRCDIR= tools/lldb/source/Plugins/Platform/gdb-server
+SRCS= PlatformRemoteGDBServer.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginProcessElfCore/Makefile b/lib/clang/liblldbPluginProcessElfCore/Makefile
new file mode 100644
index 0000000..1d5dec3
--- /dev/null
+++ b/lib/clang/liblldbPluginProcessElfCore/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginProcessElfCore
+
+CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/POSIX
+CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/Utility
+
+SRCDIR= tools/lldb/source/Plugins/Process/elf-core
+SRCS= ProcessElfCore.cpp \
+ ThreadElfCore.cpp \
+ RegisterContextCoreLinux_x86_64.cpp \
+ RegisterContextCoreFreeBSD_x86_64.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginProcessFreeBSD/Makefile b/lib/clang/liblldbPluginProcessFreeBSD/Makefile
new file mode 100644
index 0000000..80e668e
--- /dev/null
+++ b/lib/clang/liblldbPluginProcessFreeBSD/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginProcessFreeBSD
+
+# include_directories(.)
+CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD
+CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/POSIX
+
+SRCDIR= tools/lldb/source/Plugins/Process/FreeBSD
+SRCS= ProcessFreeBSD.cpp \
+ ProcessMonitor.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginProcessGDBRemote/Makefile b/lib/clang/liblldbPluginProcessGDBRemote/Makefile
new file mode 100644
index 0000000..c76fe8a
--- /dev/null
+++ b/lib/clang/liblldbPluginProcessGDBRemote/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginProcessGDBRemote
+
+SRCDIR= tools/lldb/source/Plugins/Process/gdb-remote
+SRCS= GDBRemoteCommunication.cpp \
+ GDBRemoteCommunicationClient.cpp \
+ GDBRemoteCommunicationServer.cpp \
+ GDBRemoteRegisterContext.cpp \
+ ProcessGDBRemote.cpp \
+ ProcessGDBRemoteLog.cpp \
+ ThreadGDBRemote.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginProcessPOSIX/Makefile b/lib/clang/liblldbPluginProcessPOSIX/Makefile
new file mode 100644
index 0000000..cee18c5
--- /dev/null
+++ b/lib/clang/liblldbPluginProcessPOSIX/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginProcessPOSIX
+
+# include_directories(.)
+CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/POSIX
+CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/Utility
+CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD
+
+SRCDIR= tools/lldb/source/Plugins/Process/POSIX
+SRCS= POSIXStopInfo.cpp \
+ POSIXThread.cpp \
+ ProcessMessage.cpp \
+ ProcessPOSIX.cpp \
+ ProcessPOSIXLog.cpp \
+ RegisterContextFreeBSD_x86_64.cpp \
+ RegisterContext_i386.cpp \
+ RegisterContextLinux_x86_64.cpp \
+ RegisterContext_x86_64.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginProcessUtility/Makefile b/lib/clang/liblldbPluginProcessUtility/Makefile
new file mode 100644
index 0000000..d0b221f
--- /dev/null
+++ b/lib/clang/liblldbPluginProcessUtility/Makefile
@@ -0,0 +1,31 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginProcessUtility
+
+SRCDIR= tools/lldb/source/Plugins/Process/Utility
+SRCS= DynamicRegisterInfo.cpp \
+ InferiorCallPOSIX.cpp \
+ RegisterContextDarwin_arm.cpp \
+ RegisterContextDarwin_i386.cpp \
+ RegisterContextDarwin_x86_64.cpp \
+ RegisterContextDummy.cpp \
+ RegisterContextLLDB.cpp \
+ RegisterContextMach_arm.cpp \
+ RegisterContextMach_i386.cpp \
+ RegisterContextMach_x86_64.cpp \
+ RegisterContextMacOSXFrameBackchain.cpp \
+ RegisterContextMemory.cpp \
+ RegisterContextThreadMemory.cpp \
+ StopInfoMachException.cpp \
+ ThreadMemory.cpp \
+ UnwindLLDB.cpp \
+ UnwindMacOSXFrameBackchain.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginSymbolFileDWARF/Makefile b/lib/clang/liblldbPluginSymbolFileDWARF/Makefile
new file mode 100644
index 0000000..92845e4
--- /dev/null
+++ b/lib/clang/liblldbPluginSymbolFileDWARF/Makefile
@@ -0,0 +1,41 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginSymbolFileDWARF
+
+SRCDIR= tools/lldb/source/Plugins/SymbolFile/DWARF
+SRCS= DWARFAbbreviationDeclaration.cpp \
+ DWARFCompileUnit.cpp \
+ DWARFDebugAbbrev.cpp \
+ DWARFDebugAranges.cpp \
+ DWARFDebugArangeSet.cpp \
+ DWARFDebugInfo.cpp \
+ DWARFDebugInfoEntry.cpp \
+ DWARFDebugLine.cpp \
+ DWARFDebugMacinfo.cpp \
+ DWARFDebugMacinfoEntry.cpp \
+ DWARFDebugPubnames.cpp \
+ DWARFDebugPubnamesSet.cpp \
+ DWARFDebugRanges.cpp \
+ DWARFDeclContext.cpp \
+ DWARFDefines.cpp \
+ DWARFDIECollection.cpp \
+ DWARFFormValue.cpp \
+ DWARFLocationDescription.cpp \
+ DWARFLocationList.cpp \
+ LogChannelDWARF.cpp \
+ NameToDIE.cpp \
+ SymbolFileDWARF.cpp \
+ SymbolFileDWARFDebugMap.cpp \
+ UniqueDWARFASTType.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList \
+ AttrParsedAttrList \
+ DiagnosticFrontendKinds \
+ Intrinsics
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginSymbolFileSymtab/Makefile b/lib/clang/liblldbPluginSymbolFileSymtab/Makefile
new file mode 100644
index 0000000..29e8803
--- /dev/null
+++ b/lib/clang/liblldbPluginSymbolFileSymtab/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginSymbolFileSymtab
+
+SRCDIR= tools/lldb/source/Plugins/SymbolFile/Symtab
+SRCS= SymbolFileSymtab.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginSymbolVendorELF/Makefile b/lib/clang/liblldbPluginSymbolVendorELF/Makefile
new file mode 100644
index 0000000..3b3a928
--- /dev/null
+++ b/lib/clang/liblldbPluginSymbolVendorELF/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginSymbolVendorELF
+
+SRCDIR= tools/lldb/source/Plugins/SymbolVendor/ELF
+SRCS= SymbolVendorELF.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginUnwindAssemblyInstEmulation/Makefile b/lib/clang/liblldbPluginUnwindAssemblyInstEmulation/Makefile
new file mode 100644
index 0000000..b650411
--- /dev/null
+++ b/lib/clang/liblldbPluginUnwindAssemblyInstEmulation/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginUnwindAssemblyInstEmulation
+
+SRCDIR= tools/lldb/source/Plugins/UnwindAssembly/InstEmulation
+SRCS= UnwindAssemblyInstEmulation.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbPluginUnwindAssemblyX86/Makefile b/lib/clang/liblldbPluginUnwindAssemblyX86/Makefile
new file mode 100644
index 0000000..1e75536
--- /dev/null
+++ b/lib/clang/liblldbPluginUnwindAssemblyX86/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginUnwindAssemblyX86
+
+SRCDIR= tools/lldb/source/Plugins/UnwindAssembly/x86
+SRCS= UnwindAssembly-x86.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbSymbol/Makefile b/lib/clang/liblldbSymbol/Makefile
new file mode 100644
index 0000000..ed22ec3
--- /dev/null
+++ b/lib/clang/liblldbSymbol/Makefile
@@ -0,0 +1,43 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbSymbol
+
+SRCDIR= tools/lldb/source/Symbol
+SRCS= Block.cpp \
+ ClangASTContext.cpp \
+ ClangASTImporter.cpp \
+ ClangASTType.cpp \
+ ClangExternalASTSourceCallbacks.cpp \
+ ClangExternalASTSourceCommon.cpp \
+ ClangNamespaceDecl.cpp \
+ CompileUnit.cpp \
+ Declaration.cpp \
+ DWARFCallFrameInfo.cpp \
+ Function.cpp \
+ FuncUnwinders.cpp \
+ LineEntry.cpp \
+ LineTable.cpp \
+ ObjectFile.cpp \
+ Symbol.cpp \
+ SymbolContext.cpp \
+ SymbolFile.cpp \
+ SymbolVendor.cpp \
+ Symtab.cpp \
+ Type.cpp \
+ TypeList.cpp \
+ UnwindPlan.cpp \
+ UnwindTable.cpp \
+ Variable.cpp \
+ VariableList.cpp \
+ VerifyDecl.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList \
+ AttrList \
+ Attrs
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbTarget/Makefile b/lib/clang/liblldbTarget/Makefile
new file mode 100644
index 0000000..c6384be
--- /dev/null
+++ b/lib/clang/liblldbTarget/Makefile
@@ -0,0 +1,54 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbTarget
+
+CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/Utility
+
+SRCDIR= tools/lldb/source/Target
+SRCS= ABI.cpp \
+ CPPLanguageRuntime.cpp \
+ ExecutionContext.cpp \
+ LanguageRuntime.cpp \
+ Memory.cpp \
+ ObjCLanguageRuntime.cpp \
+ OperatingSystem.cpp \
+ PathMappingList.cpp \
+ Platform.cpp \
+ Process.cpp \
+ RegisterContext.cpp \
+ SectionLoadList.cpp \
+ StackFrame.cpp \
+ StackFrameList.cpp \
+ StackID.cpp \
+ StopInfo.cpp \
+ Target.cpp \
+ TargetList.cpp \
+ Thread.cpp \
+ ThreadList.cpp \
+ ThreadPlan.cpp \
+ ThreadPlanBase.cpp \
+ ThreadPlanCallFunction.cpp \
+ ThreadPlanCallUserExpression.cpp \
+ ThreadPlanRunToAddress.cpp \
+ ThreadPlanShouldStopHere.cpp \
+ ThreadPlanStepInRange.cpp \
+ ThreadPlanStepInstruction.cpp \
+ ThreadPlanStepOut.cpp \
+ ThreadPlanStepOverBreakpoint.cpp \
+ ThreadPlanStepOverRange.cpp \
+ ThreadPlanStepRange.cpp \
+ ThreadPlanStepThrough.cpp \
+ ThreadPlanStepUntil.cpp \
+ ThreadPlanTracer.cpp \
+ ThreadSpec.cpp \
+ UnixSignals.cpp \
+ UnwindAssembly.cpp
+
+TGHDRS= DiagnosticCommonKinds \
+ DeclNodes \
+ StmtNodes \
+ CommentCommandList
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbUtility/Makefile b/lib/clang/liblldbUtility/Makefile
new file mode 100644
index 0000000..9c944e4
--- /dev/null
+++ b/lib/clang/liblldbUtility/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbUtility
+
+SRCDIR= tools/lldb/source/Utility
+SRCS= ARM_DWARF_Registers.cpp \
+ KQueue.cpp \
+ PseudoTerminal.cpp \
+ Range.cpp \
+ RefCounter.cpp \
+ SharingPtr.cpp \
+ StringExtractor.cpp \
+ StringExtractorGDBRemote.cpp \
+ TimeSpecTimeout.cpp
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/libllvmmc/Makefile b/lib/clang/libllvmmc/Makefile
index 3986ba6..045d217 100644
--- a/lib/clang/libllvmmc/Makefile
+++ b/lib/clang/libllvmmc/Makefile
@@ -48,7 +48,7 @@ SRCS= ELFObjectWriter.cpp \
WinCOFFObjectWriter.cpp \
WinCOFFStreamer.cpp
-.if ${MK_CLANG_EXTRAS} != "no"
+.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
SRCS+= MCDisassembler.cpp
.endif
diff --git a/lib/clang/libllvmsupport/Makefile b/lib/clang/libllvmsupport/Makefile
index 6d043b4..ff9b9cb 100644
--- a/lib/clang/libllvmsupport/Makefile
+++ b/lib/clang/libllvmsupport/Makefile
@@ -84,11 +84,14 @@ SRCS= APFloat.cpp \
regstrlcpy.c \
system_error.cpp
+.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
+SRCS+= DataExtractor.cpp \
+ Disassembler.cpp
+.endif
+
.if ${MK_CLANG_EXTRAS} != "no"
SRCS+= Compression.cpp \
- DataExtractor.cpp \
DataStream.cpp \
- Disassembler.cpp \
FileUtilities.cpp \
SystemUtils.cpp
.endif
diff --git a/lib/clang/libllvmx86disassembler/Makefile b/lib/clang/libllvmx86disassembler/Makefile
index fbaa5c6..797f2bf 100644
--- a/lib/clang/libllvmx86disassembler/Makefile
+++ b/lib/clang/libllvmx86disassembler/Makefile
@@ -8,7 +8,7 @@ SRCDIR= lib/Target/X86/Disassembler
INCDIR= lib/Target/X86
SRCS= X86Disassembler.cpp
-.if ${MK_CLANG_EXTRAS} != "no"
+.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
SRCS+= X86DisassemblerDecoder.c
.endif
diff --git a/lib/clang/lldb.lib.mk b/lib/clang/lldb.lib.mk
new file mode 100644
index 0000000..d8dc024
--- /dev/null
+++ b/lib/clang/lldb.lib.mk
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+LLDB_SRCS= ${.CURDIR}/../../../contrib/llvm/tools/lldb
+
+CFLAGS+=-I${LLDB_SRCS}/include -I${LLDB_SRCS}/source
+CXXFLAGS+=-std=c++11 -DLLDB_DISABLE_PYTHON
+
+.include "clang.lib.mk"
OpenPOWER on IntegriCloud