Makefile revision 14ea5696417a8e8d244a07091284cdeba57c6d4d
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
14LEVEL = ../../../..
15LIBRARYNAME := clangBasic
16BUILD_ARCHIVE = 1
17CXXFLAGS = -fno-rtti
18
19CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
20
21include $(LEVEL)/Makefile.common
22
23SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion)
24
25CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
26         -DSVN_REVISION='"$(SVN_REVISION)"'
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