Makefile revision 48f9c71f83dc945ee7e92cf5d980b42c06ef849d
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
13LD.Flags += -llldb -llldbUtility
14
15include $(LLDB_LEVEL)/Makefile
16
17ifeq ($(HOST_OS),Darwin)
18	LD.Flags += -Wl,-rpath,@loader_path/../lib/
19endif
20
21ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD))
22	LD.Flags += -Wl,-rpath,$(LibDir)
23endif
24