blob: f710dc081a1fa78d8d00e655b74e9d513201ce85 [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...
6include $(LEVEL)/Makefile.config
7
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
21ARCHLIBS = 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
Chris Lattner2bf4c612003-06-17 15:54:52 +000025endif
26
27USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) bcreader vmcore scalaropts.a \
28 analysis.a support.a target.a
Chris Lattnerb7764012002-09-13 22:20:19 +000029
30# Have gcc tell the linker to export symbols from the program so that
31# dynamically loaded modules can be linked against them.
32#
Chris Lattnerc9d8bef2002-11-04 20:50:57 +000033TOOLLINKOPTS = -ldl
Chris Lattnerc9744e72001-09-07 22:59:25 +000034
Chris Lattner92101ac2001-08-23 17:05:04 +000035include $(LEVEL)/Makefile.common