summaryrefslogtreecommitdiff
path: root/run/examples
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-11-27 23:11:32 +0100
committerCarl Hetherington <cth@carlh.net>2022-11-27 23:11:32 +0100
commitee231792fe8ec4d4f26ad81778ca5ae6187e46be (patch)
treea966ef096304a7634c75c2db193c612b90377385 /run/examples
parent43ec2d1e3a5fdb53d1e3c4239695b39198e79167 (diff)
Add make_kdm.cc example.
Diffstat (limited to 'run/examples')
-rwxr-xr-xrun/examples/make_kdm12
1 files changed, 12 insertions, 0 deletions
diff --git a/run/examples/make_kdm b/run/examples/make_kdm
new file mode 100755
index 00000000..2358696a
--- /dev/null
+++ b/run/examples/make_kdm
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:build/src
+if [ "$1" == "--debug" ]; then
+ shift
+ gdb --args build/examples/make_kdm "$@"
+elif [ "$1" == "--valgrind" ]; then
+ shift
+ valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/examples/make_kdm "$@"
+else
+ build/examples/make_kdm "$@"
+fi