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.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
|
|
|
LEVEL = ../..
|
2009-10-12 07:10:09 +08:00
|
|
|
LIBRARYNAME = libLLVMgold
|
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
|
|
|
|
|
2009-02-05 18:21:34 +08:00
|
|
|
LINK_LIBS_IN_SHARED=1
|
|
|
|
SHARED_LIBRARY = 1
|
|
|
|
BUILD_ARCHIVE = 0
|
2009-10-12 07:10:09 +08:00
|
|
|
LOADABLE_MODULE = 1
|
2009-02-05 18:21:34 +08:00
|
|
|
|
2009-10-12 07:10:09 +08:00
|
|
|
LINK_COMPONENTS := support system
|
2009-02-26 15:56:49 +08:00
|
|
|
LIBS += -llto
|
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.
|
|
|
|
CXXFLAGS+=-I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -lLTO
|
2009-05-16 12:00:00 +08:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|