1 ##===- clang/lib/Driver/Makefile ---------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
11 LIBRARYNAME := clangDriver
16 include $(LEVEL)/Makefile.common
18 SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion)
20 CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
21 -DSVN_REVISION='"$(SVN_REVISION)"'
23 $(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir
24 @if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
25 echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn; \
27 $(ObjDir)/.ver-svn: .ver
28 $(ObjDir)/Driver.o: $(ObjDir)/.ver-svn