1 ##===- tools/lldb-server/Makefile ------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
11 TOOLNAME = lldb-server
13 LLVMLibsOptions += -llldb -llldbUtility
15 LINK_COMPONENTS := support
17 include $(LLDB_LEVEL)/Makefile
19 ifeq ($(HOST_OS),Darwin)
20 LLVMLibsOptions += -Wl,-rpath,@loader_path/../lib/
23 ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU/kFreeBSD NetBSD))
24 LLVMLibsOptions += -Wl,-rpath,$(LibDir) -lpthread