1################################################################################ 2# 3# Copyright (C) 2017 by Intel Corporation, All Rights Reserved. 4# 5# Cryptographic Primitives Makefile. 6# 7################################################################################ 8 9include ../config.mk 10 11# Edit the OBJS content to add/remove primitives needed from TinyCrypt library: 12OBJS:=aes_decrypt.o \ 13 aes_encrypt.o \ 14 cbc_mode.o \ 15 ctr_mode.o \ 16 ctr_prng.o \ 17 hmac.o \ 18 hmac_prng.o \ 19 sha256.o \ 20 ecc.o \ 21 ecc_dh.o \ 22 ecc_dsa.o \ 23 ccm_mode.o \ 24 cmac_mode.o \ 25 utils.o 26 27DEPS:=$(OBJS:.o=.d) 28 29all: libtinycrypt.a 30 31libtinycrypt.a: $(OBJS) 32 $(AR) $(ARFLAGS) $@ $^ 33 34.PHONY: clean 35 36clean: 37 -$(RM) *.exe $(OBJS) $(DEPS) *~ libtinycrypt.a 38 39-include $(DEPS) 40