blob: d163f0fe9efca45438fee673e738b1a79b76c70a [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
Daniel Dunbar3ede8d02009-03-02 19:59:07 +000015
16include $(LEVEL)/Makefile.common
17
Chris Lattner71061bf2009-03-20 05:23:53 +000018SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion)
19
20CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
Mike Stumpa44ae132009-03-26 21:25:00 +000021 -DSVN_REVISION='"$(SVN_REVISION)"'
Chris Lattner71061bf2009-03-20 05:23:53 +000022
Daniel Dunbaraf979372009-06-01 22:15:35 +000023$(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir
Mike Stump8f12e272009-03-18 20:12:50 +000024 @if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
25 echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn; \
Mike Stump8944c382009-03-18 18:45:55 +000026 fi
Mike Stump8f12e272009-03-18 20:12:50 +000027$(ObjDir)/.ver-svn: .ver
28$(ObjDir)/Driver.o: $(ObjDir)/.ver-svn