aboutsummaryrefslogtreecommitdiffstats
path: root/demos/http3/Makefile
blob: 9d8212ff0a87b6470df73eede14aa3a65184de26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# 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=../.. ./ossl-nghttp3-demo www.example.com:443

CFLAGS  = -I../../include -g -Wall -Wsign-compare
LDFLAGS = -L../..
LDLIBS  = -lcrypto -lssl -lnghttp3

all: ossl-nghttp3-demo

clean:
	$(RM) ossl-nghttp3-demo *.o

ossl-nghttp3-demo: ossl-nghttp3-demo.o ossl-nghttp3.o
	$(CC) $(CFLAGS) -o "$@" $^ $(LDFLAGS) $(LDLIBS)

%.o: %.c
	$(CC) $(CFLAGS) -c -o "$@" "$<"