2009-02-03 15:13:24 +08:00
|
|
|
#===- tools/gold/Makefile ----------------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
2011-10-19 03:27:24 +08:00
|
|
|
LEVEL := ../..
|
|
|
|
LIBRARYNAME := LLVMgold
|
|
|
|
LINK_LIBS_IN_SHARED := 1
|
|
|
|
SHARED_LIBRARY := 1
|
|
|
|
LOADABLE_MODULE := 1
|
2009-02-03 15:13:24 +08:00
|
|
|
|
2010-04-16 08:43:25 +08:00
|
|
|
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports
|
|
|
|
|
2009-02-03 15:13:24 +08:00
|
|
|
# Include this here so we can get the configuration of the targets
|
|
|
|
# that have been configured for construction. We have to do this
|
|
|
|
# early so we can set up LINK_COMPONENTS before including Makefile.rules
|
|
|
|
include $(LEVEL)/Makefile.config
|
|
|
|
|
2014-08-22 04:28:55 +08:00
|
|
|
LINK_COMPONENTS := $(TARGETS_TO_BUILD) Linker BitWriter IPO
|
2014-06-25 16:04:58 +08:00
|
|
|
|
2009-02-03 15:13:24 +08:00
|
|
|
# Because off_t is used in the public API, the largefile parts are required for
|
|
|
|
# ABI compatibility.
|
2011-10-19 03:27:24 +08:00
|
|
|
CXXFLAGS += -I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
|
2012-08-27 11:03:07 +08:00
|
|
|
LDFLAGS += -L$(SharedLibDir)/$(SharedPrefix)
|
2009-05-16 12:00:00 +08:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
2012-08-27 11:03:07 +08:00
|
|
|
|