Makefile revision 897b1b58af65f9e135df994b248553065af31a50
1##===- tools/lto/Makefile ----------------------------------*- Makefile -*-===##
2# 
3#                     The LLVM Compiler Infrastructure
4#
5# This file was developed by Devang Patel and is distributed under
6# the University of Illinois Open Source License. See LICENSE.TXT for details.
7# 
8##===----------------------------------------------------------------------===##
9
10LEVEL = ../..
11LIBRARYNAME = LLVMlto
12
13# Include this here so we can get the configuration of the targets
14# that have been configured for construction. We have to do this 
15# early so we can set up LINK_COMPONENTS before includeing Makefile.rules
16include $(LEVEL)/Makefile.config
17
18LINK_LIBS_IN_SHARED = 1
19ifeq ($(OS),Darwin)
20  SHARED_LIBRARY = 1
21  LOADABLE_MODULE = 1
22  DONT_BUILD_RELINKED = 1
23else
24  BUILD_ARCHIVE = 1
25endif
26
27LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bcreader bcwriter
28
29include $(LEVEL)/Makefile.common
30
31