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 NO_PEDANTIC = 1 14 15 LLVMLibsOptions += -ledit -llldb -llldbUtility 16 17 include $(LLDB_LEVEL)/Makefile 18 19 ifeq ($(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" 22 endif 23 24 ifneq (,$(filter $(HOST_OS), Linux GNU/kFreeBSD)) 25 LLVMLibsOptions += -Wl,-rpath,$(LibDir) 26 endif 27 28 ifeq ($(HOST_OS),FreeBSD) 29 CPP.Flags += -I/usr/include/edit #-v 30 LLVMLibsOptions += -Wl,-rpath,$(LibDir) 31 endif 32 33