From 1c99b57b595c8fff6500f5e290dea8f27d436af8 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Fri, 30 Sep 2011 20:24:28 +0000 Subject: Install a copy of the libc++ headers with clang. llvm-svn: 140876 --- clang/runtime/libcxx/Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 clang/runtime/libcxx/Makefile (limited to 'clang/runtime/libcxx') diff --git a/clang/runtime/libcxx/Makefile b/clang/runtime/libcxx/Makefile new file mode 100644 index 00000000000..a65c906e8da --- /dev/null +++ b/clang/runtime/libcxx/Makefile @@ -0,0 +1,35 @@ +##===- clang/runtime/libcxx/Makefile -----------------------*- Makefile -*-===## +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +##===----------------------------------------------------------------------===## +# +# This file defines support for installing a copy of the libcxx headers where +# the driver expects them. +# +##===----------------------------------------------------------------------===## + +CLANG_LEVEL := ../.. +include $(CLANG_LEVEL)/Makefile + +PROJ_libcxx_hdrs := $(DESTDIR)$(PROJ_prefix)/lib/c++/v1 + +# Expect libcxx to be in llvm/projects/libcxx +LIBCXX_SRC_ROOT := $(LLVM_SRC_ROOT)/projects/libcxx + +ifneq ($(CLANG_NO_RUNTIME),1) +ifeq ($(shell test -d $(LIBCXX_SRC_ROOT) && echo OK),OK) + +install-local:: + mkdir -p $(PROJ_libcxx_hdrs)/ext + rsync -r --exclude=".*" $(LIBCXX_SRC_ROOT)/include/* $(PROJ_libcxx_hdrs) + chmod 755 $(PROJ_libcxx_hdrs) + chmod 644 $(PROJ_libcxx_hdrs)/* + chmod 755 $(PROJ_libcxx_hdrs)/ext + chmod 644 $(PROJ_libcxx_hdrs)/ext/* + +endif +endif -- cgit v1.2.3