Makefile revision b9db9d5bb01963774f28540dbe2c5a11f586ff29
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##===----------------------------------------------------------------------===##
9LLDB_LEVEL := ../..
10
11TOOLNAME = lldb
12
13NO_PEDANTIC = 1
14
15LLVMLibsOptions += -ledit -llldb -llldbUtility
16
17include $(LLDB_LEVEL)/Makefile
18
19ifeq ($(HOST_OS),Darwin)
20	LLVMLibsOptions += -Wl,-rpath,@loader_path/../lib/
21	LLVMLibsOptions += -Wl,-sectcreate -Wl,__TEXT -Wl,__info_plist -Wl,"$(PROJ_SRC_DIR)/lldb-Info.plist"
22endif
23
24ifeq ($(HOST_OS),Linux)
25	LLVMLibsOptions += -Wl,-rpath,$(LibDir)
26endif
27
28ifeq ($(HOST_OS),FreeBSD)
29	CPP.Flags += -I/usr/include/edit #-v
30	LLVMLibsOptions += -Wl,-rpath,$(LibDir)
31endif
32
33