Makefile revision 30f63adef8987a90e3bed62cbabb9cdcdd9c3f58
14ee2ad04344446e610172a0e73949212923014dfSebastian Redl##===- tools/lto/Makefile ----------------------------------*- Makefile -*-===##
22cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor# 
32cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor#                     The LLVM Compiler Infrastructure
42cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor#
52cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor# This file was developed by Devang Patel and is distributed under
62cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor# the University of Illinois Open Source License. See LICENSE.TXT for details.
72cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor# 
82cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor##===----------------------------------------------------------------------===##
92cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor
10a4232eb646d89e7d52424bb42eb87d9061f39e63Sebastian RedlLEVEL = ../..
112cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas GregorLIBRARYNAME = LLVMlto
122cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor
132cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas GregorLINK_LIBS_IN_SHARED = 1
147faa2ec03a7ef120ac165bb45b6c70a8b20c9f1cSebastian RedlSHARED_LIBRARY = 1
150eca89e9890db4d8336ce762a5b359a1d58ca02bArgyrios KyrtzidisLOADABLE_MODULE = 1
16e737f5041a36d0befb39ffeed8d50ba15916d3daDouglas GregorDONT_BUILD_RELINKED = 1
17e737f5041a36d0befb39ffeed8d50ba15916d3daDouglas Gregor
182cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor# Include this here so we can get the configuration of the targets
192cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor# that have been configured for construction. We have to do this 
202cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor# early so we can set up USEDLIBS properly before includeing Makefile.rules
212a7fb27913999d132cf9e10e03dc5271faa2e9d3John McCallinclude $(LEVEL)/Makefile.config
2289eaf3af92c72c0c1aae807644e39cabc461d685Argyrios Kyrtzidis
230b7489194f9f89fac39d57211c1e7953ae50251fDouglas GregorUSEDLIBS := $(addprefix LLVM,$(TARGETS_TO_BUILD)) \
247a1fad38256eb4c5129359be85ba1ea1678eb5c9John McCall	LLVMSelectionDAG.a LLVMCodeGen.a LLVMipo.a LLVMTransforms.a \
252cf2634ffdb4f7c8d46cef3f8e60a55993f1c57aDouglas Gregor	LLVMScalarOpts.a LLVMipa.a LLVMTransformUtils.a LLVMAnalysis.a \
26a1ee0c548b8aa4aaf93d1917e304e3da13171a08John McCall	LLVMTarget.a LLVMBCReader.a LLVMBCWriter.a LLVMSystem.a LLVMLinker.a \
276ab7cd853e9c15cf986a8a7c3db1f8d20e275409Sebastian Redl	LLVMCore.a LLVMSupport.a LLVMbzip2.a
287c5d24efcd2e505b5739f7def08dfe25ce59a1b2Chris Lattner
296a5a23f8e7fb65e028c8092bc1d1a1d9dfe2e9bcDouglas Gregorinclude $(LEVEL)/Makefile.common
307c5d24efcd2e505b5739f7def08dfe25ce59a1b2Chris Lattner
3183d63c78810556d26b62ac4cbae2eda6cdd2570cSteve Naroff