Makefile revision 4c08840e4bc247f3567320ca9258479659b0042f
1LEVEL = ../.. 2TOOLNAME = lli 3PARALLEL_DIRS = Interpreter JIT 4 5# Get the $(ARCH) setting 6include $(LEVEL)/Makefile.config 7 8# Generic JIT libraries 9JITLIBS = lli-jit codegen 10ARCHLIBS = 11 12# 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 19# What the X86 JIT requires 20ifdef ENABLE_X86_JIT 21 CPPFLAGS += -DENABLE_X86_JIT 22 JITLIBS += x86 selection 23 # X86 doesn't require any ARCHLIBS 24endif 25 26# 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 32 33# What the Sparc JIT requires 34ifdef 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 \ 39 mapping select postopts.a preopts 40endif 41 42USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \ 43 transformutils.a bcreader vmcore support target.a 44 45# Have gcc tell the linker to export symbols from the program so that 46# dynamically loaded modules can be linked against them. 47# 48TOOLLINKOPTS = $(PLATFORMLIBDL) 49 50include $(LEVEL)/Makefile.common 51