diff options
Diffstat (limited to 'demos/keyexch/Makefile')
-rw-r--r-- | demos/keyexch/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/demos/keyexch/Makefile b/demos/keyexch/Makefile new file mode 100644 index 0000000..24243e1 --- /dev/null +++ b/demos/keyexch/Makefile @@ -0,0 +1,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) |