| Misha Brukman | 1757ae9 | 2004-08-09 20:07:44 +0000 | [diff] [blame] | 1 | ##===- runtime/Makefile ------------------------------------*- Makefile -*-===## |
| John Criswell | e2fab73 | 2003-10-20 22:29:16 +0000 | [diff] [blame] | 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 | 7aeed26 | 2002-01-23 19:57:59 +0000 | [diff] [blame] | 9 | |
| Chris Lattner | d11df3c | 2003-08-15 02:38:18 +0000 | [diff] [blame] | 10 | LEVEL = .. |
| Brian Gaeke | e9dd3f1 | 2003-11-16 06:51:53 +0000 | [diff] [blame] | 11 | include $(LEVEL)/Makefile.config |
| Chris Lattner | b5da746 | 2003-12-08 20:12:46 +0000 | [diff] [blame] | 12 | |
| Reid Spencer | 30ea2fa | 2006-04-07 21:45:23 +0000 | [diff] [blame] | 13 | ifeq ($(LLVMGCC_MAJVERS),4) |
| Reid Spencer | 93bc3cd | 2006-04-06 22:15:51 +0000 | [diff] [blame] | 14 | PARALLEL_DIRS := |
| 15 | install all:: |
| Chris Lattner | 8f56902 | 2006-04-07 18:41:16 +0000 | [diff] [blame] | 16 | $(Echo) "Warning: These runtime libraries only need to be built with" |
| Reid Spencer | 93bc3cd | 2006-04-06 22:15:51 +0000 | [diff] [blame] | 17 | $(Echo) "Warning: llvm-gcc version 3. They are automatically included" |
| 18 | $(Echo) "Warning: with llvm-gcc version 4 and beyond" |
| 19 | else |
| Reid Spencer | 0c5f793 | 2006-04-02 14:34:26 +0000 | [diff] [blame] | 20 | ifneq ($(wildcard $(LLVMGCC)),) |
| Reid Spencer | 1492709 | 2005-01-13 16:51:19 +0000 | [diff] [blame] | 21 | PARALLEL_DIRS := GCCLibraries libdummy libprofile libtrace GC |
| Brian Gaeke | e9dd3f1 | 2003-11-16 06:51:53 +0000 | [diff] [blame] | 22 | else |
| 23 | PARALLEL_DIRS := |
| Chris Lattner | b5da746 | 2003-12-08 20:12:46 +0000 | [diff] [blame] | 24 | install all :: |
| Reid Spencer | 0c5f793 | 2006-04-02 14:34:26 +0000 | [diff] [blame] | 25 | @echo '********' Warning: Your LLVMGCCDIR is set incorrectly. Check |
| Brian Gaeke | e9dd3f1 | 2003-11-16 06:51:53 +0000 | [diff] [blame] | 26 | @echo '********' Warning: llvm/Makefile.config to make sure it matches |
| Reid Spencer | 0c5f793 | 2006-04-02 14:34:26 +0000 | [diff] [blame] | 27 | @echo '********' Warning: the directory where the C front-end is |
| 28 | @echo '********' Warning: installed,and re-run configure if it does not. |
| Brian Gaeke | e9dd3f1 | 2003-11-16 06:51:53 +0000 | [diff] [blame] | 29 | endif |
| Chris Lattner | c1e20ac | 2002-03-08 23:20:52 +0000 | [diff] [blame] | 30 | |
| Misha Brukman | 6f22256 | 2004-09-08 20:30:26 +0000 | [diff] [blame] | 31 | # Disable libprofile: a faulty libtool is generated by autoconf which breaks the |
| 32 | # build on Sparc |
| 33 | ifeq ($(ARCH), Sparc) |
| 34 | PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS)) |
| 35 | endif |
| Reid Spencer | 93bc3cd | 2006-04-06 22:15:51 +0000 | [diff] [blame] | 36 | endif |
| Misha Brukman | 6f22256 | 2004-09-08 20:30:26 +0000 | [diff] [blame] | 37 | |
| Chris Lattner | d11df3c | 2003-08-15 02:38:18 +0000 | [diff] [blame] | 38 | include $(LEVEL)/Makefile.common |
| Chris Lattner | c1e20ac | 2002-03-08 23:20:52 +0000 | [diff] [blame] | 39 | |
| Misha Brukman | 1757ae9 | 2004-08-09 20:07:44 +0000 | [diff] [blame] | 40 | # Install target for libraries: Copy into $LLVMGCCDIR/bytecode-libs |
| Chris Lattner | c1e20ac | 2002-03-08 23:20:52 +0000 | [diff] [blame] | 41 | # |
| 42 | install:: |
| Chris Lattner | 8f56902 | 2006-04-07 18:41:16 +0000 | [diff] [blame] | 43 | |