Chris Lattner | bda0b62 | 2008-03-15 23:59:48 +0000 | [diff] [blame] | 1 | ##===- clang/lib/Basic/Makefile ----------------------------*- Makefile -*-===## |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 2 | # |
| 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
Chris Lattner | 6298b8c | 2007-12-29 20:02:25 +0000 | [diff] [blame] | 5 | # This file is distributed under the University of Illinois Open Source |
| 6 | # License. See LICENSE.TXT for details. |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 7 | # |
| 8 | ##===----------------------------------------------------------------------===## |
| 9 | # |
| 10 | # This implements the Basic library for the C-Language front-end. |
| 11 | # |
| 12 | ##===----------------------------------------------------------------------===## |
| 13 | |
Chris Lattner | bda0b62 | 2008-03-15 23:59:48 +0000 | [diff] [blame] | 14 | LEVEL = ../../../.. |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 15 | LIBRARYNAME := clangBasic |
| 16 | BUILD_ARCHIVE = 1 |
| 17 | CXXFLAGS = -fno-rtti |
| 18 | |
Douglas Gregor | a393e9e | 2009-03-16 23:06:59 +0000 | [diff] [blame] | 19 | CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 20 | |
| 21 | include $(LEVEL)/Makefile.common |
| 22 | |
Douglas Gregor | b8d1191 | 2009-10-05 20:33:49 +0000 | [diff] [blame] | 23 | SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion) |
| 24 | |
| 25 | CPP.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 |