Chris Lattner | 7af5c12 | 2004-01-05 05:27:31 +0000 | [diff] [blame] | 1 | ##===- tools/llvm-db/Makefile ------------------------------*- Makefile -*-===## |
| 2 | # |
| 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
| 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. |
| 7 | # |
| 8 | ##===----------------------------------------------------------------------===## |
| 9 | |
| 10 | LEVEL = ../.. |
| 11 | TOOLNAME = llvm-db |
| 12 | |
| 13 | # Get the $(ARCH) setting |
| 14 | include $(LEVEL)/Makefile.config |
| 15 | |
| 16 | # Generic JIT libraries |
| 17 | JITLIBS = lli-jit codegen executionengine |
| 18 | ARCHLIBS = |
| 19 | |
| 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. |
| 23 | ifeq ($(ARCH), x86) |
| 24 | ENABLE_X86_JIT = 1 |
| 25 | endif |
| 26 | |
| 27 | # What the X86 JIT requires |
| 28 | ifdef ENABLE_X86_JIT |
| 29 | CPPFLAGS += -DENABLE_X86_JIT |
| 30 | JITLIBS += x86 selectiondag |
| 31 | # X86 doesn't require any ARCHLIBS |
| 32 | endif |
| 33 | |
| 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. |
| 37 | ifeq ($(ARCH), Sparc) |
| 38 | ENABLE_SPARC_JIT = 1 |
| 39 | endif |
| 40 | |
| 41 | # What the Sparc JIT requires |
| 42 | ifdef ENABLE_SPARC_JIT |
| 43 | CPPFLAGS += -DENABLE_SPARC_JIT |
Brian Gaeke | 150666f | 2004-02-25 19:08:12 +0000 | [diff] [blame] | 44 | JITLIBS += sparcv9 |
| 45 | ARCHLIBS += sched sparcv9livevar instrument.a profpaths \ |
| 46 | bcwriter transforms.a ipo.a ipa.a datastructure.a \ |
Brian Gaeke | a2b5f45 | 2004-08-05 05:17:19 +0000 | [diff] [blame] | 47 | sparcv9regalloc |
Chris Lattner | 7af5c12 | 2004-01-05 05:27:31 +0000 | [diff] [blame] | 48 | endif |
| 49 | |
| 50 | USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \ |
Reid Spencer | 7c4c98d | 2004-08-29 19:29:38 +0000 | [diff] [blame^] | 51 | transformutils.a debugger bcreader vmcore support target.a LLVMsystem.a |
Chris Lattner | 7af5c12 | 2004-01-05 05:27:31 +0000 | [diff] [blame] | 52 | |
| 53 | |
| 54 | # Have gcc tell the linker to export symbols from the program so that |
| 55 | # dynamically loaded modules can be linked against them. |
| 56 | # |
| 57 | TOOLLINKOPTS = $(PLATFORMLIBDL) |
| 58 | |
| 59 | include $(LEVEL)/Makefile.common |
| 60 | |