2008-03-16 07:59:48 +08:00
|
|
|
##===- clang/lib/Basic/Makefile ----------------------------*- Makefile -*-===##
|
2012-03-02 22:37:41 +08:00
|
|
|
#
|
2006-06-18 13:43:12 +08:00
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
2007-12-30 04:02:25 +08:00
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
2012-03-02 22:37:41 +08:00
|
|
|
#
|
2006-06-18 13:43:12 +08:00
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
#
|
|
|
|
# This implements the Basic library for the C-Language front-end.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
2010-06-09 04:34:18 +08:00
|
|
|
CLANG_LEVEL := ../..
|
2006-06-18 13:43:12 +08:00
|
|
|
LIBRARYNAME := clangBasic
|
|
|
|
|
2010-06-09 04:34:18 +08:00
|
|
|
include $(CLANG_LEVEL)/Makefile
|
2006-06-18 13:43:12 +08:00
|
|
|
|
2014-12-11 07:49:03 +08:00
|
|
|
SVN_REVISION := $(strip \
|
2012-03-02 22:37:41 +08:00
|
|
|
$(shell $(LLVM_SRC_ROOT)/utils/GetSourceVersion $(PROJ_SRC_DIR)/../..))
|
2009-10-06 04:33:49 +08:00
|
|
|
|
2014-12-11 07:49:03 +08:00
|
|
|
SVN_REPOSITORY := $(strip \
|
2012-03-02 22:37:41 +08:00
|
|
|
$(shell $(LLVM_SRC_ROOT)/utils/GetRepositoryPath $(PROJ_SRC_DIR)/../..))
|
|
|
|
|
|
|
|
LLVM_REVISION := $(strip \
|
|
|
|
$(shell $(LLVM_SRC_ROOT)/utils/GetSourceVersion $(LLVM_SRC_ROOT)))
|
|
|
|
|
|
|
|
LLVM_REPOSITORY := $(strip \
|
|
|
|
$(shell $(LLVM_SRC_ROOT)/utils/GetRepositoryPath $(LLVM_SRC_ROOT)))
|
2010-09-30 01:57:10 +08:00
|
|
|
|
2009-10-06 04:33:49 +08:00
|
|
|
CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
|
2014-12-11 07:49:03 +08:00
|
|
|
-DSVN_REVISION='"$(SVN_REVISION)"' -DSVN_REPOSITORY='"$(SVN_REPOSITORY)"' \
|
2012-03-02 22:37:41 +08:00
|
|
|
-DLLVM_REVISION='"$(LLVM_REVISION)"' -DLLVM_REPOSITORY='"$(LLVM_REPOSITORY)"'
|
2009-10-06 04:33:49 +08:00
|
|
|
|
|
|
|
$(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir
|
2014-12-11 07:49:03 +08:00
|
|
|
@if [ '$(SVN_REVISION) $(LLVM_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
|
|
|
|
echo '$(SVN_REVISION) $(LLVM_REVISION)' > $(ObjDir)/.ver-svn; \
|
2012-03-03 00:06:37 +08:00
|
|
|
fi
|
2009-10-06 04:33:49 +08:00
|
|
|
$(ObjDir)/.ver-svn: .ver
|
|
|
|
$(ObjDir)/Version.o: $(ObjDir)/.ver-svn
|