2017-09-08 00:20:34 +08:00
|
|
|
################################################################################
|
|
|
|
#
|
2017-09-23 03:03:24 +08:00
|
|
|
# Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
|
2017-09-08 00:20:34 +08:00
|
|
|
#
|
2017-09-23 03:03:24 +08:00
|
|
|
# Cryptographic Primitives Makefile.
|
2017-09-08 00:20:34 +08:00
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
include ../config.mk
|
|
|
|
|
|
|
|
# Edit the OBJS content to add/remove primitives needed from TinyCrypt library:
|
|
|
|
OBJS:=aes_decrypt.o \
|
|
|
|
aes_encrypt.o \
|
|
|
|
cbc_mode.o \
|
|
|
|
ctr_mode.o \
|
|
|
|
ctr_prng.o \
|
|
|
|
hmac.o \
|
|
|
|
hmac_prng.o \
|
|
|
|
sha256.o \
|
|
|
|
ecc.o \
|
|
|
|
ecc_dh.o \
|
|
|
|
ecc_dsa.o \
|
|
|
|
ccm_mode.o \
|
|
|
|
cmac_mode.o \
|
|
|
|
utils.o
|
|
|
|
|
|
|
|
DEPS:=$(OBJS:.o=.d)
|
|
|
|
|
|
|
|
all: libtinycrypt.a
|
|
|
|
|
|
|
|
libtinycrypt.a: $(OBJS)
|
|
|
|
$(AR) $(ARFLAGS) $@ $^
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-$(RM) *.exe $(OBJS) $(DEPS) *~ libtinycrypt.a
|
|
|
|
|
|
|
|
-include $(DEPS)
|