blob: c47bf62b99f24764668b4e0bb4053e4e47bb4f65 [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:
Mike Stump8f12e272009-03-18 20:12:50 +000022 @if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
23 echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn; \
Mike Stump8944c382009-03-18 18:45:55 +000024 fi
Mike Stump8f12e272009-03-18 20:12:50 +000025$(ObjDir)/.ver-svn: .ver
26$(ObjDir)/Driver.o: $(ObjDir)/.ver-svn