Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ##===- examples/Makefile -----------------------------------*- Makefile -*-===## |
Mikhail Glushenkov | f50ab2a | 2010-08-19 20:03:53 +0000 | [diff] [blame] | 2 | # |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
Chris Lattner | 3876aa7 | 2007-12-29 20:11:13 +0000 | [diff] [blame] | 5 | # This file is distributed under the University of Illinois Open Source |
| 6 | # License. See LICENSE.TXT for details. |
Mikhail Glushenkov | f50ab2a | 2010-08-19 20:03:53 +0000 | [diff] [blame] | 7 | # |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 8 | ##===----------------------------------------------------------------------===## |
| 9 | LEVEL=.. |
| 10 | |
| 11 | include $(LEVEL)/Makefile.config |
| 12 | |
Erick Tryzelaar | 65695b9 | 2010-03-08 20:07:32 +0000 | [diff] [blame] | 13 | PARALLEL_DIRS:= BrainF Fibonacci HowToUseJIT Kaleidoscope ModuleMaker |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 14 | |
| 15 | ifeq ($(HAVE_PTHREAD),1) |
Mikhail Glushenkov | f50ab2a | 2010-08-19 20:03:53 +0000 | [diff] [blame] | 16 | PARALLEL_DIRS += ParallelJIT |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 17 | endif |
| 18 | |
Garrison Venn | e2a42fd | 2010-02-10 03:38:29 +0000 | [diff] [blame] | 19 | ifeq ($(LLVM_ON_UNIX),1) |
Garrison Venn | b8714e0 | 2010-02-23 16:27:59 +0000 | [diff] [blame] | 20 | ifeq ($(ARCH),x86) |
| 21 | PARALLEL_DIRS += ExceptionDemo |
| 22 | endif |
| 23 | ifeq ($(ARCH),x86_64) |
| 24 | PARALLEL_DIRS += ExceptionDemo |
| 25 | endif |
Garrison Venn | e2a42fd | 2010-02-10 03:38:29 +0000 | [diff] [blame] | 26 | endif |
| 27 | |
Erick Tryzelaar | 65695b9 | 2010-03-08 20:07:32 +0000 | [diff] [blame] | 28 | ifeq ($(filter $(BINDINGS_TO_BUILD),ocaml),ocaml) |
| 29 | PARALLEL_DIRS += OCaml-Kaleidoscope |
| 30 | endif |
| 31 | |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 32 | include $(LEVEL)/Makefile.common |