Greg Clayton | 54e7afa | 2010-07-09 20:39:50 +0000 | [diff] [blame] | 1 | ##===- 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 | ##===----------------------------------------------------------------------===## |
| 9 | LLDB_LEVEL := ../.. |
| 10 | |
| 11 | TOOLNAME = lldb |
| 12 | |
| 13 | LD.Flags += -ledit -llldb -llldbUtility |
| 14 | |
Stephen Wilson | 52ce561 | 2011-03-13 18:17:16 +0000 | [diff] [blame] | 15 | include $(LLDB_LEVEL)/Makefile |
Greg Clayton | 54e7afa | 2010-07-09 20:39:50 +0000 | [diff] [blame] | 16 | |
| 17 | ifeq ($(HOST_OS),Darwin) |
| 18 | LD.Flags += -Wl,-rpath,@loader_path/../lib/ |
Greg Clayton | 980d067 | 2010-07-12 23:14:00 +0000 | [diff] [blame] | 19 | LD.Flags += -Wl,-sectcreate -Wl,__TEXT -Wl,__info_plist -Wl,"$(PROJ_SRC_DIR)/lldb-Info.plist" |
Greg Clayton | 54e7afa | 2010-07-09 20:39:50 +0000 | [diff] [blame] | 20 | endif |
| 21 | |
Eli Friedman | 26f93ce | 2010-07-09 22:11:43 +0000 | [diff] [blame] | 22 | ifeq ($(HOST_OS),Linux) |
| 23 | LD.Flags += -Wl,-rpath,$(LibDir) |
| 24 | endif |
| 25 | |
Johnny Chen | 4b66329 | 2011-08-02 20:52:42 +0000 | [diff] [blame] | 26 | ifeq ($(HOST_OS),FreeBSD) |
| 27 | CPP.Flags += -I/usr/include/edit #-v |
Johnny Chen | 4b66329 | 2011-08-02 20:52:42 +0000 | [diff] [blame] | 28 | LD.Flags += -Wl,-rpath,$(LibDir) |
| 29 | endif |
| 30 | |