Make sure to get the value of ARCH before we use it
[oota-llvm.git] / lib / ExecutionEngine / 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 transformutils.a \
22            bcwriter transforms.a ipo.a ipa.a datastructure.a regalloc \
23            mapping select postopts.a preopts
24
25 endif
26
27 USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) bcreader vmcore scalaropts.a \
28            analysis.a support.a target.a
29
30 # Have gcc tell the linker to export symbols from the program so that
31 # dynamically loaded modules can be linked against them.
32 #
33 TOOLLINKOPTS = -ldl
34
35 include $(LEVEL)/Makefile.common