1c64b6933d82896ca8b7e67cd0a52a662bd8bf91
[oota-llvm.git] / tools / lli / Makefile
1 LEVEL = ../..
2 TOOLNAME = lli
3
4 # Get the $(ARCH) setting
5 include $(LEVEL)/Makefile.config
6
7 # Generic JIT libraries
8 JITLIBS   = lli-jit codegen executionengine
9 ARCHLIBS  =
10
11 # You can enable the X86 JIT on a non-X86 host by setting the flag
12 # ENABLE_X86_JIT on the make command line. If not, it will still be
13 # enabled automagically on an X86 host.
14 ifeq ($(ARCH), x86)
15   ENABLE_X86_JIT = 1
16 endif
17
18 # What the X86 JIT requires
19 ifdef ENABLE_X86_JIT
20   CPPFLAGS += -DENABLE_X86_JIT
21   JITLIBS  += x86 selectiondag
22   # X86 doesn't require any ARCHLIBS
23 endif
24
25 # You can enable the Sparc JIT on a non-Sparc host by setting the flag
26 # ENABLE_SPARC_JIT on the make command line. If not, it will still be
27 # enabled automagically on an Sparc host.
28 ifeq ($(ARCH), Sparc)
29   ENABLE_SPARC_JIT = 1
30 endif
31
32 # What the Sparc JIT requires
33 ifdef ENABLE_SPARC_JIT
34   CPPFLAGS += -DENABLE_SPARC_JIT
35   JITLIBS  += sparc 
36   ARCHLIBS += sched livevar instrument.a profpaths \
37               bcwriter transforms.a ipo.a ipa.a datastructure.a regalloc \
38               select
39 endif
40
41 USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
42            transformutils.a bcreader vmcore support target.a
43
44 # Have gcc tell the linker to export symbols from the program so that
45 # dynamically loaded modules can be linked against them.
46 #
47 TOOLLINKOPTS = $(PLATFORMLIBDL)
48
49 include $(LEVEL)/Makefile.common