summaryrefslogtreecommitdiffstats
path: root/demos/keyexch/Makefile
blob: 24243e13a4a62a1df329a73163785af4426c79a4 (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=../.. ./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)