diff options
Diffstat (limited to 'source/Makefile')
-rw-r--r-- | source/Makefile | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/source/Makefile b/source/Makefile index e2fdb1b..18462a8 100644 --- a/source/Makefile +++ b/source/Makefile @@ -1,19 +1,24 @@ -# Makefile to build Debian package for Cryptech Alpha board software +# Source package makefile for Cryptech Alpha board software. +# +# This is, deliberately, a very simplified Makefile. for the most +# part we just want to do the bare minimum needed for whatever +# software packaging system we use to work. At least for the moment, +# the primary packaging system is Debian-based, so this is written +# to work in that environment. At some point we'll probably add +# Homebrew support for Mac OS X. + all: - cd sw/thirdparty/libtfm; ${MAKE} - cd sw/libhal; ${MAKE} daemon - cd sw/pkcs11; ${MAKE} + ${MAKE} -C sw/pkcs11 clean distclean: - cd sw/thirdparty/libtfm; ${MAKE} $@ - cd sw/libhal; ${MAKE} $@ - cd sw/pkcs11; ${MAKE} $@ + ${MAKE} -C sw/pkcs11 $@ 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 + install -D -m 644 cryptech-alpha-firmware.tar.gz ${DESTDIR}/usr/share/cryptech-alpha-firmware.tar.gz + install -D -m 644 sw/pkcs11/libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so + install -D sw/pkcs11/p11util ${DESTDIR}/usr/sbin/p11util + install -D sw/pkcs11/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, .... +# Still need scripts to do something useful with the firmware tarball |