diff options
Diffstat (limited to 'tools/lldb-server/Makefile')
-rw-r--r-- | tools/lldb-server/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/lldb-server/Makefile b/tools/lldb-server/Makefile new file mode 100644 index 000000000000..849b313dae8a --- /dev/null +++ b/tools/lldb-server/Makefile @@ -0,0 +1,25 @@ +##===- tools/lldb-server/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 := ../.. + +TOOLNAME = lldb-server + +LLVMLibsOptions += -llldb -llldbUtility + +LINK_COMPONENTS := support + +include $(LLDB_LEVEL)/Makefile + +ifeq ($(HOST_OS),Darwin) + LLVMLibsOptions += -Wl,-rpath,@loader_path/../lib/ +endif + +ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU/kFreeBSD NetBSD)) + LLVMLibsOptions += -Wl,-rpath,$(LibDir) -lpthread +endif |