blob: 8d6f0ff5961dbf753bd898c89a057d63b840c794 [file] [log] [blame]
Misha Brukman1757ae92004-08-09 20:07:44 +00001##===- runtime/Makefile ------------------------------------*- Makefile -*-===##
John Criswelle2fab732003-10-20 22:29:16 +00002#
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 Lattner7aeed262002-01-23 19:57:59 +00009
Chris Lattnerd11df3c2003-08-15 02:38:18 +000010LEVEL = ..
Brian Gaekee9dd3f12003-11-16 06:51:53 +000011include $(LEVEL)/Makefile.config
Chris Lattnerb5da7462003-12-08 20:12:46 +000012
Reid Spencer30ea2fa2006-04-07 21:45:23 +000013ifeq ($(LLVMGCC_MAJVERS),4)
Reid Spencer93bc3cd2006-04-06 22:15:51 +000014PARALLEL_DIRS :=
15install all::
Chris Lattner8f569022006-04-07 18:41:16 +000016 $(Echo) "Warning: These runtime libraries only need to be built with"
Reid Spencer93bc3cd2006-04-06 22:15:51 +000017 $(Echo) "Warning: llvm-gcc version 3. They are automatically included"
18 $(Echo) "Warning: with llvm-gcc version 4 and beyond"
19else
Reid Spencer0c5f7932006-04-02 14:34:26 +000020ifneq ($(wildcard $(LLVMGCC)),)
Reid Spencer14927092005-01-13 16:51:19 +000021PARALLEL_DIRS := GCCLibraries libdummy libprofile libtrace GC
Brian Gaekee9dd3f12003-11-16 06:51:53 +000022else
23PARALLEL_DIRS :=
Chris Lattnerb5da7462003-12-08 20:12:46 +000024install all ::
Reid Spencer0c5f7932006-04-02 14:34:26 +000025 @echo '********' Warning: Your LLVMGCCDIR is set incorrectly. Check
Brian Gaekee9dd3f12003-11-16 06:51:53 +000026 @echo '********' Warning: llvm/Makefile.config to make sure it matches
Reid Spencer0c5f7932006-04-02 14:34:26 +000027 @echo '********' Warning: the directory where the C front-end is
28 @echo '********' Warning: installed,and re-run configure if it does not.
Brian Gaekee9dd3f12003-11-16 06:51:53 +000029endif
Chris Lattnerc1e20ac2002-03-08 23:20:52 +000030
Misha Brukman6f222562004-09-08 20:30:26 +000031# Disable libprofile: a faulty libtool is generated by autoconf which breaks the
32# build on Sparc
33ifeq ($(ARCH), Sparc)
34PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS))
35endif
Reid Spencer93bc3cd2006-04-06 22:15:51 +000036endif
Misha Brukman6f222562004-09-08 20:30:26 +000037
Chris Lattnerd11df3c2003-08-15 02:38:18 +000038include $(LEVEL)/Makefile.common
Chris Lattnerc1e20ac2002-03-08 23:20:52 +000039
Misha Brukman1757ae92004-08-09 20:07:44 +000040# Install target for libraries: Copy into $LLVMGCCDIR/bytecode-libs
Chris Lattnerc1e20ac2002-03-08 23:20:52 +000041#
42install::
Chris Lattner8f569022006-04-07 18:41:16 +000043