blob: 3757bedf6d9a4dd32e41e68e8e1f4c31ddf3cd3d [file] [log] [blame]
Chris Lattner92101ac2001-08-23 17:05:04 +00001LEVEL = ../..
Brian Gaeke97222942003-09-05 19:39:22 +00002LIBRARYNAME = executionengine
Chris Lattner285ca5e2003-01-22 15:41:10 +00003PARALLEL_DIRS = Interpreter JIT
Chris Lattnerfe11a972002-12-23 23:59:41 +00004
Misha Brukman82742912003-07-02 17:53:19 +00005# Get the $(ARCH) setting
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
Misha Brukman82742912003-07-02 17:53:19 +000012# You can enable the X86 JIT on a non-X86 host by setting the flag
13# ENABLE_X86_JIT on the make command line. If not, it will still be
14# enabled automagically on an X86 host.
15ifeq ($(ARCH), x86)
16 ENABLE_X86_JIT = 1
17endif
18
Chris Lattner7a5500e2003-06-17 15:46:34 +000019# What the X86 JIT requires
Misha Brukman82742912003-07-02 17:53:19 +000020ifdef ENABLE_X86_JIT
21 CPPFLAGS += -DENABLE_X86_JIT
Chris Lattner80df4632003-08-15 04:56:09 +000022 JITLIBS += x86 selectiondag
Misha Brukman82742912003-07-02 17:53:19 +000023 # X86 doesn't require any ARCHLIBS
24endif
Chris Lattner7a5500e2003-06-17 15:46:34 +000025
Misha Brukman82742912003-07-02 17:53:19 +000026# You can enable the Sparc JIT on a non-Sparc host by setting the flag
27# ENABLE_SPARC_JIT on the make command line. If not, it will still be
28# enabled automagically on an Sparc host.
29ifeq ($(ARCH), Sparc)
30 ENABLE_SPARC_JIT = 1
31endif
Chris Lattnerd5624362003-06-17 17:53:35 +000032
Chris Lattner7a5500e2003-06-17 15:46:34 +000033# What the Sparc JIT requires
Misha Brukman82742912003-07-02 17:53:19 +000034ifdef ENABLE_SPARC_JIT
35 CPPFLAGS += -DENABLE_SPARC_JIT
36 JITLIBS += sparc
37 ARCHLIBS += sched livevar instrument.a profpaths \
38 bcwriter transforms.a ipo.a ipa.a datastructure.a regalloc \
Chris Lattner253aef8e2003-09-01 20:30:17 +000039 select
Chris Lattner2bf4c612003-06-17 15:54:52 +000040endif
41
Chris Lattnerf25b7722003-06-17 19:14:59 +000042USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
Misha Brukman248ea322003-07-28 19:06:19 +000043 transformutils.a bcreader vmcore support target.a
Chris Lattnerb7764012002-09-13 22:20:19 +000044
45# Have gcc tell the linker to export symbols from the program so that
46# dynamically loaded modules can be linked against them.
47#
Brian Gaeke52852702003-06-17 20:09:18 +000048TOOLLINKOPTS = $(PLATFORMLIBDL)
Chris Lattnerc9744e72001-09-07 22:59:25 +000049
Chris Lattner92101ac2001-08-23 17:05:04 +000050include $(LEVEL)/Makefile.common