aboutsummaryrefslogtreecommitdiff
path: root/software/source/Makefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-06-27 11:38:39 -0400
committerRob Austein <sra@hactrn.net>2016-06-27 11:38:39 -0400
commit5ce361bac89d49a368350e8c475b83e8e6cf0718 (patch)
tree0ad3144eebb5f069c238b35611750fe29d2ca1ab /software/source/Makefile
parent89e23287021da6db980ebbcca3c651bc163514bb (diff)
parent856cb22d530e820c122e0dbee5b61edff91d235e (diff)
Merged software/master.
Diffstat (limited to 'software/source/Makefile')
-rw-r--r--software/source/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/software/source/Makefile b/software/source/Makefile
new file mode 100644
index 0000000..e2fdb1b
--- /dev/null
+++ b/software/source/Makefile
@@ -0,0 +1,19 @@
+# Makefile to build Debian package for Cryptech Alpha board software
+
+all:
+ cd sw/thirdparty/libtfm; ${MAKE}
+ cd sw/libhal; ${MAKE} daemon
+ cd sw/pkcs11; ${MAKE}
+
+clean distclean:
+ cd sw/thirdparty/libtfm; ${MAKE} $@
+ cd sw/libhal; ${MAKE} $@
+ cd sw/pkcs11; ${MAKE} $@
+
+install: all
+ install -m 644 -D sw/pkcs11/libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so
+ install -D sw/pkcs11/p11util ${DESTDIR}/usr/sbin/p11util
+ install -D sw/libhal/cryptech_rpcd ${DESTDIR}/usr/sbin/cryptech_rpcd
+ ln -s libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so.0
+
+# Might also want to install the firmware tarball, scripts to use it, ....