You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
46 lines
1.3 KiB
# Simplified Makefile for utun tests - only working tests |
|
|
|
CC = gcc |
|
CFLAGS = -Wall -Wextra -g -O2 -I../src -I../lib -I../tinycrypt/lib/include -I../tinycrypt/lib/source |
|
LDFLAGS = -lpthread -lcrypto |
|
|
|
# Only working tests |
|
WORKING_TESTS = working_crypto_test test_ecc_encrypt |
|
|
|
all: $(WORKING_TESTS) |
|
|
|
# Standalone crypto test (working) |
|
working_crypto_test: working_crypto_test.c |
|
$(CC) $(CFLAGS) -o $@ $< ../tinycrypt/lib/source/*.c $(LDFLAGS) |
|
|
|
# ECC encryption test (working) |
|
test_ecc_encrypt: test_ecc_encrypt.c |
|
$(CC) $(CFLAGS) -o $@ $< ../tinycrypt/lib/source/*.c $(LDFLAGS) |
|
|
|
# Test runners |
|
test-crypto: working_crypto_test |
|
@echo "=== Running Working Crypto Test ===" |
|
@./working_crypto_test |
|
|
|
test-ecc: test_ecc_encrypt |
|
@echo "=== Running ECC Encryption Test ===" |
|
@./test_ecc_encrypt |
|
|
|
test-all: $(WORKING_TESTS) |
|
@echo "=== Running All Working Tests ===" |
|
@./working_crypto_test |
|
@./test_ecc_encrypt |
|
|
|
clean: |
|
rm -f $(WORKING_TESTS) |
|
|
|
help: |
|
@echo "Available targets:" |
|
@echo " all - Build working test programs" |
|
@echo " test-all - Build and run all working tests" |
|
@echo " test-crypto - Build and run crypto test" |
|
@echo " test-ecc - Build and run ECC test" |
|
@echo " clean - Remove built programs" |
|
@echo " help - Show this help" |
|
|
|
.PHONY: all clean test-all test-crypto test-ecc help |