1 ##===- tools/lli/Makefile ------------------------------*- 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 ##===----------------------------------------------------------------------===##
12 # Get the $(ARCH) setting
13 include $(LEVEL)/Makefile.config
15 # Generic JIT libraries
16 JITLIBS = lli-jit codegen executionengine
19 # You can enable the X86 JIT on a non-X86 host by setting the flag
20 # ENABLE_X86_JIT on the make command line. If not, it will still be
21 # enabled automagically on an X86 host.
26 # What the X86 JIT requires
28 CPPFLAGS += -DENABLE_X86_JIT
29 JITLIBS += x86 selectiondag
30 # X86 doesn't require any ARCHLIBS
33 # You can enable the Sparc JIT on a non-Sparc host by setting the flag
34 # ENABLE_SPARC_JIT on the make command line. If not, it will still be
35 # enabled automagically on an Sparc host.
40 # What the Sparc JIT requires
41 ifdef ENABLE_SPARC_JIT
42 CPPFLAGS += -DENABLE_SPARC_JIT
44 ARCHLIBS += sparcv9sched sparcv9livevar instrument.a profpaths \
45 bcwriter transforms.a ipo.a ipa.a datastructure.a \
49 # You can enable the PowerPC JIT on a non-PowerPC host by setting the flag
50 # ENABLE_PPC_JIT on the make command line. If not, it will still be
51 # enabled automagically on an PowerPC host.
52 ifeq ($(ARCH), PowerPC)
56 # What the PowerPC JIT requires
58 CPPFLAGS += -DENABLE_PPC_JIT
62 USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
63 transformutils.a bcreader vmcore support target.a LLVMsystem.a
65 # Have gcc tell the linker to export symbols from the program so that
66 # dynamically loaded modules can be linked against them.
68 TOOLLINKOPTS = $(PLATFORMLIBDL)
70 include $(LEVEL)/Makefile.common