mirror of
https://github.com/openssl/openssl.git
synced 2024-12-27 06:21:43 +08:00
29 lines
436 B
Makefile
29 lines
436 B
Makefile
|
#
|
||
|
# To run the demos when linked with a shared library (default):
|
||
|
#
|
||
|
# LD_LIBRARY_PATH=../.. ./x25519
|
||
|
|
||
|
CFLAGS = -I../../include -g -Wall
|
||
|
LDFLAGS = -L../..
|
||
|
LDLIBS = -lcrypto
|
||
|
|
||
|
TESTS=x25519
|
||
|
|
||
|
all: $(TESTS)
|
||
|
|
||
|
%.o: %.c
|
||
|
$(CC) $(CFLAGS) -c $<
|
||
|
|
||
|
%x25519: %x25519.o
|
||
|
|
||
|
.PHONY: test
|
||
|
test: all
|
||
|
@echo "\nKeyExchange tests:"
|
||
|
@set -e; for tst in $(TESTS); do \
|
||
|
echo "\n"$$tst; \
|
||
|
LD_LIBRARY_PATH=../.. ./$$tst; \
|
||
|
done
|
||
|
|
||
|
clean:
|
||
|
$(RM) *.o $(TESTS)
|