summaryrefslogtreecommitdiffstats
path: root/mkbuild.sh
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-10-04 13:41:46 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2019-10-04 16:02:32 +0200
commit672b2ff67eefa306f29384135e92b2dcd84efcdc (patch)
treedb085184d4feaf262adb475751b57d9e3c93612b /mkbuild.sh
parent9cffedba0dfcf845c34901051d24a4b967ec824d (diff)
Add facility to compile
Change-Id: Ib4d4a03f79056ae17ba1112657eb7fe37b194527 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'mkbuild.sh')
-rwxr-xr-xmkbuild.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/mkbuild.sh b/mkbuild.sh
new file mode 100755
index 0000000..e8514ab
--- /dev/null
+++ b/mkbuild.sh
@@ -0,0 +1,15 @@
+#/bin/sh
+
+set -e
+h=$(dirname $0)
+mkdir -p $h/build
+cd $h/build
+[ "$1" = "-f" ] && rm -r *
+cmake \
+ -DCMAKE_BUILD_TYPE=Debug \
+ -DCMAKE_INSTALL_PREFIX=~/.local \
+ -DWITH_SYSTEMD=ON \
+ -DWITH_CYNARA_COMPAT=ON \
+ ..
+make -j
+