1 ##===- clang/lib/Basic/Makefile ----------------------------*- Makefile -*-===## 2 # 3 # The LLVM Compiler Infrastructure 4 # 5 # This file is distributed under the University of Illinois Open Source 6 # License. See LICENSE.TXT for details. 7 # 8 ##===----------------------------------------------------------------------===## 9 # 10 # This implements the Basic library for the C-Language front-end. 11 # 12 ##===----------------------------------------------------------------------===## 13 14 CLANG_LEVEL := ../.. 15 LIBRARYNAME := clangBasic 16 17 include $(CLANG_LEVEL)/Makefile 18 19 SVN_REVISION := $(strip \ 20 $(shell $(LLVM_SRC_ROOT)/utils/GetSourceVersion $(PROJ_SRC_DIR)/../..)) 21 22 SVN_REPOSITORY := $(strip \ 23 $(shell $(LLVM_SRC_ROOT)/utils/GetRepositoryPath $(PROJ_SRC_DIR)/../..)) 24 25 CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \ 26 -DSVN_REVISION='"$(SVN_REVISION)"' -DSVN_REPOSITORY='"$(SVN_REPOSITORY)"' 27 28 $(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir 29 @if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\ 30 echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn; \ 31 fi 32 $(ObjDir)/.ver-svn: .ver 33 $(ObjDir)/Version.o: $(ObjDir)/.ver-svn 34