Makefile 811 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # To run the demos when linked with a shared library (default) ensure that
  3. # libcrypto and libssl are on the library path. For example:
  4. #
  5. # LD_LIBRARY_PATH=../.. ./tls-client-block www.example.com 443
  6. TESTS = tls-client-block \
  7. quic-client-block \
  8. quic-multi-stream \
  9. tls-client-non-block \
  10. quic-client-non-block
  11. CFLAGS = -I../../include -g -Wall
  12. LDFLAGS = -L../..
  13. LDLIBS = -lcrypto -lssl
  14. all: $(TESTS)
  15. tls-client-block: tls-client-block.o
  16. quic-client-block: quic-client-block.o
  17. quic-multi-stream: quic-multi-stream.o
  18. tls-client-non-block: tls-client-non-block.o
  19. quic-client-non-block: quic-client-non-block.o
  20. $(TESTS):
  21. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
  22. clean:
  23. $(RM) $(TESTS) *.o
  24. .PHONY: test
  25. test: all
  26. @echo "\nTLS and QUIC tests:"
  27. @echo "skipped"