2008-03-16 02:59:48 +03:00
|
|
|
##===- clang/lib/Headers/Makefile --------------------------*- Makefile -*-===##
|
2008-03-03 04:22:28 +03:00
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
2008-03-16 02:59:48 +03:00
|
|
|
LEVEL = ../../../..
|
2008-03-03 04:22:28 +03:00
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2009-09-16 05:26:05 +04:00
|
|
|
CLANG_VERSION := $(shell cat $(PROJ_SRC_DIR)/../../VER)
|
|
|
|
|
|
|
|
HeaderDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/lib/clang/$(CLANG_VERSION)/include
|
2008-03-03 04:22:28 +03:00
|
|
|
|
|
|
|
HEADERS := $(notdir $(wildcard $(PROJ_SRC_DIR)/*.h))
|
|
|
|
|
|
|
|
OBJHEADERS := $(addprefix $(HeaderDir)/, $(HEADERS))
|
|
|
|
|
|
|
|
|
|
|
|
$(OBJHEADERS): $(HeaderDir)/%.h: $(PROJ_SRC_DIR)/%.h $(HeaderDir)/.dir
|
2008-03-09 04:29:23 +03:00
|
|
|
$(Verb) cp $< $@
|
2009-02-21 23:52:41 +03:00
|
|
|
$(Echo) Copying $(notdir $<) to build dir
|
|
|
|
|
2008-03-03 04:22:28 +03:00
|
|
|
# Hook into the standard Makefile rules.
|
|
|
|
all-local:: $(OBJHEADERS)
|
|
|
|
|
2009-09-16 05:26:05 +04:00
|
|
|
PROJ_headers := $(DESTDIR)$(PROJ_prefix)/lib/clang/$(CLANG_VERSION)/include
|
2008-03-03 04:22:28 +03:00
|
|
|
|
|
|
|
INSTHEADERS := $(addprefix $(PROJ_headers)/, $(HEADERS))
|
|
|
|
|
2009-01-22 05:53:03 +03:00
|
|
|
$(PROJ_headers):
|
|
|
|
$(Verb) $(MKDIR) $@
|
|
|
|
|
|
|
|
$(INSTHEADERS): $(PROJ_headers)/%.h: $(HeaderDir)/%.h | $(PROJ_headers)
|
2008-03-03 04:22:28 +03:00
|
|
|
$(Verb) $(DataInstall) $< $(PROJ_headers)
|
2009-02-21 23:52:41 +03:00
|
|
|
$(Echo) Installing compiler include file: $(notdir $<)
|
2008-03-03 04:22:28 +03:00
|
|
|
|
|
|
|
install-local:: $(INSTHEADERS)
|