1da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson##===- clang/runtime/libcxx/Makefile -----------------------*- Makefile -*-===##
2da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson#
3da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson#                     The LLVM Compiler Infrastructure
4da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson#
5da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson# This file is distributed under the University of Illinois Open Source
6da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson# License. See LICENSE.TXT for details.
7da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson#
8da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson##===----------------------------------------------------------------------===##
9da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson#
10da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson# This file defines support for installing a copy of the libcxx headers where
11da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson# the driver expects them.
12da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson#
13da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson##===----------------------------------------------------------------------===##
14da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson
15da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob WilsonCLANG_LEVEL := ../..
16da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilsoninclude $(CLANG_LEVEL)/Makefile
17da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson
183604841af31cbd337ffab781a7fe81a68a1455f0Justin BognerPROJ_libcxx_hdrs := $(DESTDIR)$(PROJ_prefix)/include
19da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson
20da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson# Expect libcxx to be in llvm/projects/libcxx
21da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob WilsonLIBCXX_SRC_ROOT := $(LLVM_SRC_ROOT)/projects/libcxx
22da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson
23da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilsonifneq ($(CLANG_NO_RUNTIME),1)
24da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilsonifeq ($(shell test -d $(LIBCXX_SRC_ROOT) && echo OK),OK)
25da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson
26da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilsoninstall-local::
27a10678d2924070f6cf9236107785bc46f36e52d3Bob Wilson	$(MAKE) -C $(LIBCXX_SRC_ROOT) \
28b3381f60960d355750eaf0fcf9890fd57d76bb32Bob Wilson	  HEADER_DIR=$(PROJ_libcxx_hdrs) installheaders
29da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilson
30da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilsonendif
31da79da2a8748e4d58eeedd1b7f39bf4fb8a86d10Bob Wilsonendif
32