blob: 1c64b6933d82896ca8b7e67cd0a52a662bd8bf91 [file] [log] [blame]
Chris Lattner92101ac2001-08-23 17:05:04 +00001LEVEL = ../..
Chris Lattnerc9744e72001-09-07 22:59:25 +00002TOOLNAME = lli
Chris Lattnerfe11a972002-12-23 23:59:41 +00003
Misha Brukman82742912003-07-02 17:53:19 +00004# Get the $(ARCH) setting
John Criswell7a73b802003-06-30 21:59:07 +00005include $(LEVEL)/Makefile.config
Chris Lattnerd5624362003-06-17 17:53:35 +00006
Chris Lattner7a5500e2003-06-17 15:46:34 +00007# Generic JIT libraries
Brian Gaeked1cab3e2003-09-05 19:42:34 +00008JITLIBS = lli-jit codegen executionengine
Chris Lattner7a5500e2003-06-17 15:46:34 +00009ARCHLIBS =
10
Misha Brukman82742912003-07-02 17:53:19 +000011# You can enable the X86 JIT on a non-X86 host by setting the flag
12# ENABLE_X86_JIT on the make command line. If not, it will still be
13# enabled automagically on an X86 host.
14ifeq ($(ARCH), x86)
15 ENABLE_X86_JIT = 1
16endif
17
Chris Lattner7a5500e2003-06-17 15:46:34 +000018# What the X86 JIT requires
Misha Brukman82742912003-07-02 17:53:19 +000019ifdef ENABLE_X86_JIT
20 CPPFLAGS += -DENABLE_X86_JIT
Chris Lattner80df4632003-08-15 04:56:09 +000021 JITLIBS += x86 selectiondag
Misha Brukman82742912003-07-02 17:53:19 +000022 # X86 doesn't require any ARCHLIBS
23endif
Chris Lattner7a5500e2003-06-17 15:46:34 +000024
Misha Brukman82742912003-07-02 17:53:19 +000025# You can enable the Sparc JIT on a non-Sparc host by setting the flag
26# ENABLE_SPARC_JIT on the make command line. If not, it will still be
27# enabled automagically on an Sparc host.
28ifeq ($(ARCH), Sparc)
29 ENABLE_SPARC_JIT = 1
30endif
Chris Lattnerd5624362003-06-17 17:53:35 +000031
Chris Lattner7a5500e2003-06-17 15:46:34 +000032# What the Sparc JIT requires
Misha Brukman82742912003-07-02 17:53:19 +000033ifdef ENABLE_SPARC_JIT
34 CPPFLAGS += -DENABLE_SPARC_JIT
35 JITLIBS += sparc
36 ARCHLIBS += sched livevar instrument.a profpaths \
37 bcwriter transforms.a ipo.a ipa.a datastructure.a regalloc \
Chris Lattner253aef8e2003-09-01 20:30:17 +000038 select
Chris Lattner2bf4c612003-06-17 15:54:52 +000039endif
40
Chris Lattnerf25b7722003-06-17 19:14:59 +000041USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
Misha Brukman248ea322003-07-28 19:06:19 +000042 transformutils.a bcreader vmcore support target.a
Chris Lattnerb7764012002-09-13 22:20:19 +000043
44# Have gcc tell the linker to export symbols from the program so that
45# dynamically loaded modules can be linked against them.
46#
Brian Gaeke52852702003-06-17 20:09:18 +000047TOOLLINKOPTS = $(PLATFORMLIBDL)
Chris Lattnerc9744e72001-09-07 22:59:25 +000048
Chris Lattner92101ac2001-08-23 17:05:04 +000049include $(LEVEL)/Makefile.common