blob: bc09b8e0473bd04a25fc6ddf90845abb142faef2 [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
Owen Anderson75c205e2010-08-30 07:33:39 +000013PARALLEL_DIRS:= BrainF Fibonacci HowToUseJIT Kaleidoscope ModuleMaker \
14 TracingBrainF
Reid Spencer6c8368b2006-06-01 01:09:43 +000015
Reid Spencerd4399922006-12-01 00:37:14 +000016ifeq ($(HAVE_PTHREAD),1)
Mikhail Glushenkov34c5f1b2010-08-19 20:03:53 +000017PARALLEL_DIRS += ParallelJIT
Reid Spencer6c8368b2006-06-01 01:09:43 +000018endif
Reid Spencer30039692004-08-23 18:06:31 +000019
Garrison Vennb282f602010-02-10 03:38:29 +000020ifeq ($(LLVM_ON_UNIX),1)
Garrison Venn26a18ca2010-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 Vennb282f602010-02-10 03:38:29 +000027endif
28
Erick Tryzelaardc7e85f2010-03-08 20:07:32 +000029ifeq ($(filter $(BINDINGS_TO_BUILD),ocaml),ocaml)
30 PARALLEL_DIRS += OCaml-Kaleidoscope
31endif
32
Reid Spencer5b81eea2004-08-23 19:29:54 +000033include $(LEVEL)/Makefile.common