Chris Lattner | 92101ac | 2001-08-23 17:05:04 +0000 | [diff] [blame] | 1 | LEVEL = ../.. |
Brian Gaeke | 9722294 | 2003-09-05 19:39:22 +0000 | [diff] [blame^] | 2 | LIBRARYNAME = executionengine |
Chris Lattner | 285ca5e | 2003-01-22 15:41:10 +0000 | [diff] [blame] | 3 | PARALLEL_DIRS = Interpreter JIT |
Chris Lattner | fe11a97 | 2002-12-23 23:59:41 +0000 | [diff] [blame] | 4 | |
Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 5 | # Get the $(ARCH) setting |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6 | include $(LEVEL)/Makefile.config |
Chris Lattner | d562436 | 2003-06-17 17:53:35 +0000 | [diff] [blame] | 7 | |
Chris Lattner | 7a5500e | 2003-06-17 15:46:34 +0000 | [diff] [blame] | 8 | # Generic JIT libraries |
| 9 | JITLIBS = lli-jit codegen |
| 10 | ARCHLIBS = |
| 11 | |
Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 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. |
| 15 | ifeq ($(ARCH), x86) |
| 16 | ENABLE_X86_JIT = 1 |
| 17 | endif |
| 18 | |
Chris Lattner | 7a5500e | 2003-06-17 15:46:34 +0000 | [diff] [blame] | 19 | # What the X86 JIT requires |
Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 20 | ifdef ENABLE_X86_JIT |
| 21 | CPPFLAGS += -DENABLE_X86_JIT |
Chris Lattner | 80df463 | 2003-08-15 04:56:09 +0000 | [diff] [blame] | 22 | JITLIBS += x86 selectiondag |
Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 23 | # X86 doesn't require any ARCHLIBS |
| 24 | endif |
Chris Lattner | 7a5500e | 2003-06-17 15:46:34 +0000 | [diff] [blame] | 25 | |
Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 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. |
| 29 | ifeq ($(ARCH), Sparc) |
| 30 | ENABLE_SPARC_JIT = 1 |
| 31 | endif |
Chris Lattner | d562436 | 2003-06-17 17:53:35 +0000 | [diff] [blame] | 32 | |
Chris Lattner | 7a5500e | 2003-06-17 15:46:34 +0000 | [diff] [blame] | 33 | # What the Sparc JIT requires |
Misha Brukman | 8274291 | 2003-07-02 17:53:19 +0000 | [diff] [blame] | 34 | ifdef 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 \ |
Chris Lattner | 253aef8e | 2003-09-01 20:30:17 +0000 | [diff] [blame] | 39 | select |
Chris Lattner | 2bf4c61 | 2003-06-17 15:54:52 +0000 | [diff] [blame] | 40 | endif |
| 41 | |
Chris Lattner | f25b772 | 2003-06-17 19:14:59 +0000 | [diff] [blame] | 42 | USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \ |
Misha Brukman | 248ea32 | 2003-07-28 19:06:19 +0000 | [diff] [blame] | 43 | transformutils.a bcreader vmcore support target.a |
Chris Lattner | b776401 | 2002-09-13 22:20:19 +0000 | [diff] [blame] | 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 | # |
Brian Gaeke | 5285270 | 2003-06-17 20:09:18 +0000 | [diff] [blame] | 48 | TOOLLINKOPTS = $(PLATFORMLIBDL) |
Chris Lattner | c9744e7 | 2001-09-07 22:59:25 +0000 | [diff] [blame] | 49 | |
Chris Lattner | 92101ac | 2001-08-23 17:05:04 +0000 | [diff] [blame] | 50 | include $(LEVEL)/Makefile.common |