summaryrefslogtreecommitdiff
path: root/hello/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-19 13:32:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-19 13:32:30 +0200
commit627991f892f431988c6a683b1305aee5510920dd (patch)
treeabb7f8e670cce67b96d930c73f6d548b126429a6 /hello/buildfile
Basic "Hello World" C++ library with build2
Diffstat (limited to 'hello/buildfile')
-rw-r--r--hello/buildfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/hello/buildfile b/hello/buildfile
new file mode 100644
index 0000000..4903a33
--- /dev/null
+++ b/hello/buildfile
@@ -0,0 +1,8 @@
+lib{hello}: {hxx cxx}{hello}
+
+cxx.poptions += -I$src_root
+lib{hello}: cxx.export.poptions = -I$src_root
+
+# Install into the hello/ subdirectory of, say, /usr/include/.
+#
+install.include = $install.include/hello