1##===- tools/lldb-platform/Makefile ------------------------*- Makefile -*-===##
2#
3#                     The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7#
8##===----------------------------------------------------------------------===##
9LLDB_LEVEL := ../..
10
11TOOLNAME = lldb-platform
12
13LLVMLibsOptions += -llldb -llldbUtility
14
15include $(LLDB_LEVEL)/Makefile
16
17ifeq ($(HOST_OS),Darwin)
18	LLVMLibsOptions += -Wl,-rpath,@loader_path/../lib/
19endif
20
21ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU/kFreeBSD))
22	LLVMLibsOptions += -Wl,-rpath,$(LibDir)
23endif
24