xref: /minix3/external/bsd/llvm/dist/clang/runtime/libcxx/Makefile (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc##===- clang/runtime/libcxx/Makefile -----------------------*- Makefile -*-===##
2*f4a2713aSLionel Sambuc#
3*f4a2713aSLionel Sambuc#                     The LLVM Compiler Infrastructure
4*f4a2713aSLionel Sambuc#
5*f4a2713aSLionel Sambuc# This file is distributed under the University of Illinois Open Source
6*f4a2713aSLionel Sambuc# License. See LICENSE.TXT for details.
7*f4a2713aSLionel Sambuc#
8*f4a2713aSLionel Sambuc##===----------------------------------------------------------------------===##
9*f4a2713aSLionel Sambuc#
10*f4a2713aSLionel Sambuc# This file defines support for installing a copy of the libcxx headers where
11*f4a2713aSLionel Sambuc# the driver expects them.
12*f4a2713aSLionel Sambuc#
13*f4a2713aSLionel Sambuc##===----------------------------------------------------------------------===##
14*f4a2713aSLionel Sambuc
15*f4a2713aSLionel SambucCLANG_LEVEL := ../..
16*f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/Makefile
17*f4a2713aSLionel Sambuc
18*f4a2713aSLionel SambucPROJ_libcxx_hdrs := $(DESTDIR)$(PROJ_prefix)/include
19*f4a2713aSLionel Sambuc
20*f4a2713aSLionel Sambuc# Expect libcxx to be in llvm/projects/libcxx
21*f4a2713aSLionel SambucLIBCXX_SRC_ROOT := $(LLVM_SRC_ROOT)/projects/libcxx
22*f4a2713aSLionel Sambuc
23*f4a2713aSLionel Sambucifneq ($(CLANG_NO_RUNTIME),1)
24*f4a2713aSLionel Sambucifeq ($(shell test -d $(LIBCXX_SRC_ROOT) && echo OK),OK)
25*f4a2713aSLionel Sambuc
26*f4a2713aSLionel Sambucinstall-local::
27*f4a2713aSLionel Sambuc	$(MAKE) -C $(LIBCXX_SRC_ROOT) \
28*f4a2713aSLionel Sambuc	  HEADER_DIR=$(PROJ_libcxx_hdrs) installheaders
29*f4a2713aSLionel Sambuc
30*f4a2713aSLionel Sambucendif
31*f4a2713aSLionel Sambucendif
32