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 | 7ebe971 | 2009-08-23 05:02:18 +0000 | [diff] [blame] | 19 | # Don't install Clang libraries |
| 20 | NO_INSTALL = 1 |
| 21 | |
Douglas Gregor | a393e9e | 2009-03-16 23:06:59 +0000 | [diff] [blame] | 22 | CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 23 | |
| 24 | include $(LEVEL)/Makefile.common |
| 25 | |
Douglas Gregor | b8d1191 | 2009-10-05 20:33:49 +0000 | [diff] [blame^] | 26 | SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion) |
| 27 | |
| 28 | CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \ |
| 29 | -DSVN_REVISION='"$(SVN_REVISION)"' |
| 30 | |
| 31 | $(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir |
| 32 | @if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\ |
| 33 | echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn; \ |
| 34 | fi |
| 35 | $(ObjDir)/.ver-svn: .ver |
| 36 | $(ObjDir)/Version.o: $(ObjDir)/.ver-svn |