aboutsummaryrefslogtreecommitdiff
path: root/tools/driver/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/driver/Makefile')
-rw-r--r--tools/driver/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/driver/Makefile b/tools/driver/Makefile
new file mode 100644
index 000000000000..05a245721bde
--- /dev/null
+++ b/tools/driver/Makefile
@@ -0,0 +1,36 @@
+##===- 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
+
+NO_PEDANTIC = 1
+
+include $(LLDB_LEVEL)/Makefile
+
+ifneq ($(HOST_OS),MingW)
+LLVMLibsOptions += -ledit -llldb -llldbUtility
+else
+LLVMLibsOptions += -llldb -llldbUtility
+CPP.Flags += -DIMPORT_LIBLLDB
+endif
+
+ifeq ($(HOST_OS),Darwin)
+ LLVMLibsOptions += -Wl,-rpath,@loader_path/../lib/
+ LLVMLibsOptions += -Wl,-sectcreate -Wl,__TEXT -Wl,__info_plist -Wl,"$(PROJ_SRC_DIR)/lldb-Info.plist"
+endif
+
+ifneq (,$(filter $(HOST_OS), Linux GNU/kFreeBSD NetBSD))
+ LLVMLibsOptions += -Wl,-rpath,$(LibDir)
+endif
+
+ifeq ($(HOST_OS),FreeBSD)
+ CPP.Flags += -I/usr/include/edit #-v
+ LLVMLibsOptions += -Wl,-rpath,$(LibDir)
+endif