blob: 6bdbae0ccf33c73c99bcb599e3fe9eb1a0744045 [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
CC ?= gcc
INCLUDES ?= -I../include/
TOP ?= ../
FIRMWARE_LIBS = $(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a
LIBS = $(TOP)/utils/kernel_image.o $(TOP)/utils/firmware_image.o \
$(TOP)/utils/file_keys.o $(TOP)/utils/signature_digest.o -lcrypto
tests: firmware_image_tests kernel_image_tests sha_tests sha_benchmark \
rsa_verify_benchmark rsa_padding_test
sha_tests: sha_tests.c
firmware_image_tests: firmware_image_tests.c
kernel_image_tests: kernel_image_tests.c
sha_benchmark: sha_benchmark.c timer_utils.c $(FIRMWARE_LIBS)
$(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ -lrt
rsa_padding_test: rsa_padding_test.c
rsa_verify_benchmark: rsa_verify_benchmark.c timer_utils.c
$(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ -lrt $(LIBS) $(FIRMWARE_LIBS)
rm -f sha_tests sha_benchmark rsa_verify_benchmark \
firmware_image_tests kernel_image_tests rsa_padding_test