2008-03-16 07:59:48 +08:00
|
|
|
##===- clang/lib/Headers/Makefile --------------------------*- Makefile -*-===##
|
2008-03-03 09:22:28 +08: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 07:59:48 +08:00
|
|
|
LEVEL = ../../../..
|
2008-03-03 09:22:28 +08:00
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2009-02-22 04:52:41 +08:00
|
|
|
# FIXME: Get version from a common place.
|
2009-09-16 07:04:22 +08:00
|
|
|
HeaderDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/lib/clang/1.1/include
|
2008-03-03 09:22:28 +08:00
|
|
|
|
|
|
|
HEADERS := $(notdir $(wildcard $(PROJ_SRC_DIR)/*.h))
|
|
|
|
|
|
|
|
OBJHEADERS := $(addprefix $(HeaderDir)/, $(HEADERS))
|
|
|
|
|
|
|
|
|
|
|
|
$(OBJHEADERS): $(HeaderDir)/%.h: $(PROJ_SRC_DIR)/%.h $(HeaderDir)/.dir
|
2008-03-09 09:29:23 +08:00
|
|
|
$(Verb) cp $< $@
|
2009-02-22 04:52:41 +08:00
|
|
|
$(Echo) Copying $(notdir $<) to build dir
|
|
|
|
|
2008-03-03 09:22:28 +08:00
|
|
|
# Hook into the standard Makefile rules.
|
|
|
|
all-local:: $(OBJHEADERS)
|
|
|
|
|
2009-09-16 07:04:22 +08:00
|
|
|
PROJ_headers := $(DESTDIR)$(PROJ_prefix)/lib/clang/1.1/include
|
2008-03-03 09:22:28 +08:00
|
|
|
|
|
|
|
INSTHEADERS := $(addprefix $(PROJ_headers)/, $(HEADERS))
|
|
|
|
|
2009-01-22 10:53:03 +08:00
|
|
|
$(PROJ_headers):
|
|
|
|
$(Verb) $(MKDIR) $@
|
|
|
|
|
|
|
|
$(INSTHEADERS): $(PROJ_headers)/%.h: $(HeaderDir)/%.h | $(PROJ_headers)
|
2008-03-03 09:22:28 +08:00
|
|
|
$(Verb) $(DataInstall) $< $(PROJ_headers)
|
2009-02-22 04:52:41 +08:00
|
|
|
$(Echo) Installing compiler include file: $(notdir $<)
|
2008-03-03 09:22:28 +08:00
|
|
|
|
|
|
|
install-local:: $(INSTHEADERS)
|
|
|
|
|