blob: 6d4e0606685ed0ada46afe209b8a08d5f1100c14 (
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
|
#
# To run the demos when linked with a shared library (default):
#
# LD_LIBRARY_PATH=../.. ./rsa_encrypt
CFLAGS = -I../../include -g
LDFLAGS = -L../..
LDLIBS = -lcrypto
TESTS=rsa_encrypt
all: $(TESTS)
%.o: %.c
$(CC) $(CFLAGS) -c $<
rsa_encrypt: rsa_encrypt.o
clean:
$(RM) *.o $(TESTS)
.PHONY: test
test: all
@echo "\nEncrypt tests:"
@set -e; for tst in $(TESTS); do \
echo "\n"$$tst; \
LD_LIBRARY_PATH=../.. ./$$tst; \
done
|