Home | History | Annotate | Line # | Download | only in http3
      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 
     10 CFLAGS  += -I../../include -g -Wall -Wsign-compare
     11 LDFLAGS += -L../..
     12 LDLIBS  = -lcrypto -lssl -lnghttp3
     13 
     14 all: ossl-nghttp3-demo ossl-nghttp3-demo-server
     15 
     16 ossl-nghttp3-demo: ossl-nghttp3-demo.o ossl-nghttp3.o
     17 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
     18 
     19 ossl-nghttp3-demo-server: ossl-nghttp3-demo-server.o ossl-nghttp3.o
     20 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
     21 
     22 clean:
     23 	$(RM) ossl-nghttp3-demo ossl-nghttp3-demo-server *.o
     24 
     25 .PHONY: test
     26 test: all
     27 	@echo "\nHTTP/3 tests:"
     28 	@echo "skipped"
     29