|
@@ -1,10 +1,10 @@
|
|
##===- clang/lib/Basic/Makefile ----------------------------*- Makefile -*-===##
|
|
##===- clang/lib/Basic/Makefile ----------------------------*- Makefile -*-===##
|
|
-#
|
|
|
|
|
|
+#
|
|
# The LLVM Compiler Infrastructure
|
|
# The LLVM Compiler Infrastructure
|
|
#
|
|
#
|
|
# This file is distributed under the University of Illinois Open Source
|
|
# This file is distributed under the University of Illinois Open Source
|
|
# License. See LICENSE.TXT for details.
|
|
# License. See LICENSE.TXT for details.
|
|
-#
|
|
|
|
|
|
+#
|
|
##===----------------------------------------------------------------------===##
|
|
##===----------------------------------------------------------------------===##
|
|
#
|
|
#
|
|
# This implements the Basic library for the C-Language front-end.
|
|
# This implements the Basic library for the C-Language front-end.
|
|
@@ -17,17 +17,24 @@ LIBRARYNAME := clangBasic
|
|
include $(CLANG_LEVEL)/Makefile
|
|
include $(CLANG_LEVEL)/Makefile
|
|
|
|
|
|
SVN_REVISION := $(strip \
|
|
SVN_REVISION := $(strip \
|
|
- $(shell $(LLVM_SRC_ROOT)/utils/GetSourceVersion $(PROJ_SRC_DIR)/../..))
|
|
|
|
|
|
+ $(shell $(LLVM_SRC_ROOT)/utils/GetSourceVersion $(PROJ_SRC_DIR)/../..))
|
|
|
|
|
|
SVN_REPOSITORY := $(strip \
|
|
SVN_REPOSITORY := $(strip \
|
|
- $(shell $(LLVM_SRC_ROOT)/utils/GetRepositoryPath $(PROJ_SRC_DIR)/../..))
|
|
|
|
|
|
+ $(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)))
|
|
|
|
|
|
CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
|
|
CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
|
|
- -DSVN_REVISION='"$(SVN_REVISION)"' -DSVN_REPOSITORY='"$(SVN_REPOSITORY)"'
|
|
|
|
|
|
+ -DSVN_REVISION='"$(SVN_REVISION)"' -DSVN_REPOSITORY='"$(SVN_REPOSITORY)"' \
|
|
|
|
+ -DLLVM_REVISION='"$(LLVM_REVISION)"' -DLLVM_REPOSITORY='"$(LLVM_REPOSITORY)"'
|
|
|
|
|
|
$(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir
|
|
$(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir
|
|
- @if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
|
|
|
|
- echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn; \
|
|
|
|
- fi
|
|
|
|
|
|
+ @if [ '$(SVN_REVISION) $(LLVM_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
|
|
|
|
+ echo '$(SVN_REVISION) $(LLVM_REVISION)' > $(ObjDir)/.ver-svn; \
|
|
|
|
+ fi
|
|
$(ObjDir)/.ver-svn: .ver
|
|
$(ObjDir)/.ver-svn: .ver
|
|
$(ObjDir)/Version.o: $(ObjDir)/.ver-svn
|
|
$(ObjDir)/Version.o: $(ObjDir)/.ver-svn
|