1# 2# To run the demo 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=../.. ./ossl-nghttp3-demo www.example.com:443 6 7# when using gcc the below CFLAGS make sure you follow most of the rules of OpenSSL coding style. 8#CFLAGS += -I../../include -g -Wall -Wsign-compare -std=c90 -pedantic -pedantic-errors -Wno-long-long 9 10CFLAGS += -I../../include -g -Wall -Wsign-compare 11LDFLAGS += -L../.. 12LDLIBS = -lcrypto -lssl -lnghttp3 13 14all: ossl-nghttp3-demo ossl-nghttp3-demo-server 15 16ossl-nghttp3-demo: ossl-nghttp3-demo.o ossl-nghttp3.o 17 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) 18 19ossl-nghttp3-demo-server: ossl-nghttp3-demo-server.o ossl-nghttp3.o 20 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) 21 22clean: 23 $(RM) ossl-nghttp3-demo ossl-nghttp3-demo-server *.o 24 25.PHONY: test 26test: all 27 @echo "\nHTTP/3 tests:" 28 @echo "skipped" 29