blob: bc09b8e0473bd04a25fc6ddf90845abb142faef2 [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
Owen Anderson37b25ab2010-08-30 07:33:39 +000013PARALLEL_DIRS:= BrainF Fibonacci HowToUseJIT Kaleidoscope ModuleMaker \
14 TracingBrainF
Reid Spencerb756c792006-06-01 01:09:43 +000015
Reid Spencer1000b732006-12-01 00:37:14 +000016ifeq ($(HAVE_PTHREAD),1)
Mikhail Glushenkov8f2766d2010-08-19 20:03:53 +000017PARALLEL_DIRS += ParallelJIT
Reid Spencerb756c792006-06-01 01:09:43 +000018endif
Reid Spencerf3b47552004-08-19 20:09:14 +000019
Garrison Venn0f08a272010-02-10 03:38:29 +000020ifeq ($(LLVM_ON_UNIX),1)
Garrison Vennc80a1f72010-02-23 16:27:59 +000021 ifeq ($(ARCH),x86)
22 PARALLEL_DIRS += ExceptionDemo
23 endif
24 ifeq ($(ARCH),x86_64)
25 PARALLEL_DIRS += ExceptionDemo
26 endif
Garrison Venn0f08a272010-02-10 03:38:29 +000027endif
28
Erick Tryzelaar7129a672010-03-08 20:07:32 +000029ifeq ($(filter $(BINDINGS_TO_BUILD),ocaml),ocaml)
30 PARALLEL_DIRS += OCaml-Kaleidoscope
31endif
32
Reid Spencer3a168a72004-08-23 19:29:54 +000033include $(LEVEL)/Makefile.common