aboutsummaryrefslogtreecommitdiff
path: root/sw/Makefile
blob: 4b494a6b5ceb6f92fadd00032bbd56feb4dabea6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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, ....