xref: /minix3/external/bsd/llvm/dist/clang/lib/Basic/Makefile (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc##===- clang/lib/Basic/Makefile ----------------------------*- Makefile -*-===##
2*f4a2713aSLionel Sambuc#
3*f4a2713aSLionel Sambuc#                     The LLVM Compiler Infrastructure
4*f4a2713aSLionel Sambuc#
5*f4a2713aSLionel Sambuc# This file is distributed under the University of Illinois Open Source
6*f4a2713aSLionel Sambuc# License. See LICENSE.TXT for details.
7*f4a2713aSLionel Sambuc#
8*f4a2713aSLionel Sambuc##===----------------------------------------------------------------------===##
9*f4a2713aSLionel Sambuc#
10*f4a2713aSLionel Sambuc#  This implements the Basic library for the C-Language front-end.
11*f4a2713aSLionel Sambuc#
12*f4a2713aSLionel Sambuc##===----------------------------------------------------------------------===##
13*f4a2713aSLionel Sambuc
14*f4a2713aSLionel SambucCLANG_LEVEL := ../..
15*f4a2713aSLionel SambucLIBRARYNAME := clangBasic
16*f4a2713aSLionel Sambuc
17*f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/Makefile
18*f4a2713aSLionel Sambuc
19*f4a2713aSLionel SambucSVN_REVISION := $(strip \
20*f4a2713aSLionel Sambuc        $(shell $(LLVM_SRC_ROOT)/utils/GetSourceVersion $(PROJ_SRC_DIR)/../..))
21*f4a2713aSLionel Sambuc
22*f4a2713aSLionel SambucSVN_REPOSITORY := $(strip \
23*f4a2713aSLionel Sambuc        $(shell $(LLVM_SRC_ROOT)/utils/GetRepositoryPath $(PROJ_SRC_DIR)/../..))
24*f4a2713aSLionel Sambuc
25*f4a2713aSLionel SambucLLVM_REVISION := $(strip \
26*f4a2713aSLionel Sambuc        $(shell $(LLVM_SRC_ROOT)/utils/GetSourceVersion $(LLVM_SRC_ROOT)))
27*f4a2713aSLionel Sambuc
28*f4a2713aSLionel SambucLLVM_REPOSITORY := $(strip \
29*f4a2713aSLionel Sambuc        $(shell $(LLVM_SRC_ROOT)/utils/GetRepositoryPath $(LLVM_SRC_ROOT)))
30*f4a2713aSLionel Sambuc
31*f4a2713aSLionel SambucCPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
32*f4a2713aSLionel Sambuc         -DSVN_REVISION='"$(SVN_REVISION)"' -DSVN_REPOSITORY='"$(SVN_REPOSITORY)"' \
33*f4a2713aSLionel Sambuc         -DLLVM_REVISION='"$(LLVM_REVISION)"' -DLLVM_REPOSITORY='"$(LLVM_REPOSITORY)"'
34*f4a2713aSLionel Sambuc
35*f4a2713aSLionel Sambuc$(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir
36*f4a2713aSLionel Sambuc	@if [ '$(SVN_REVISION) $(LLVM_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
37*f4a2713aSLionel Sambuc		echo '$(SVN_REVISION) $(LLVM_REVISION)' > $(ObjDir)/.ver-svn;                    \
38*f4a2713aSLionel Sambuc	fi
39*f4a2713aSLionel Sambuc$(ObjDir)/.ver-svn: .ver
40*f4a2713aSLionel Sambuc$(ObjDir)/Version.o: $(ObjDir)/.ver-svn
41