diff options
author | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2009-09-22 21:15:00 +0000 |
---|---|---|
committer | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2009-09-22 21:15:00 +0000 |
commit | a4eb1a5cbab45262b4641e3dec2b9a8ec396b338 (patch) | |
tree | 44453c40f3d7ddc30bb18b2868c7ea8b6c8671e1 /examples | |
parent | fd1ec5e68b593a4f4d5497b150e677ebef36c231 (diff) |
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
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Kaleidoscope/CMakeLists.txt | 6 | ||||
-rw-r--r-- | examples/Kaleidoscope/Chapter7/CMakeLists.txt | 5 | ||||
-rw-r--r-- | examples/Kaleidoscope/Chapter7/Makefile | 15 | ||||
-rw-r--r-- | examples/Kaleidoscope/Chapter7/toy.cpp (renamed from examples/Kaleidoscope/toy.cpp) | 0 | ||||
-rw-r--r-- | examples/Kaleidoscope/Makefile | 8 |
5 files changed, 25 insertions, 9 deletions
diff --git a/examples/Kaleidoscope/CMakeLists.txt b/examples/Kaleidoscope/CMakeLists.txt index af32fbfc51..b7c0ae2a5a 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 0000000000..9b8227c693 --- /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 0000000000..905bec3e5e --- /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 index 8b0c321c06..8b0c321c06 100644 --- a/examples/Kaleidoscope/toy.cpp +++ b/examples/Kaleidoscope/Chapter7/toy.cpp diff --git a/examples/Kaleidoscope/Makefile b/examples/Kaleidoscope/Makefile index 9990b2b287..13a77599a2 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 |