1 ##===- tools/Makefile.JIT ----------------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
10 # This file adds the appropriate libraries to USEDLIBS to enable JIT support for
11 # a tool on a supported target.
13 ##===----------------------------------------------------------------------===##
17 # Get the $(ARCH) setting
18 include $(LEVEL)/Makefile.config
20 # Generic JIT libraries
21 JITLIBS = LLVMJIT LLVMCodeGen LLVMExecutionEngine
24 # You can enable the X86 JIT on a non-X86 host by setting the flag
25 # ENABLE_X86_JIT on the make command line. If not, it will still be
26 # enabled automagically on an X86 host.
31 # What the X86 JIT requires
33 JITLIBS += LLVMX86 LLVMSelectionDAG
34 # X86 doesn't require any ARCHLIBS
37 # You can enable the SparcV9 JIT on a non-SparcV9 host by setting the flag
38 # ENABLE_SPARCV9_JIT on the make command line. If not, it will still be
39 # enabled automagically on an SparcV9 host.
41 ENABLE_SPARCV9_JIT = 1
44 # What the Sparc JIT requires
45 ifdef ENABLE_SPARCV9_JIT
46 JITLIBS += LLVMSparcV9
47 ARCHLIBS += LLVMSparcV9InstrSched LLVMSparcV9LiveVar LLVMInstrumentation.a \
48 LLVMProfilePaths LLVMBCWriter LLVMTransforms.a LLVMipo.a \
49 LLVMipa.a LLVMDataStructure.a LLVMSparcV9RegAlloc
52 # You can enable the PowerPC JIT on a non-PowerPC host by setting the flag
53 # ENABLE_PPC_JIT on the make command line. If not, it will still be
54 # enabled automagically on an PowerPC host.
55 ifeq ($(ARCH), PowerPC)
59 # What the PowerPC JIT requires
61 JITLIBS += LLVMPowerPC
64 USEDLIBS += LLVMInterpreter $(JITLIBS) $(ARCHLIBS) LLVMScalarOpts \
65 LLVMAnalysis.a LLVMTransformUtils.a LLVMBCReader LLVMCore \
66 LLVMSupport.a LLVMTarget.a LLVMSystem.a