Makefile revision a6d6af308bfc9b72467b432a045a9fc6673e3821
1##===- tools/libclang/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 10CLANG_LEVEL := ../.. 11LIBRARYNAME = clang 12 13EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/libclang.exports 14 15LINK_LIBS_IN_SHARED = 1 16SHARED_LIBRARY = 1 17 18LINK_COMPONENTS := bitreader mc core 19USEDLIBS = clangFrontend.a clangDriver.a clangSema.a \ 20 clangAnalysis.a clangAST.a clangParse.a clangLex.a clangBasic.a 21 22include $(CLANG_LEVEL)/Makefile 23 24##===----------------------------------------------------------------------===## 25# FIXME: This is copied from the 'lto' makefile. Should we share this? 26##===----------------------------------------------------------------------===## 27 28ifeq ($(HOST_OS),Darwin) 29 # set dylib internal version number to llvmCore submission number 30 ifdef LLVM_SUBMIT_VERSION 31 LLVMLibsOptions := $(LLVMLibsOptions) -Wl,-current_version \ 32 -Wl,$(LLVM_SUBMIT_VERSION).$(LLVM_SUBMIT_SUBVERSION) \ 33 -Wl,-compatibility_version -Wl,1 34 endif 35 # extra options to override libtool defaults 36 LLVMLibsOptions := $(LLVMLibsOptions) \ 37 -avoid-version \ 38 -Wl,-dead_strip \ 39 -Wl,-seg1addr -Wl,0xE0000000 40 41 # Mac OS X 10.4 and earlier tools do not allow a second -install_name on command line 42 DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/') 43 ifneq ($(DARWIN_VERS),8) 44 LLVMLibsOptions := $(LLVMLibsOptions) \ 45 -no-undefined -Wl,-install_name \ 46 -Wl,"@rpath/lib$(LIBRARYNAME)$(SHLIBEXT)" 47 endif 48endif 49