Fixed the dynamic generation of the list of subdirectories to compile.
[oota-llvm.git] / runtime / Makefile
1 ##===- runtime/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 ##===----------------------------------------------------------------------===##
9 # llvm/runtime Makefile:  Build all subdirectories automatically
10
11 LEVEL = ..
12 include $(LEVEL)/Makefile.config
13 ifneq ($(wildcard $(LLVMGCCDIR)),)
14 PARALLEL_DIRS  := $(sort $(filter-out Makefile, $(filter-out README.txt, $(filter-out Output, $(filter-out CVS, $(notdir $(wildcard $(SourceDir)/*)))))))
15 else
16 PARALLEL_DIRS  := 
17 all ::
18         @echo '********' Warning: Your LLVMGCCDIR is set incorrectly.  Double-check 
19         @echo '********' Warning: llvm/Makefile.config to make sure it matches
20         @echo '********' Warning: the directory where the C front-end is installed,
21         @echo '********' Warning: and re-run configure if it does not.
22 endif
23
24 include $(LEVEL)/Makefile.common
25
26 # Install target for libraries: Copy into the gcc install directory in chris's
27 # tree...
28 #
29 install::
30
31 clean::