34 lines
659 B
Makefile
34 lines
659 B
Makefile
#
|
|
# Makefile for crypto testing
|
|
#
|
|
# Copyright (c) 2013-2016 INSIDE Secure Corporation. All Rights Reserved.
|
|
#
|
|
|
|
# SRC and MATRIXSSL_ROOT must be defined before including common.mk
|
|
TEST_SRC:=rsaperf.c
|
|
SRC:=$(TEST_SRC)
|
|
MATRIXSSL_ROOT:=../../..
|
|
include $(MATRIXSSL_ROOT)/common.mk
|
|
|
|
# Generated files
|
|
TEST_EXE:=rsaperf
|
|
|
|
# Linked files
|
|
STATIC:=\
|
|
$(MATRIXSSL_ROOT)/crypto/libcrypt_s.a \
|
|
$(MATRIXSSL_ROOT)/core/libcore_s.a
|
|
|
|
all: compile
|
|
|
|
compile: $(OBJS) $(TEST_EXE)
|
|
|
|
# Additional Dependencies
|
|
$(OBJS): $(MATRIXSSL_ROOT)/common.mk Makefile $(wildcard *.h)
|
|
|
|
$(TEST_EXE): $(TEST_SRC:.c=.o) $(STATIC)
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(TEST_EXE)
|
|
|