blob: b709436491a9bc34a342208ce3235d7b19f9f62e [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
Douglas Gregor7ebe9712009-08-23 05:02:18 +000015# Don't install Clang libraries
16NO_INSTALL = 1
Daniel Dunbar3ede8d02009-03-02 19:59:07 +000017
18include $(LEVEL)/Makefile.common
19
Chris Lattner71061bf2009-03-20 05:23:53 +000020SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion)
21
22CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
Mike Stumpa44ae132009-03-26 21:25:00 +000023 -DSVN_REVISION='"$(SVN_REVISION)"'
Chris Lattner71061bf2009-03-20 05:23:53 +000024
Daniel Dunbaraf979372009-06-01 22:15:35 +000025$(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir
Mike Stump8f12e272009-03-18 20:12:50 +000026 @if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
27 echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn; \
Mike Stump8944c382009-03-18 18:45:55 +000028 fi
Mike Stump8f12e272009-03-18 20:12:50 +000029$(ObjDir)/.ver-svn: .ver
30$(ObjDir)/Driver.o: $(ObjDir)/.ver-svn