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