Bob Wilson | da79da2 | 2011-09-30 20:24:28 +0000 | [diff] [blame] | 1 | ##===- clang/runtime/libcxx/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 | # |
| 10 | # This file defines support for installing a copy of the libcxx headers where |
| 11 | # the driver expects them. |
| 12 | # |
| 13 | ##===----------------------------------------------------------------------===## |
| 14 | |
| 15 | CLANG_LEVEL := ../.. |
| 16 | include $(CLANG_LEVEL)/Makefile |
| 17 | |
Justin Bogner | 3604841 | 2013-11-15 18:07:57 +0000 | [diff] [blame] | 18 | PROJ_libcxx_hdrs := $(DESTDIR)$(PROJ_prefix)/include |
Bob Wilson | da79da2 | 2011-09-30 20:24:28 +0000 | [diff] [blame] | 19 | |
| 20 | # Expect libcxx to be in llvm/projects/libcxx |
| 21 | LIBCXX_SRC_ROOT := $(LLVM_SRC_ROOT)/projects/libcxx |
| 22 | |
| 23 | ifneq ($(CLANG_NO_RUNTIME),1) |
| 24 | ifeq ($(shell test -d $(LIBCXX_SRC_ROOT) && echo OK),OK) |
| 25 | |
| 26 | install-local:: |
Bob Wilson | a10678d | 2011-11-27 06:13:25 +0000 | [diff] [blame] | 27 | $(MAKE) -C $(LIBCXX_SRC_ROOT) \ |
Bob Wilson | b3381f6 | 2012-01-21 06:25:34 +0000 | [diff] [blame] | 28 | HEADER_DIR=$(PROJ_libcxx_hdrs) installheaders |
Bob Wilson | da79da2 | 2011-09-30 20:24:28 +0000 | [diff] [blame] | 29 | |
| 30 | endif |
| 31 | endif |