2008-03-16 07:59:48 +08:00
|
|
|
##===- clang/lib/Basic/Makefile ----------------------------*- Makefile -*-===##
|
2006-06-18 13:43:12 +08:00
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
2007-12-30 04:02:25 +08:00
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
2006-06-18 13:43:12 +08:00
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
#
|
|
|
|
# This implements the Basic library for the C-Language front-end.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
2008-03-16 07:59:48 +08:00
|
|
|
LEVEL = ../../../..
|
2006-06-18 13:43:12 +08:00
|
|
|
LIBRARYNAME := clangBasic
|
|
|
|
BUILD_ARCHIVE = 1
|
|
|
|
|
2009-03-17 07:06:59 +08:00
|
|
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
2010-01-23 06:29:50 +08:00
|
|
|
ifdef CLANG_VENDOR
|
|
|
|
CPPFLAGS += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
|
|
|
|
endif
|
2006-06-18 13:43:12 +08:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2010-01-22 00:56:47 +08:00
|
|
|
SVN_REVISION := $(shell $(LLVM_SRC_ROOT)/utils/GetSourceVersion $(PROJ_SRC_DIR)/../..)
|
2009-10-06 04:33:49 +08:00
|
|
|
|
|
|
|
CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
|
|
|
|
-DSVN_REVISION='"$(SVN_REVISION)"'
|
|
|
|
|
|
|
|
$(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir
|
|
|
|
@if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
|
|
|
|
echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn; \
|
|
|
|
fi
|
|
|
|
$(ObjDir)/.ver-svn: .ver
|
|
|
|
$(ObjDir)/Version.o: $(ObjDir)/.ver-svn
|