David Brown | fecda2d | 2017-09-07 10:20:34 -0600 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # Copyright (C) 2015 by Intel Corporation, All Rights Reserved. |
| 4 | # |
| 5 | # Cryptographic Primitives Makefile. |
| 6 | # |
| 7 | ################################################################################ |
| 8 | |
| 9 | include ../config.mk |
| 10 | |
| 11 | # Edit the OBJS content to add/remove primitives needed from TinyCrypt library: |
| 12 | OBJS:=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 | |
| 27 | DEPS:=$(OBJS:.o=.d) |
| 28 | |
| 29 | all: libtinycrypt.a |
| 30 | |
| 31 | libtinycrypt.a: $(OBJS) |
| 32 | $(AR) $(ARFLAGS) $@ $^ |
| 33 | |
| 34 | .PHONY: clean |
| 35 | |
| 36 | clean: |
| 37 | -$(RM) *.exe $(OBJS) $(DEPS) *~ libtinycrypt.a |
| 38 | |
| 39 | -include $(DEPS) |