blob: 50a6db76aa2551a9510e78c1545e9491ebc437cd [file] [log] [blame]
Reid Spencerc21214a2004-08-23 18:06:31 +00001##===- examples/Makefile -----------------------------------*- Makefile -*-===##
Mikhail Glushenkov8f2766d2010-08-19 20:03:53 +00002#
Reid Spencerf3b47552004-08-19 20:09:14 +00003# The LLVM Compiler Infrastructure
4#
Chris Lattner57360d12007-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 Glushenkov8f2766d2010-08-19 20:03:53 +00007#
Reid Spencerf3b47552004-08-19 20:09:14 +00008##===----------------------------------------------------------------------===##
Reid Spencer3a168a72004-08-23 19:29:54 +00009LEVEL=..
Reid Spencerf3b47552004-08-19 20:09:14 +000010
11include $(LEVEL)/Makefile.config
12
Garrison Venn161b4c42010-09-15 14:55:32 +000013PARALLEL_DIRS:= BrainF Fibonacci HowToUseJIT Kaleidoscope ModuleMaker
Reid Spencerb756c792006-06-01 01:09:43 +000014
Reid Spencer1000b732006-12-01 00:37:14 +000015ifeq ($(HAVE_PTHREAD),1)
Mikhail Glushenkov8f2766d2010-08-19 20:03:53 +000016PARALLEL_DIRS += ParallelJIT
Reid Spencerb756c792006-06-01 01:09:43 +000017endif
Reid Spencerf3b47552004-08-19 20:09:14 +000018
Garrison Venn0f08a272010-02-10 03:38:29 +000019ifeq ($(LLVM_ON_UNIX),1)
Garrison Vennc80a1f72010-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 Venn0f08a272010-02-10 03:38:29 +000026endif
27
Erick Tryzelaar7129a672010-03-08 20:07:32 +000028ifeq ($(filter $(BINDINGS_TO_BUILD),ocaml),ocaml)
29 PARALLEL_DIRS += OCaml-Kaleidoscope
30endif
31
Reid Spencer3a168a72004-08-23 19:29:54 +000032include $(LEVEL)/Makefile.common