2001-08-24 01:05:04 +08:00
|
|
|
LEVEL = ../..
|
2001-09-08 06:59:25 +08:00
|
|
|
TOOLNAME = lli
|
2003-01-22 23:41:10 +08:00
|
|
|
PARALLEL_DIRS = Interpreter JIT
|
2002-12-24 07:59:41 +08:00
|
|
|
|
2003-07-03 01:53:19 +08:00
|
|
|
# Get the $(ARCH) setting
|
2003-07-01 05:59:07 +08:00
|
|
|
include $(LEVEL)/Makefile.config
|
2003-06-18 01:53:35 +08:00
|
|
|
|
2003-06-17 23:46:34 +08:00
|
|
|
# Generic JIT libraries
|
|
|
|
JITLIBS = lli-jit codegen
|
|
|
|
ARCHLIBS =
|
|
|
|
|
2003-07-03 01:53:19 +08:00
|
|
|
# You can enable the X86 JIT on a non-X86 host by setting the flag
|
|
|
|
# ENABLE_X86_JIT on the make command line. If not, it will still be
|
|
|
|
# enabled automagically on an X86 host.
|
|
|
|
ifeq ($(ARCH), x86)
|
|
|
|
ENABLE_X86_JIT = 1
|
|
|
|
endif
|
2003-06-17 23:46:34 +08:00
|
|
|
|
2003-07-03 01:53:19 +08:00
|
|
|
# What the X86 JIT requires
|
|
|
|
ifdef ENABLE_X86_JIT
|
|
|
|
CPPFLAGS += -DENABLE_X86_JIT
|
|
|
|
JITLIBS += x86
|
|
|
|
# X86 doesn't require any ARCHLIBS
|
|
|
|
endif
|
2003-06-18 01:53:35 +08:00
|
|
|
|
2003-07-03 01:53:19 +08:00
|
|
|
# You can enable the Sparc JIT on a non-Sparc host by setting the flag
|
|
|
|
# ENABLE_SPARC_JIT on the make command line. If not, it will still be
|
|
|
|
# enabled automagically on an Sparc host.
|
|
|
|
ifeq ($(ARCH), Sparc)
|
|
|
|
ENABLE_SPARC_JIT = 1
|
|
|
|
endif
|
2003-06-18 01:53:35 +08:00
|
|
|
|
2003-06-17 23:46:34 +08:00
|
|
|
# What the Sparc JIT requires
|
2003-07-03 01:53:19 +08:00
|
|
|
ifdef ENABLE_SPARC_JIT
|
|
|
|
CPPFLAGS += -DENABLE_SPARC_JIT
|
|
|
|
JITLIBS += sparc
|
|
|
|
ARCHLIBS += sched livevar instrument.a profpaths \
|
|
|
|
bcwriter transforms.a ipo.a ipa.a datastructure.a regalloc \
|
|
|
|
mapping select postopts.a preopts
|
2003-06-17 23:54:52 +08:00
|
|
|
endif
|
|
|
|
|
2003-06-18 03:14:59 +08:00
|
|
|
USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
|
|
|
|
transformutils.a bcreader vmcore support.a target.a
|
2002-09-14 06:20:19 +08:00
|
|
|
|
|
|
|
# Have gcc tell the linker to export symbols from the program so that
|
|
|
|
# dynamically loaded modules can be linked against them.
|
|
|
|
#
|
2003-06-18 04:09:18 +08:00
|
|
|
TOOLLINKOPTS = $(PLATFORMLIBDL)
|
2001-08-24 01:05:04 +08:00
|
|
|
|
2001-09-08 06:59:25 +08:00
|
|
|
include $(LEVEL)/Makefile.common
|