blob: 7db6f085c59efb79d0cc01adb5d499b4ef95c2a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#
# To run the demo when linked with a shared library (default) ensure that
# libcrypto and libssl are on the library path. For example:
#
# LD_LIBRARY_PATH=../.. ./server 4444 \
# ../../test/certs/servercert.pem \
# ../../test/certs/serverkey.pem
#
CFLAGS += -I../../../include -g -Wall -Wsign-compare
LDFLAGS += -L../../..
LDLIBS = -lcrypto -lssl
.PHONY: all server clean run s_client
all: server
server: server.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
clean:
$(RM) server *.o
run: server
LD_LIBRARY_PATH=../../.. ./server 4444 \
../../../test/certs/servercert.pem \
../../../test/certs/serverkey.pem
s_client:
LD_LIBRARY_PATH=../../.. ../../../apps/openssl \
s_client -quic -quiet -alpn ossltest -connect 127.0.0.1:4444 || true
|