2003-10-21 00:29:16 +02:00
|
|
|
##===- tools/lli/Makefile ------------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file was developed by the LLVM research group and is distributed under
|
|
|
|
# the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
2001-08-23 19:05:04 +02:00
|
|
|
LEVEL = ../..
|
2001-09-08 00:59:25 +02:00
|
|
|
TOOLNAME = lli
|
2002-12-24 00:59:41 +01:00
|
|
|
|
2003-07-02 19:53:19 +02:00
|
|
|
# Get the $(ARCH) setting
|
2003-06-30 23:59:07 +02:00
|
|
|
include $(LEVEL)/Makefile.config
|
2003-06-17 19:53:35 +02:00
|
|
|
|
2003-06-17 17:46:34 +02:00
|
|
|
# Generic JIT libraries
|
2003-09-05 21:42:34 +02:00
|
|
|
JITLIBS = lli-jit codegen executionengine
|
2003-06-17 17:46:34 +02:00
|
|
|
ARCHLIBS =
|
|
|
|
|
2003-07-02 19:53:19 +02: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 17:46:34 +02:00
|
|
|
|
2003-07-02 19:53:19 +02:00
|
|
|
# What the X86 JIT requires
|
|
|
|
ifdef ENABLE_X86_JIT
|
|
|
|
CPPFLAGS += -DENABLE_X86_JIT
|
2003-08-15 06:56:09 +02:00
|
|
|
JITLIBS += x86 selectiondag
|
2003-07-02 19:53:19 +02:00
|
|
|
# X86 doesn't require any ARCHLIBS
|
|
|
|
endif
|
2003-06-17 19:53:35 +02:00
|
|
|
|
2003-07-02 19:53:19 +02: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-17 19:53:35 +02:00
|
|
|
|
2003-06-17 17:46:34 +02:00
|
|
|
# What the Sparc JIT requires
|
2003-07-02 19:53:19 +02:00
|
|
|
ifdef ENABLE_SPARC_JIT
|
|
|
|
CPPFLAGS += -DENABLE_SPARC_JIT
|
2004-02-25 20:08:12 +01:00
|
|
|
JITLIBS += sparcv9
|
|
|
|
ARCHLIBS += sched sparcv9livevar instrument.a profpaths \
|
|
|
|
bcwriter transforms.a ipo.a ipa.a datastructure.a \
|
2004-08-04 09:39:21 +02:00
|
|
|
sparcv9regalloc
|
2003-06-17 17:54:52 +02:00
|
|
|
endif
|
|
|
|
|
2003-06-17 21:14:59 +02:00
|
|
|
USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
|
2004-08-29 21:29:38 +02:00
|
|
|
transformutils.a bcreader vmcore support target.a LLVMsystem.a
|
2002-09-14 00:20:19 +02:00
|
|
|
|
|
|
|
# Have gcc tell the linker to export symbols from the program so that
|
|
|
|
# dynamically loaded modules can be linked against them.
|
|
|
|
#
|
2003-06-17 22:09:18 +02:00
|
|
|
TOOLLINKOPTS = $(PLATFORMLIBDL)
|
2001-08-23 19:05:04 +02:00
|
|
|
|
2001-09-08 00:59:25 +02:00
|
|
|
include $(LEVEL)/Makefile.common
|