aboutsummaryrefslogtreecommitdiff
path: root/sw/Makefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-06-22 15:34:57 -0400
committerRob Austein <sra@hactrn.net>2016-06-22 15:34:57 -0400
commitbeca9ece1b3a9f47d81b98f06fc4b0180704cabe (patch)
treee265980b30305c60d6932cdf8b5403914a66516d /sw/Makefile
First cut at release engineering for software that goes with the Alpha board.
This may well end up merging with the firmware super-repository, but, having started down the road of making them separate, let's keep it that way while we get the initial stuff out of the way, then merge them if it still seems like a good idea when the basics are working.
Diffstat (limited to 'sw/Makefile')
-rw-r--r--sw/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/sw/Makefile b/sw/Makefile
new file mode 100644
index 0000000..4b494a6
--- /dev/null
+++ b/sw/Makefile
@@ -0,0 +1,17 @@
+# Makefile to build Debian package for Cryptech Alpha board software
+
+all:
+ cd thirdparty/sqlite3; ${MAKE}
+ cd thirdparty/libtfm; ${MAKE}
+ cd libhal; ${MAKE} daemon
+ cd pkcs11; ${MAKE}
+
+clean distclean:
+ for d in thirdparty/libtfm libhal thirdparty/sqlite3 pkcs11; do (cd $$d && ${MAKE} $@); done
+
+install: all
+ install -m 644 -D pkcs11/libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so
+ install -D pkcs11/p11util ${DESTDIR}/usr/sbin/p11util
+ install -D libhal/cryptech_rpcd ${DESTDIR}/usr/sbin/cryptech_rpcd
+
+# Might also want to install the firmware tarball, scripts to use it, ....