]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Driver/Makefile
Import Clang r73340.
[FreeBSD/FreeBSD.git] / lib / Driver / Makefile
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
15
16 include $(LEVEL)/Makefile.common
17
18 SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion)
19
20 CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
21          -DSVN_REVISION='"$(SVN_REVISION)"'
22
23 $(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir
24         @if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
25                 echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn;                    \
26         fi
27 $(ObjDir)/.ver-svn: .ver
28 $(ObjDir)/Driver.o: $(ObjDir)/.ver-svn