blob: d74adf9492d4f58b3ab2549b2a8925db4c0eea6a [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 Lattnerd5624362003-06-17 17:53:35 +00005# Get the config name...
John Criswell7a73b802003-06-30 21:59:07 +00006include $(LEVEL)/Makefile.config
Chris Lattnerd5624362003-06-17 17:53:35 +00007
Chris Lattner7a5500e2003-06-17 15:46:34 +00008# Generic JIT libraries
9JITLIBS = lli-jit codegen
10ARCHLIBS =
11
12# What the X86 JIT requires
13JITLIBS += x86
Chris Lattner2bf4c612003-06-17 15:54:52 +000014# X86 doesn't require any ARCHLIBS
Chris Lattner7a5500e2003-06-17 15:46:34 +000015
Chris Lattnerd5624362003-06-17 17:53:35 +000016
17
Chris Lattner7a5500e2003-06-17 15:46:34 +000018# What the Sparc JIT requires
Chris Lattner2bf4c612003-06-17 15:54:52 +000019ifeq ($(ARCH),Sparc)
Chris Lattner7a5500e2003-06-17 15:46:34 +000020JITLIBS += sparc
Chris Lattnerf25b7722003-06-17 19:14:59 +000021ARCHLIBS = sched livevar instrument.a profpaths \
Chris Lattner7a5500e2003-06-17 15:46:34 +000022 bcwriter transforms.a ipo.a ipa.a datastructure.a regalloc \
23 mapping select postopts.a preopts
Chris Lattner2bf4c612003-06-17 15:54:52 +000024endif
25
Chris Lattnerf25b7722003-06-17 19:14:59 +000026USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
27 transformutils.a bcreader vmcore support.a target.a
Chris Lattnerb7764012002-09-13 22:20:19 +000028
29# Have gcc tell the linker to export symbols from the program so that
30# dynamically loaded modules can be linked against them.
31#
Brian Gaeke52852702003-06-17 20:09:18 +000032TOOLLINKOPTS = $(PLATFORMLIBDL)
Chris Lattnerc9744e72001-09-07 22:59:25 +000033
Chris Lattner92101ac2001-08-23 17:05:04 +000034include $(LEVEL)/Makefile.common