X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=examples%2FMakefile;h=50a6db76aa2551a9510e78c1545e9491ebc437cd;hb=4d3b6d43ccb62f3bfdbae650541e88514f24a16b;hp=c94b7017a0ebf4c60303ddc724c62dc1c97a665b;hpb=c21214ac59735dc71cbbd923ff284a3d60146303;p=oota-llvm.git diff --git a/examples/Makefile b/examples/Makefile index c94b7017a0e..50a6db76aa2 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,15 +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=../.. +LEVEL=.. include $(LEVEL)/Makefile.config -DIRS:= $(patsubst %/Makefile,%,$(wildcard $(SourceDir)/*/Makefile)) +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 $(BUILD_SRC_ROOT)/Makefile.rules +include $(LEVEL)/Makefile.common