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