2023-06-02 23:31:30 +08:00
|
|
|
#
|
2023-06-08 23:36:17 +08:00
|
|
|
# To run the demos when linked with a shared library (default) ensure that
|
2023-11-11 03:02:00 +08:00
|
|
|
# libcrypto and libssl are on the library path. For example:
|
2023-06-02 23:31:30 +08:00
|
|
|
#
|
2023-11-11 03:02:00 +08:00
|
|
|
# LD_LIBRARY_PATH=../.. ./tls-client-block www.example.com 443
|
2023-06-02 23:31:30 +08:00
|
|
|
|
2023-11-11 03:02:00 +08:00
|
|
|
TESTS = tls-client-block \
|
|
|
|
quic-client-block \
|
|
|
|
quic-multi-stream \
|
|
|
|
tls-client-non-block \
|
|
|
|
quic-client-non-block
|
2023-06-02 23:31:30 +08:00
|
|
|
|
2023-11-11 03:02:00 +08:00
|
|
|
CFLAGS = -I../../include -g -Wall
|
|
|
|
LDFLAGS = -L../..
|
|
|
|
LDLIBS = -lcrypto -lssl
|
2023-06-08 23:36:17 +08:00
|
|
|
|
2023-11-11 03:02:00 +08:00
|
|
|
all: $(TESTS)
|
2023-08-14 22:40:52 +08:00
|
|
|
|
2023-11-11 03:02:00 +08:00
|
|
|
tls-client-block: tls-client-block.o
|
|
|
|
quic-client-block: quic-client-block.o
|
|
|
|
quic-multi-stream: quic-multi-stream.o
|
|
|
|
tls-client-non-block: tls-client-non-block.o
|
|
|
|
quic-client-non-block: quic-client-non-block.o
|
2023-08-24 16:14:21 +08:00
|
|
|
|
2023-11-11 03:02:00 +08:00
|
|
|
$(TESTS):
|
2023-08-25 20:44:14 +08:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
|
|
|
|
|
2023-06-02 23:31:30 +08:00
|
|
|
clean:
|
2023-11-11 03:02:00 +08:00
|
|
|
$(RM) $(TESTS) *.o
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test: all
|
|
|
|
@echo "\nTLS and QUIC tests:"
|
|
|
|
@echo "skipped"
|