2010-07-10 04:39:50 +08:00
|
|
|
##===- 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 := ..
|
2014-10-14 14:26:33 +08:00
|
|
|
PARALLEL_DIRS := API Breakpoint Commands Core DataFormatters Expression Host Interpreter Plugins Symbol Target Utility
|
2010-07-10 04:39:50 +08:00
|
|
|
LIBRARYNAME := lldbInitAndLog
|
|
|
|
BUILD_ARCHIVE = 1
|
|
|
|
|
2013-03-01 00:51:15 +08:00
|
|
|
# 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))
|
2010-07-10 04:39:50 +08:00
|
|
|
BUILT_SOURCES = LLDB_vers.c
|
2013-03-01 00:51:15 +08:00
|
|
|
endif
|
|
|
|
|
2012-05-29 22:03:55 +08:00
|
|
|
SOURCES := lldb-log.cpp lldb.cpp
|
2010-07-10 04:39:50 +08:00
|
|
|
|
|
|
|
include $(LLDB_LEVEL)/Makefile
|
|
|
|
|
2013-03-01 00:51:15 +08:00
|
|
|
ifeq ($(HOST_OS),Darwin)
|
2010-07-13 07:14:00 +08:00
|
|
|
LLDB_vers.c: $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/generate-vers.pl $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/lldb.xcodeproj/project.pbxproj
|
2014-01-18 16:05:32 +08:00
|
|
|
"$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/generate-vers.pl" "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/lldb.xcodeproj/project.pbxproj" liblldb_core > LLDB_vers.c
|
2013-03-01 00:51:15 +08:00
|
|
|
else
|
|
|
|
LLDB_REVISION := $(strip \
|
|
|
|
$(shell $(LLVM_SRC_ROOT)/utils/GetSourceVersion $(LLVM_SRC_ROOT)/tools/lldb))
|
|
|
|
|
|
|
|
LLDB_REPOSITORY := $(strip \
|
|
|
|
$(shell $(LLVM_SRC_ROOT)/utils/GetRepositoryPath $(LLVM_SRC_ROOT)/tools/lldb))
|
|
|
|
|
|
|
|
CPP.Defines += -DLLDB_REVISION='"$(LLDB_REVISION)"' -DLLDB_REPOSITORY='"$(LLDB_REPOSITORY)"'
|
|
|
|
endif
|