Files
clang-p2996/lldb/tools/debugserver/source/Makefile
Todd Fiala 5000e28a5e Make lldb build with Makefiles on OS X.
This change does the following:

* Adds Makefile build scripts to debug server.

* Fixes a few small mistakes in the other makefiles.

* Modifies generate-vers.pl slightly to also work for debugserver.

* Changes the OS X, non-framework python search path from libdir to
  libdir/python2.X/site-packages where it is installed by the build
  system (also where it is installed on other operating systems).

Patch by Keno Fischer.

llvm-svn: 199543
2014-01-18 08:05:32 +00:00

47 lines
1.4 KiB
Makefile

##===- tools/debugserver/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 := ../../..
LIBRARYNAME := lldbDebugserverCommon
BUILD_ARCHIVE = 1
SOURCES := debugserver.cpp \
DNBArch.cpp \
DNBBreakpoint.cpp \
DNB.cpp \
DNBDataRef.cpp \
DNBError.cpp \
DNBLog.cpp \
DNBRegisterInfo.cpp \
DNBThreadResumeActions.cpp \
libdebugserver.cpp \
PseudoTerminal.cpp \
PThreadEvent.cpp \
PThreadMutex.cpp \
RNBContext.cpp \
RNBRemote.cpp \
RNBServices.cpp \
RNBSocket.cpp \
SysSignal.cpp \
TTYState.cpp
include $(LLDB_LEVEL)/Makefile
ifeq ($(HOST_OS),Darwin)
DIRS := MacOSX/i386 MacOSX/x86_64 MacOSX
CPP.Flags += -I$(PROJ_SRC_DIR)/MacOSX
CPP.Flags += -I$(PROJ_OBJ_DIR)/..
BUILT_SOURCES = debugserver_vers.c
endif
ifeq ($(HOST_OS),Darwin)
debugserver_vers.c: $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/generate-vers.pl $(PROJ_SRC_DIR)/../debugserver.xcodeproj/project.pbxproj
"$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/generate-vers.pl" "$(PROJ_SRC_DIR)/../debugserver.xcodeproj/project.pbxproj" debugserver > debugserver_vers.c
endif