aboutsummaryrefslogtreecommitdiff
path: root/source/Makefile
blob: af018b1b9717fe6fa56dad5c0fb41bafd0dcc8b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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.
#
# We also support Homebrew for MacOSX, using the source tarball
# generated by the Debian packaging process, but the Homebrew formula
# handles the build and installation for that environment.

all:
	${MAKE} -C sw/pkcs11

clean distclean:
	${MAKE} -C sw/pkcs11 $@

install: all
	install -D -m 644 cryptech-alpha-firmware.tar.gz		${DESTDIR}/usr/share/cryptech-alpha-firmware.tar.gz
	install -D -m 644 sw/pkcs11/libcryptech-pkcs11.so		${DESTDIR}/usr/lib/libcryptech-pkcs11.so
	ln	-s	            libcryptech-pkcs11.so		${DESTDIR}/usr/lib/libcryptech-pkcs11.so.0
#	install -D	  sw/pkcs11/p11util				${DESTDIR}/usr/bin/p11util
#	install -D	  sw/pkcs11/libhal/cryptech_rpcd		${DESTDIR}/usr/bin/cryptech_rpcd
	install -D	  sw/stm32/projects/hsm/cryptech_upload		${DESTDIR}/usr/bin/cryptech_upload
	install -D	  sw/stm32/projects/hsm/cryptech_probe		${DESTDIR}/usr/bin/cryptech_probe
	install -D	  sw/stm32/projects/hsm/cryptech_miniterm	${DESTDIR}/usr/bin/cryptech_miniterm

# Still need scripts to do something useful with the firmware tarball