| John Criswell | e2fab73 | 2003-10-20 22:29:16 +0000 | [diff] [blame] | 1 | ##===- tools/lli/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 | ##===----------------------------------------------------------------------===## |
| Chris Lattner | 92101ac | 2001-08-23 17:05:04 +0000 | [diff] [blame] | 9 | LEVEL = ../.. |
| Chris Lattner | c9744e7 | 2001-09-07 22:59:25 +0000 | [diff] [blame] | 10 | TOOLNAME = lli |
| Chris Lattner | fe11a97 | 2002-12-23 23:59:41 +0000 | [diff] [blame] | 11 | |
| Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 12 | # Get the $(ARCH) setting |
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13 | include $(LEVEL)/Makefile.config |
| Chris Lattner | d562436 | 2003-06-17 17:53:35 +0000 | [diff] [blame] | 14 | |
| Chris Lattner | 7a5500e | 2003-06-17 15:46:34 +0000 | [diff] [blame] | 15 | # Generic JIT libraries |
| Brian Gaeke | d1cab3e | 2003-09-05 19:42:34 +0000 | [diff] [blame] | 16 | JITLIBS = lli-jit codegen executionengine |
| Chris Lattner | 7a5500e | 2003-06-17 15:46:34 +0000 | [diff] [blame] | 17 | ARCHLIBS = |
| 18 | |
| Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 19 | # You can enable the X86 JIT on a non-X86 host by setting the flag |
| 20 | # ENABLE_X86_JIT on the make command line. If not, it will still be |
| 21 | # enabled automagically on an X86 host. |
| 22 | ifeq ($(ARCH), x86) |
| 23 | ENABLE_X86_JIT = 1 |
| 24 | endif |
| 25 | |
| Chris Lattner | 7a5500e | 2003-06-17 15:46:34 +0000 | [diff] [blame] | 26 | # What the X86 JIT requires |
| Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 27 | ifdef ENABLE_X86_JIT |
| 28 | CPPFLAGS += -DENABLE_X86_JIT |
| Chris Lattner | 80df463 | 2003-08-15 04:56:09 +0000 | [diff] [blame] | 29 | JITLIBS += x86 selectiondag |
| Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 30 | # X86 doesn't require any ARCHLIBS |
| 31 | endif |
| Chris Lattner | 7a5500e | 2003-06-17 15:46:34 +0000 | [diff] [blame] | 32 | |
| Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 33 | # You can enable the Sparc JIT on a non-Sparc host by setting the flag |
| 34 | # ENABLE_SPARC_JIT on the make command line. If not, it will still be |
| 35 | # enabled automagically on an Sparc host. |
| 36 | ifeq ($(ARCH), Sparc) |
| 37 | ENABLE_SPARC_JIT = 1 |
| 38 | endif |
| Chris Lattner | d562436 | 2003-06-17 17:53:35 +0000 | [diff] [blame] | 39 | |
| Chris Lattner | 7a5500e | 2003-06-17 15:46:34 +0000 | [diff] [blame] | 40 | # What the Sparc JIT requires |
| Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 41 | ifdef ENABLE_SPARC_JIT |
| 42 | CPPFLAGS += -DENABLE_SPARC_JIT |
| Brian Gaeke | 150666f | 2004-02-25 19:08:12 +0000 | [diff] [blame] | 43 | JITLIBS += sparcv9 |
| 44 | ARCHLIBS += sched sparcv9livevar instrument.a profpaths \ |
| 45 | bcwriter transforms.a ipo.a ipa.a datastructure.a \ |
| 46 | sparcv9regalloc sparcv9select |
| Chris Lattner | 2bf4c61 | 2003-06-17 15:54:52 +0000 | [diff] [blame] | 47 | endif |
| 48 | |
| Chris Lattner | f25b772 | 2003-06-17 19:14:59 +0000 | [diff] [blame] | 49 | USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \ |
| Misha Brukman | 248ea32 | 2003-07-28 19:06:19 +0000 | [diff] [blame] | 50 | transformutils.a bcreader vmcore support target.a |
| Chris Lattner | b776401 | 2002-09-13 22:20:19 +0000 | [diff] [blame] | 51 | |
| 52 | # Have gcc tell the linker to export symbols from the program so that |
| 53 | # dynamically loaded modules can be linked against them. |
| 54 | # |
| Brian Gaeke | 5285270 | 2003-06-17 20:09:18 +0000 | [diff] [blame] | 55 | TOOLLINKOPTS = $(PLATFORMLIBDL) |
| Chris Lattner | c9744e7 | 2001-09-07 22:59:25 +0000 | [diff] [blame] | 56 | |
| Chris Lattner | 92101ac | 2001-08-23 17:05:04 +0000 | [diff] [blame] | 57 | include $(LEVEL)/Makefile.common |