Files
clrtrust/Makefile
T
Arzhan Kinzhalin 35da1895e6 Add helper binary for bulk certificate processing.
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.
2018-04-16 00:43:56 -07:00

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