Do not link in the Sparc JIT when building on X86. Eventually the sparc will not
[oota-llvm.git] / lib / ExecutionEngine / Makefile
1 LEVEL = ../..
2 TOOLNAME = lli
3 PARALLEL_DIRS = Interpreter JIT
4
5 # Generic JIT libraries
6 JITLIBS   = lli-jit codegen
7 ARCHLIBS  =
8
9 # What the X86 JIT requires
10 JITLIBS  += x86
11 # X86 doesn't require any ARCHLIBS
12
13 # What the Sparc JIT requires
14 ifeq ($(ARCH),Sparc)
15 JITLIBS  += sparc 
16 ARCHLIBS  = sched livevar instrument.a profpaths transformutils.a \
17            bcwriter transforms.a ipo.a ipa.a datastructure.a regalloc \
18            mapping select postopts.a preopts
19
20 endif
21
22 USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) bcreader vmcore scalaropts.a \
23            analysis.a support.a target.a
24
25 # Have gcc tell the linker to export symbols from the program so that
26 # dynamically loaded modules can be linked against them.
27 #
28 TOOLLINKOPTS = -ldl
29
30 include $(LEVEL)/Makefile.common