From a4eb1a5cbab45262b4641e3dec2b9a8ec396b338 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Tue, 22 Sep 2009 21:15:00 +0000 Subject: [PATCH] Rename Kaleidoscope to show that it's for Chapter 7 of the tutorial. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82573 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/Kaleidoscope/CMakeLists.txt | 6 +----- examples/Kaleidoscope/Chapter7/CMakeLists.txt | 5 +++++ examples/Kaleidoscope/Chapter7/Makefile | 15 +++++++++++++++ examples/Kaleidoscope/{ => Chapter7}/toy.cpp | 0 examples/Kaleidoscope/Makefile | 8 ++++---- 5 files changed, 25 insertions(+), 9 deletions(-) create mode 100644 examples/Kaleidoscope/Chapter7/CMakeLists.txt create mode 100644 examples/Kaleidoscope/Chapter7/Makefile rename examples/Kaleidoscope/{ => Chapter7}/toy.cpp (100%) diff --git a/examples/Kaleidoscope/CMakeLists.txt b/examples/Kaleidoscope/CMakeLists.txt index af32fbfc512..b7c0ae2a5a8 100644 --- a/examples/Kaleidoscope/CMakeLists.txt +++ b/examples/Kaleidoscope/CMakeLists.txt @@ -1,5 +1 @@ -set(LLVM_LINK_COMPONENTS core jit interpreter native) - -add_llvm_example(Kaleidoscope - toy.cpp - ) +add_subdirectory(Chapter7) diff --git a/examples/Kaleidoscope/Chapter7/CMakeLists.txt b/examples/Kaleidoscope/Chapter7/CMakeLists.txt new file mode 100644 index 00000000000..9b8227c6934 --- /dev/null +++ b/examples/Kaleidoscope/Chapter7/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_LINK_COMPONENTS core jit interpreter native) + +add_llvm_example(Kaleidoscope-Ch7 + toy.cpp + ) diff --git a/examples/Kaleidoscope/Chapter7/Makefile b/examples/Kaleidoscope/Chapter7/Makefile new file mode 100644 index 00000000000..905bec3e5e0 --- /dev/null +++ b/examples/Kaleidoscope/Chapter7/Makefile @@ -0,0 +1,15 @@ +##===- examples/Kaleidoscope-Ch7/Makefile ------------------*- Makefile -*-===## +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +##===----------------------------------------------------------------------===## +LEVEL = ../.. +TOOLNAME = Kaleidoscope-Ch7 +EXAMPLE_TOOL = 1 + +LINK_COMPONENTS := core jit interpreter native + +include $(LEVEL)/Makefile.common diff --git a/examples/Kaleidoscope/toy.cpp b/examples/Kaleidoscope/Chapter7/toy.cpp similarity index 100% rename from examples/Kaleidoscope/toy.cpp rename to examples/Kaleidoscope/Chapter7/toy.cpp diff --git a/examples/Kaleidoscope/Makefile b/examples/Kaleidoscope/Makefile index 9990b2b2871..13a77599a25 100644 --- a/examples/Kaleidoscope/Makefile +++ b/examples/Kaleidoscope/Makefile @@ -6,10 +6,10 @@ # License. See LICENSE.TXT for details. # ##===----------------------------------------------------------------------===## -LEVEL = ../.. -TOOLNAME = Kaleidoscope -EXAMPLE_TOOL = 1 +LEVEL=../.. -LINK_COMPONENTS := core jit interpreter native +include $(LEVEL)/Makefile.config + +PARALLEL_DIRS:= Chapter7 include $(LEVEL)/Makefile.common -- 2.34.1