summaryrefslogtreecommitdiff
path: root/tools/build/example/hello
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/example/hello')
-rw-r--r--tools/build/example/hello/hello.cpp16
-rw-r--r--tools/build/example/hello/jamroot.jam1
-rw-r--r--tools/build/example/hello/readme.txt7
3 files changed, 24 insertions, 0 deletions
diff --git a/tools/build/example/hello/hello.cpp b/tools/build/example/hello/hello.cpp
new file mode 100644
index 0000000000..6808022897
--- /dev/null
+++ b/tools/build/example/hello/hello.cpp
@@ -0,0 +1,16 @@
+// Copyright (c) 2003 Vladimir Prus
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+//
+// http://www.boost.org
+//
+
+#include <iostream>
+
+int main()
+{
+ std::cout << "Hello!\n";
+ return 1;
+}
diff --git a/tools/build/example/hello/jamroot.jam b/tools/build/example/hello/jamroot.jam
new file mode 100644
index 0000000000..672ec02e90
--- /dev/null
+++ b/tools/build/example/hello/jamroot.jam
@@ -0,0 +1 @@
+exe hello : hello.cpp ;
diff --git a/tools/build/example/hello/readme.txt b/tools/build/example/hello/readme.txt
new file mode 100644
index 0000000000..f416be675a
--- /dev/null
+++ b/tools/build/example/hello/readme.txt
@@ -0,0 +1,7 @@
+Copyright 2008 Jurko Gospodnetic
+Distributed under the Boost Software License, Version 1.0.
+(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+
+
+This example shows a very basic Boost Build project set up so it compiles a
+single executable from a single source file.