blob: 7aab30577066f33ffbb0687c67db1d493d136a6d [file] [log] [blame]
Chris Lattner92101ac2001-08-23 17:05:04 +00001LEVEL = ../..
Chris Lattnerc9744e72001-09-07 22:59:25 +00002TOOLNAME = lli
Chris Lattner285ca5e2003-01-22 15:41:10 +00003PARALLEL_DIRS = Interpreter JIT
Chris Lattnerfe11a972002-12-23 23:59:41 +00004
Chris Lattner7a5500e2003-06-17 15:46:34 +00005# Generic JIT libraries
6JITLIBS = lli-jit codegen
7ARCHLIBS =
8
9# What the X86 JIT requires
10JITLIBS += x86
Chris Lattner2bf4c612003-06-17 15:54:52 +000011# X86 doesn't require any ARCHLIBS
Chris Lattner7a5500e2003-06-17 15:46:34 +000012
13# What the Sparc JIT requires
Chris Lattner2bf4c612003-06-17 15:54:52 +000014ifeq ($(ARCH),Sparc)
Chris Lattner7a5500e2003-06-17 15:46:34 +000015JITLIBS += sparc
16ARCHLIBS = 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
Chris Lattner2bf4c612003-06-17 15:54:52 +000020endif
21
22USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) bcreader vmcore scalaropts.a \
23 analysis.a support.a target.a
Chris Lattnerb7764012002-09-13 22:20:19 +000024
25# Have gcc tell the linker to export symbols from the program so that
26# dynamically loaded modules can be linked against them.
27#
Chris Lattnerc9d8bef2002-11-04 20:50:57 +000028TOOLLINKOPTS = -ldl
Chris Lattnerc9744e72001-09-07 22:59:25 +000029
Chris Lattner92101ac2001-08-23 17:05:04 +000030include $(LEVEL)/Makefile.common