summaryrefslogtreecommitdiff
path: root/examples/Makefile
blob: bc09b8e0473bd04a25fc6ddf90845abb142faef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
##===- examples/Makefile -----------------------------------*- Makefile -*-===##
#
#                     The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL=..

include $(LEVEL)/Makefile.config

PARALLEL_DIRS:= BrainF Fibonacci HowToUseJIT Kaleidoscope ModuleMaker \
                TracingBrainF

ifeq ($(HAVE_PTHREAD),1)
PARALLEL_DIRS += ParallelJIT
endif

ifeq ($(LLVM_ON_UNIX),1)
    ifeq ($(ARCH),x86)
	PARALLEL_DIRS += ExceptionDemo
    endif
    ifeq ($(ARCH),x86_64)
	PARALLEL_DIRS += ExceptionDemo
    endif
endif

ifeq ($(filter $(BINDINGS_TO_BUILD),ocaml),ocaml)
	PARALLEL_DIRS += OCaml-Kaleidoscope
endif

include $(LEVEL)/Makefile.common