Files
clang-p2996/lldb/tools/driver/Makefile
Greg Clayton c8e11e17aa Patch from Jean-Daniel Dupas:
Makefile patch to explicitly use PROJ_SRC_DIR when required. It fixes 
        build when obj dir is not source dir. 

I also fixed a build warning in ClangResultSynthesizer.cpp.

llvm-svn: 108210
2010-07-12 23:14:00 +00:00

30 lines
938 B
Makefile

##===- tools/driver/Makefile -------------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LLDB_LEVEL := ../..
TOOLNAME = lldb
LD.Flags += -ledit -llldb -llldbUtility
# # Include this here so we can get the configuration of the targets that have
# # been configured for construction. We have to do this early so we can set up
# # LINK_COMPONENTS before including Makefile.rules
include $(LLDB_LEVEL)/../../Makefile.config
ifeq ($(HOST_OS),Darwin)
LD.Flags += -Wl,-rpath,@loader_path/../lib/
LD.Flags += -Wl,-sectcreate -Wl,__TEXT -Wl,__info_plist -Wl,"$(PROJ_SRC_DIR)/lldb-Info.plist"
endif
ifeq ($(HOST_OS),Linux)
LD.Flags += -Wl,-rpath,$(LibDir)
endif
include $(LLDB_LEVEL)/Makefile