1#===- tools/gold/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 := LLVMgold
12LINK_COMPONENTS := support
13LINK_LIBS_IN_SHARED := 1
14SHARED_LIBRARY := 1
15LOADABLE_MODULE := 1
16
17EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports
18
19# Include this here so we can get the configuration of the targets
20# that have been configured for construction. We have to do this 
21# early so we can set up LINK_COMPONENTS before including Makefile.rules
22include $(LEVEL)/Makefile.config
23
24# Because off_t is used in the public API, the largefile parts are required for
25# ABI compatibility.
26CXXFLAGS += -I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
27LDFLAGS += -L$(SharedLibDir)/$(SharedPrefix)
28
29include $(LEVEL)/Makefile.common
30
31LIBS += -lLTO
32