Daniel Dunbar | 3ede8d0 | 2009-03-02 19:59:07 +0000 | [diff] [blame] | 1 | ##===- clang/lib/Driver/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 | LEVEL = ../../../.. |
| 11 | LIBRARYNAME := clangDriver |
| 12 | BUILD_ARCHIVE = 1 |
| 13 | CXXFLAGS = -fno-rtti |
| 14 | |
Mike Stump | 8944c38 | 2009-03-18 18:45:55 +0000 | [diff] [blame^] | 15 | SVN_REVISION = $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion) |
| 16 | |
| 17 | CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include -DTARGET_TRIPLE='"$(TARGET_TRIPLE)"' -DSVN_REVISION='"$(SVN_REVISION)"' |
Daniel Dunbar | 3ede8d0 | 2009-03-02 19:59:07 +0000 | [diff] [blame] | 18 | |
| 19 | include $(LEVEL)/Makefile.common |
| 20 | |
Mike Stump | 8944c38 | 2009-03-18 18:45:55 +0000 | [diff] [blame^] | 21 | .ver: |
| 22 | @if [ '$(SVN_REVISION)' != '$(shell cat .ver-svn 2>/dev/null)' ]; then \ |
| 23 | echo '$(SVN_REVISION)' > .ver-svn; \ |
| 24 | fi |
| 25 | .ver-svn: .ver |
| 26 | $(ObjDir)/Driver.o: .ver-svn |