Home | History | Annotate | Line # | Download | only in keyexch
      1  1.1  christos #
      2  1.1  christos # To run the demos when linked with a shared library (default) ensure
      3  1.1  christos # that libcrypto is on the library path. For example:
      4  1.1  christos #
      5  1.1  christos #    LD_LIBRARY_PATH=../.. ./x25519
      6  1.1  christos 
      7  1.1  christos TESTS = x25519 ecdh
      8  1.1  christos 
      9  1.1  christos CFLAGS  = -I../../include -g -Wall
     10  1.1  christos LDFLAGS = -L../..
     11  1.1  christos LDLIBS  = -lcrypto
     12  1.1  christos 
     13  1.1  christos all: $(TESTS)
     14  1.1  christos 
     15  1.1  christos x25519: x25519.o
     16  1.1  christos ecdh: ecdh.o
     17  1.1  christos 
     18  1.1  christos $(TESTS):
     19  1.1  christos 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
     20  1.1  christos 
     21  1.1  christos clean:
     22  1.1  christos 	$(RM) *.o $(TESTS)
     23  1.1  christos 
     24  1.1  christos .PHONY: test
     25  1.1  christos test: all
     26  1.1  christos 	@echo "\nKeyExchange tests:"
     27  1.1  christos 	@set -e; for tst in $(TESTS); do \
     28  1.1  christos 		echo "\n"$$tst; \
     29  1.1  christos 		LD_LIBRARY_PATH=../.. ./$$tst; \
     30  1.1  christos 	done
     31