summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Host/Makefile37
-rw-r--r--lldb/source/Host/common/Makefile14
-rw-r--r--lldb/source/Host/freebsd/Makefile16
-rw-r--r--lldb/source/Host/linux/Makefile14
-rw-r--r--lldb/source/Host/macosx/Makefile26
-rw-r--r--lldb/source/Host/posix/Makefile14
-rw-r--r--lldb/source/Host/windows/Makefile16
-rw-r--r--lldb/source/Initialization/Makefile2
-rw-r--r--lldb/source/Makefile8
-rw-r--r--lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/Makefile6
-rw-r--r--lldb/source/Plugins/DynamicLoader/POSIX-DYLD/Makefile6
-rw-r--r--lldb/source/Plugins/Instruction/ARM/Makefile6
-rw-r--r--lldb/source/Plugins/Instruction/ARM64/Makefile6
-rw-r--r--lldb/source/Plugins/Instruction/MIPS/Makefile6
-rw-r--r--lldb/source/Plugins/Instruction/MIPS64/Makefile6
-rw-r--r--lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/Makefile6
-rw-r--r--lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/Makefile6
-rw-r--r--lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/Makefile6
-rw-r--r--lldb/source/Plugins/ObjectContainer/Universal-Mach-O/Makefile6
-rw-r--r--lldb/source/Plugins/OperatingSystem/Python/Makefile6
-rw-r--r--lldb/source/Plugins/Platform/gdb-server/Makefile2
-rw-r--r--lldb/source/Plugins/UnwindAssembly/x86/Makefile6
22 files changed, 65 insertions, 156 deletions
diff --git a/lldb/source/Host/Makefile b/lldb/source/Host/Makefile
index 0fa26d2dc4b..a8e426068e3 100644
--- a/lldb/source/Host/Makefile
+++ b/lldb/source/Host/Makefile
@@ -1,41 +1,50 @@
##===- source/Host/Makefile --------------------------------*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../..
+LEVEL := $(LLDB_LEVEL)/../..
-include $(LLDB_LEVEL)/../../Makefile.config
+include $(LEVEL)/Makefile.config
-DIRS := common
+define DIR_SOURCES
+SOURCES += $$(addprefix $(1)/,$$(notdir $$(wildcard $$(PROJ_SRC_DIR)/$(1)/*.cpp \
+ $$(PROJ_SRC_DIR)/*.cc $$(PROJ_SRC_DIR)/$(1)/*.c)))
+endef
+
+$(eval $(call DIR_SOURCES,common))
ifeq ($(HOST_OS),Darwin)
-DIRS += posix
-DIRS += macosx
+$(eval $(call DIR_SOURCES,posix))
+$(eval $(call DIR_SOURCES,macosx))
endif
ifeq ($(HOST_OS),Linux)
-DIRS += posix
-DIRS += linux
+$(eval $(call DIR_SOURCES,posix))
+$(eval $(call DIR_SOURCES,linux))
endif
ifneq (,$(filter $(HOST_OS), FreeBSD GNU/kFreeBSD))
-DIRS += posix
-DIRS += freebsd
+$(eval $(call DIR_SOURCES,posix))
+$(eval $(call DIR_SOURCES,freebsd))
endif
ifeq ($(HOST_OS),MingW)
-DIRS += windows
+$(eval $(call DIR_SOURCES,windows))
endif
ifeq ($(HOST_OS),Android)
-DIRS += posix
-DIRS += linux
-DIRS += android
+$(eval $(call DIR_SOURCES,posix))
+$(eval $(call DIR_SOURCES,linux))
+$(eval $(call DIR_SOURCES,android))
endif
+LIBRARYNAME := lldbHost
+BUILD_ARCHIVE = 1
+
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Host/common/Makefile b/lldb/source/Host/common/Makefile
deleted file mode 100644
index 19cddae2a01..00000000000
--- a/lldb/source/Host/common/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-##===- source/Host/common/Makefile -------------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LLDB_LEVEL := ../../..
-LIBRARYNAME := lldbHostCommon
-BUILD_ARCHIVE = 1
-
-include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Host/freebsd/Makefile b/lldb/source/Host/freebsd/Makefile
deleted file mode 100644
index d4d848dc430..00000000000
--- a/lldb/source/Host/freebsd/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-##===- source/Host/freebsd/Makefile --------------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LLDB_LEVEL := ../../..
-LIBRARYNAME := lldbHostFreeBSD
-BUILD_ARCHIVE = 1
-
-CPP.Flags += -I/usr/local/include
-
-include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Host/linux/Makefile b/lldb/source/Host/linux/Makefile
deleted file mode 100644
index bd6d7e4fff8..00000000000
--- a/lldb/source/Host/linux/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-##===- source/Host/linux/Makefile --------------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LLDB_LEVEL := ../../..
-LIBRARYNAME := lldbHostLinux
-BUILD_ARCHIVE = 1
-
-include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Host/macosx/Makefile b/lldb/source/Host/macosx/Makefile
deleted file mode 100644
index 640d944a0e7..00000000000
--- a/lldb/source/Host/macosx/Makefile
+++ /dev/null
@@ -1,26 +0,0 @@
-##===- source/Host/macosx/Makefile -------------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LLDB_LEVEL := ../../..
-LIBRARYNAME := lldbHostMacOSX
-BUILD_ARCHIVE = 1
-
-CFCPP_SOURCES = \
- $(addprefix cfcpp/,$(notdir $(wildcard $(PROJ_SRC_DIR)/cfcpp/*.cpp)))
-SOURCES = $(notdir $(wildcard $(PROJ_SRC_DIR)/*.cpp $(PROJ_SRC_DIR)/*.mm)) \
- $(CFCPP_SOURCES)
-
-include $(LLDB_LEVEL)/Makefile
-
-CFCPP_BaseNameSources := $(sort $(basename $(CFCPP_SOURCES)))
-CFCPP_OBJECTS := $(CFCPP_BaseNameSources:%=$(ObjDir)/%.o)
-
-# Make sure the cfcpp output directory exists
-$(CFCPP_OBJECTS): $(ObjDir)/cfcpp/.dir
-
diff --git a/lldb/source/Host/posix/Makefile b/lldb/source/Host/posix/Makefile
deleted file mode 100644
index d263510f6e2..00000000000
--- a/lldb/source/Host/posix/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-##===- source/Host/posix/Makefile --------------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LLDB_LEVEL := ../../..
-LIBRARYNAME := lldbHostPosix
-BUILD_ARCHIVE = 1
-
-include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Host/windows/Makefile b/lldb/source/Host/windows/Makefile
deleted file mode 100644
index a1eb3f839f2..00000000000
--- a/lldb/source/Host/windows/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-##===- source/Host/windows/Makefile ------------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LLDB_LEVEL := ../../..
-LIBRARYNAME := lldbHostWindows
-BUILD_ARCHIVE = 1
-
-SOURCES = $(notdir $(wildcard $(PROJ_SRC_DIR)/*.cpp )) $(PROJ_SRC_DIR)/../posix/ConnectionFileDescriptorPosix.cpp
-
-include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Initialization/Makefile b/lldb/source/Initialization/Makefile
index 34354d17b4a..a63f4733bb6 100644
--- a/lldb/source/Initialization/Makefile
+++ b/lldb/source/Initialization/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../..
-LIBRARYNAME := lldbInitialize
+LIBRARYNAME := lldbInitialization
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Makefile b/lldb/source/Makefile
index 69d6c0f88ec..0ad56ffa5e0 100644
--- a/lldb/source/Makefile
+++ b/lldb/source/Makefile
@@ -1,21 +1,21 @@
##===- source/Makefile -------------------------------------*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ..
PARALLEL_DIRS := API Initialization Breakpoint Commands Core DataFormatters Expression Host Interpreter Plugins Symbol Target Utility
-LIBRARYNAME := lldbInitAndLog
+LIBRARYNAME := lldbBase
BUILD_ARCHIVE = 1
# Although LLVM makefiles provide $(HOST_OS), we cannot use that here because it is defined by including the $(LLDB_LEVEL)/Makefile
# below. Instead, we use uname -s to detect the HOST_OS and generate LLDB_vers.c only on Mac. On Linux, the version number is
# calculated in the same way as Clang's version.
-ifeq (Darwin,$(shell uname -s))
+ifeq (Darwin,$(shell uname -s))
BUILT_SOURCES = LLDB_vers.c
endif
diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/Makefile b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/Makefile
index 70400caa7d8..ffac3b45717 100644
--- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/Makefile
+++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/Makefile
@@ -1,14 +1,14 @@
##===- source/Plugins/Disassembler/llvm/Makefile -------------*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../..
-LIBRARYNAME := lldbPluginDynamicLoaderMacOSX
+LIBRARYNAME := lldbPluginDynamicLoaderMacOSXDYLD
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/Makefile b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/Makefile
index 70ea1f34e2b..1c56366015d 100644
--- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/Makefile
+++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/Makefile
@@ -1,14 +1,14 @@
##===- source/Plugins/DynamicLoader/POSIX-DYLD/Makefile ----*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../..
-LIBRARYNAME := lldbPluginDynamicLoaderPOSIX
+LIBRARYNAME := lldbPluginDynamicLoaderPosixDYLD
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/Instruction/ARM/Makefile b/lldb/source/Plugins/Instruction/ARM/Makefile
index 61591a3e54c..31a233b0b37 100644
--- a/lldb/source/Plugins/Instruction/ARM/Makefile
+++ b/lldb/source/Plugins/Instruction/ARM/Makefile
@@ -1,14 +1,14 @@
##===- source/Plugins/Instruction/ARM/Makefile -------------*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../..
-LIBRARYNAME := lldbPluginEmulateInstructionARM
+LIBRARYNAME := lldbPluginInstructionARM
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/Instruction/ARM64/Makefile b/lldb/source/Plugins/Instruction/ARM64/Makefile
index b07a6020dd3..8f60ce6dcd4 100644
--- a/lldb/source/Plugins/Instruction/ARM64/Makefile
+++ b/lldb/source/Plugins/Instruction/ARM64/Makefile
@@ -1,14 +1,14 @@
##===- source/Plugins/Instruction/ARM/Makefile -------------*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../..
-LIBRARYNAME := lldbPluginEmulateInstructionARM64
+LIBRARYNAME := lldbPluginInstructionARM64
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/Instruction/MIPS/Makefile b/lldb/source/Plugins/Instruction/MIPS/Makefile
index 61ff6874b7c..e9cef4ba0cf 100644
--- a/lldb/source/Plugins/Instruction/MIPS/Makefile
+++ b/lldb/source/Plugins/Instruction/MIPS/Makefile
@@ -1,14 +1,14 @@
##===- source/Plugins/Instruction/MIPS/Makefile -------------*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../..
-LIBRARYNAME := lldbPluginEmulateInstructionMIPS
+LIBRARYNAME := lldbPluginInstructionMIPS
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/Instruction/MIPS64/Makefile b/lldb/source/Plugins/Instruction/MIPS64/Makefile
index a4acb9be31b..7e5b339a359 100644
--- a/lldb/source/Plugins/Instruction/MIPS64/Makefile
+++ b/lldb/source/Plugins/Instruction/MIPS64/Makefile
@@ -1,14 +1,14 @@
##===- source/Plugins/Instruction/MIPS64/Makefile -------------*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../..
-LIBRARYNAME := lldbPluginEmulateInstructionMIPS64
+LIBRARYNAME := lldbPluginInstructionMIPS64
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/Makefile b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/Makefile
index e9f78decde3..ac87437f9d2 100644
--- a/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/Makefile
+++ b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/Makefile
@@ -1,14 +1,14 @@
##===- source/Plugins/LangRuntime/C++/ItaniumABI/Makefile --*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../../..
-LIBRARYNAME := lldbPluginLanguageRuntimeCPlusPlusItaniumABI
+LIBRARYNAME := lldbPluginCXXItaniumABI
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/Makefile b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/Makefile
index 64f9ce119f0..485fe75b3f8 100644
--- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/Makefile
+++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/Makefile
@@ -1,14 +1,14 @@
##===- source/Plugins/LangRuntime/ObjC/AppleRT/Makefile ----*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../../..
-LIBRARYNAME := lldbPluginLanguageRuntimeObjCAppleObjCRuntime
+LIBRARYNAME := lldbPluginAppleObjCRuntime
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/Makefile b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/Makefile
index 6c9769b9c3e..eeb50ae3fca 100644
--- a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/Makefile
+++ b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/Makefile
@@ -1,14 +1,14 @@
##===- Source/Plugins/LangRuntime/RenderScript/RenderScriptRuntime/Makefile ----*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../../..
-LIBRARYNAME := lldbPluginLanguageRuntimeRenderScriptRuntime
+LIBRARYNAME := lldbPluginRenderScriptRuntime
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/Makefile b/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/Makefile
index 274ecddf927..957753527d2 100644
--- a/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/Makefile
+++ b/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/Makefile
@@ -1,14 +1,14 @@
##===- source/Plugins/ObjectContainer/Universal-Mach-O/Makefile -------------*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../..
-LIBRARYNAME := lldbPluginObjectContainerUniversalMachO
+LIBRARYNAME := lldbPluginObjectContainerMachOArchive
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/OperatingSystem/Python/Makefile b/lldb/source/Plugins/OperatingSystem/Python/Makefile
index 4f5b45c82f9..67cd0acd703 100644
--- a/lldb/source/Plugins/OperatingSystem/Python/Makefile
+++ b/lldb/source/Plugins/OperatingSystem/Python/Makefile
@@ -1,14 +1,14 @@
##==- source/Plugins/OperatingSystem/Python/Makefile --------*- Makefile -*-==##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../..
-LIBRARYNAME := lldbPluginOperatingSystemPython
+LIBRARYNAME := lldbPluginOSPython
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/Platform/gdb-server/Makefile b/lldb/source/Plugins/Platform/gdb-server/Makefile
index 94fba171151..c56613b2a65 100644
--- a/lldb/source/Plugins/Platform/gdb-server/Makefile
+++ b/lldb/source/Plugins/Platform/gdb-server/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../..
-LIBRARYNAME := lldbPluginPlatformGDBServer
+LIBRARYNAME := lldbPluginPlatformGDB
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
diff --git a/lldb/source/Plugins/UnwindAssembly/x86/Makefile b/lldb/source/Plugins/UnwindAssembly/x86/Makefile
index dddf7f71e98..24419c044f0 100644
--- a/lldb/source/Plugins/UnwindAssembly/x86/Makefile
+++ b/lldb/source/Plugins/UnwindAssembly/x86/Makefile
@@ -1,14 +1,14 @@
##==-- source/Plugins/UnwindAssembly/x86/Makefile ----------*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../../../..
-LIBRARYNAME := lldbPluginUnwindAssemblyx86
+LIBRARYNAME := lldbPluginUnwindAssemblyX86
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
OpenPOWER on IntegriCloud