blob: 2a8834dc98d0dbde95596eff2cba7d9f14d1532a [file] [log] [blame]
Greg Clayton54e7afa2010-07-09 20:39:50 +00001##===- tools/driver/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
12
13LD.Flags += -ledit -llldb -llldbUtility
14
Stephen Wilson52ce5612011-03-13 18:17:16 +000015include $(LLDB_LEVEL)/Makefile
Greg Clayton54e7afa2010-07-09 20:39:50 +000016
17ifeq ($(HOST_OS),Darwin)
18 LD.Flags += -Wl,-rpath,@loader_path/../lib/
Greg Clayton980d0672010-07-12 23:14:00 +000019 LD.Flags += -Wl,-sectcreate -Wl,__TEXT -Wl,__info_plist -Wl,"$(PROJ_SRC_DIR)/lldb-Info.plist"
Greg Clayton54e7afa2010-07-09 20:39:50 +000020endif
21
Eli Friedman26f93ce2010-07-09 22:11:43 +000022ifeq ($(HOST_OS),Linux)
23 LD.Flags += -Wl,-rpath,$(LibDir)
24endif
25
Johnny Chen4b663292011-08-02 20:52:42 +000026ifeq ($(HOST_OS),FreeBSD)
27 CPP.Flags += -I/usr/include/edit #-v
Johnny Chen4b663292011-08-02 20:52:42 +000028 LD.Flags += -Wl,-rpath,$(LibDir)
29endif
30