aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Makefile
blob: ee831e84686b7de804d52c72de45b71f57e43196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
################################################################################
#
#      Copyright (C) 2015 by Intel Corporation, All Rights Reserved.
#
# 								   Cryptographic Primitives Makefile.
#
################################################################################

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)