X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=examples%2FMakefile;h=50a6db76aa2551a9510e78c1545e9491ebc437cd;hb=e6f663968c5f4e5da41929829efde2025eeea018;hp=eb5dabdcb13bc9e3d0f2d61fc650a8c9fc2ea138;hpb=9f85634bd2fccd2f366b7ce9048f6c9f95ebba18;p=oota-llvm.git diff --git a/examples/Makefile b/examples/Makefile index eb5dabdcb13..50a6db76aa2 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,10 +1,10 @@ ##===- 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=.. @@ -13,7 +13,20 @@ include $(LEVEL)/Makefile.config PARALLEL_DIRS:= BrainF Fibonacci HowToUseJIT Kaleidoscope ModuleMaker ifeq ($(HAVE_PTHREAD),1) -PARALLEL_DIRS += ParallelJIT +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