1WARNING_CFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral 2LDFLAGS ?= 3 4LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64 5LOCAL_LDFLAGS = 6 7ifdef DEBUG 8LOCAL_CFLAGS += -g3 9endif 10 11OBJS_CRYPTO = asn1parse.o bignum.o md.o oid.o pkcs5.o platform.o constant_time.o rsa_alt_helpers.o rsa.o sha1.o sha256.o sha512.o 12 13.PHONY: all static clean 14 15all: static 16 17static: libmini_mbedcrypto.a 18 19# crypto 20libmini_mbedcrypto.a: $(OBJS_CRYPTO) 21 echo " AR $@" 22 $(AR) crv $@ $(OBJS_CRYPTO) 23 24%.o:%.c 25 echo " CC $<" 26 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) -c $< 27 28clean: 29 rm -f *.o libmini* 30