]> git.ipfire.org Git - thirdparty/openssl.git/blob - demos/guide/Makefile
demos: tidy up makefiles, fix warnings
[thirdparty/openssl.git] / demos / guide / Makefile
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
7 TESTS = tls-client-block \
8 quic-client-block \
9 quic-multi-stream \
10 tls-client-non-block \
11 quic-client-non-block
12
13 CFLAGS = -I../../include -g -Wall
14 LDFLAGS = -L../..
15 LDLIBS = -lcrypto -lssl
16
17 all: $(TESTS)
18
19 tls-client-block: tls-client-block.o
20 quic-client-block: quic-client-block.o
21 quic-multi-stream: quic-multi-stream.o
22 tls-client-non-block: tls-client-non-block.o
23 quic-client-non-block: quic-client-non-block.o
24
25 $(TESTS):
26 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
27
28 clean:
29 $(RM) $(TESTS) *.o
30
31 .PHONY: test
32 test: all
33 @echo "\nTLS and QUIC tests:"
34 @echo "skipped"