X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=examples%2FMakefile;h=50a6db76aa2551a9510e78c1545e9491ebc437cd;hp=a2b38821cd43b0f5a204d46c3567d2c7db1ca53f;hb=3aabdebde23415b488c9b8f4f470ab3e0ec81176;hpb=3a168a7d6888d33984460589b891f591abb862f1 diff --git a/examples/Makefile b/examples/Makefile index a2b38821cd4..50a6db76aa2 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,16 +1,32 @@ ##===- examples/Makefile -----------------------------------*- Makefile -*-===## -# +# # The LLVM Compiler Infrastructure # -# This file was developed by the LLVM research group and is distributed under -# the University of Illinois Open Source License. See LICENSE.TXT for details. -# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# ##===----------------------------------------------------------------------===## LEVEL=.. include $(LEVEL)/Makefile.config -#PARALLEL_DIRS:= $(patsubst %/Makefile,%,$(wildcard $(SourceDir)/*/Makefile)) -PARALLEL_DIRS:= Fibonacci HowToUseJIT ModuleMaker +PARALLEL_DIRS:= BrainF Fibonacci HowToUseJIT Kaleidoscope ModuleMaker + +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