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