blob: 50a6db76aa2551a9510e78c1545e9491ebc437cd [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001##===- examples/Makefile -----------------------------------*- Makefile -*-===##
Mikhail Glushenkovf50ab2a2010-08-19 20:03:53 +00002#
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003# The LLVM Compiler Infrastructure
4#
Chris Lattner3876aa72007-12-29 20:11:13 +00005# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
Mikhail Glushenkovf50ab2a2010-08-19 20:03:53 +00007#
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008##===----------------------------------------------------------------------===##
9LEVEL=..
10
11include $(LEVEL)/Makefile.config
12
Erick Tryzelaar65695b92010-03-08 20:07:32 +000013PARALLEL_DIRS:= BrainF Fibonacci HowToUseJIT Kaleidoscope ModuleMaker
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014
15ifeq ($(HAVE_PTHREAD),1)
Mikhail Glushenkovf50ab2a2010-08-19 20:03:53 +000016PARALLEL_DIRS += ParallelJIT
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017endif
18
Garrison Venne2a42fd2010-02-10 03:38:29 +000019ifeq ($(LLVM_ON_UNIX),1)
Garrison Vennb8714e02010-02-23 16:27:59 +000020 ifeq ($(ARCH),x86)
21 PARALLEL_DIRS += ExceptionDemo
22 endif
23 ifeq ($(ARCH),x86_64)
24 PARALLEL_DIRS += ExceptionDemo
25 endif
Garrison Venne2a42fd2010-02-10 03:38:29 +000026endif
27
Erick Tryzelaar65695b92010-03-08 20:07:32 +000028ifeq ($(filter $(BINDINGS_TO_BUILD),ocaml),ocaml)
29 PARALLEL_DIRS += OCaml-Kaleidoscope
30endif
31
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032include $(LEVEL)/Makefile.common