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