llvm-project/clang/lib/Headers/Makefile

41 lines
1.1 KiB
Makefile
Raw Normal View History

##===- clang/lib/Headers/Makefile --------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
include $(LEVEL)/Makefile.common
# 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
HEADERS := $(notdir $(wildcard $(PROJ_SRC_DIR)/*.h))
OBJHEADERS := $(addprefix $(HeaderDir)/, $(HEADERS))
$(OBJHEADERS): $(HeaderDir)/%.h: $(PROJ_SRC_DIR)/%.h $(HeaderDir)/.dir
$(Verb) cp $< $@
$(Echo) Copying $(notdir $<) to build dir
# 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
INSTHEADERS := $(addprefix $(PROJ_headers)/, $(HEADERS))
$(PROJ_headers):
$(Verb) $(MKDIR) $@
$(INSTHEADERS): $(PROJ_headers)/%.h: $(HeaderDir)/%.h | $(PROJ_headers)
$(Verb) $(DataInstall) $< $(PROJ_headers)
$(Echo) Installing compiler include file: $(notdir $<)
install-local:: $(INSTHEADERS)