blob: c6a31b0d3c806231510d411e29fd70a2a7898b0e [file] [log] [blame]
Daniel Dunbar3ede8d02009-03-02 19:59:07 +00001##===- 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
10LEVEL = ../../../..
11LIBRARYNAME := clangDriver
12BUILD_ARCHIVE = 1
13CXXFLAGS = -fno-rtti
14
Mike Stump8944c382009-03-18 18:45:55 +000015SVN_REVISION = $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion)
16
17CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include -DTARGET_TRIPLE='"$(TARGET_TRIPLE)"' -DSVN_REVISION='"$(SVN_REVISION)"'
Daniel Dunbar3ede8d02009-03-02 19:59:07 +000018
19include $(LEVEL)/Makefile.common
20
Mike Stump8944c382009-03-18 18:45:55 +000021.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