1 ##===- tools/llvm-db/Makefile ------------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
13 # Get the $(ARCH) setting
14 include $(LEVEL)/Makefile.config
16 # Generic JIT libraries
17 JITLIBS = lli-jit codegen executionengine
20 # You can enable the X86 JIT on a non-X86 host by setting the flag
21 # ENABLE_X86_JIT on the make command line. If not, it will still be
22 # enabled automagically on an X86 host.
27 # What the X86 JIT requires
29 CPPFLAGS += -DENABLE_X86_JIT
30 JITLIBS += x86 selectiondag
31 # X86 doesn't require any ARCHLIBS
34 # You can enable the Sparc JIT on a non-Sparc host by setting the flag
35 # ENABLE_SPARC_JIT on the make command line. If not, it will still be
36 # enabled automagically on an Sparc host.
41 # What the Sparc JIT requires
42 ifdef ENABLE_SPARC_JIT
43 CPPFLAGS += -DENABLE_SPARC_JIT
45 ARCHLIBS += sched livevar instrument.a profpaths \
46 bcwriter transforms.a ipo.a ipa.a datastructure.a regalloc \
50 USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
51 transformutils.a debugger bcreader vmcore support target.a
54 # Have gcc tell the linker to export symbols from the program so that
55 # dynamically loaded modules can be linked against them.
57 TOOLLINKOPTS = $(PLATFORMLIBDL)
59 include $(LEVEL)/Makefile.common