mirror of
https://github.com/clearlinux/clrtrust.git
synced 2026-09-06 13:41:32 +00:00
Instead of launching 'openssl x509' for each file, use small binary to process files in bulk. This optimization improves performance more than 7 times (measured on store generation). Performance of 'clrtrust generate' is important for first-time booting.
28 lines
607 B
Makefile
28 lines
607 B
Makefile
# Copyright 2017 Intel Corporation.
|
|
|
|
LDLIBS := -lcrypto
|
|
CFLAGS := -W -Wall -Werror -std=gnu9x
|
|
|
|
BINDIR := /usr/bin
|
|
LIBEXECDIR := /usr/libexec
|
|
|
|
.PHONY: build install check clean
|
|
|
|
build: clrtrust-helper clrtrust
|
|
|
|
clrtrust-helper: clrtrust-helper.o
|
|
|
|
clrtrust: clrtrust.in
|
|
cat clrtrust.in | sed -e 's:LIBEXEC_CONFIG_VALUE:$(LIBEXECDIR):' > $@
|
|
chmod +x clrtrust
|
|
|
|
install:
|
|
install -D --mode=0755 clrtrust ${INSTALL_ROOT}${BINDIR}/clrtrust
|
|
install -D --mode=0755 clrtrust-helper ${INSTALL_ROOT}${LIBEXECDIR}/clrtrust-helper
|
|
|
|
check: build
|
|
bats -t test
|
|
|
|
clean:
|
|
rm -rf clrtrust-helper clrtrust-helper.o clrtrust
|