Home | History | Annotate | Line # | Download | only in http3
Makefile revision 1.1
      1  1.1  christos #
      2  1.1  christos # To run the demo when linked with a shared library (default) ensure that
      3  1.1  christos # libcrypto and libssl are on the library path. For example:
      4  1.1  christos #
      5  1.1  christos #    LD_LIBRARY_PATH=../.. ./ossl-nghttp3-demo www.example.com:443
      6  1.1  christos 
      7  1.1  christos # when using gcc the below CFLAGS make sure you follow most of the rules of OpenSSL coding style.
      8  1.1  christos #CFLAGS  += -I../../include -g -Wall -Wsign-compare -std=c90 -pedantic -pedantic-errors -Wno-long-long
      9  1.1  christos 
     10  1.1  christos CFLAGS  += -I../../include -g -Wall -Wsign-compare
     11  1.1  christos LDFLAGS += -L../..
     12  1.1  christos LDLIBS  = -lcrypto -lssl -lnghttp3
     13  1.1  christos 
     14  1.1  christos all: ossl-nghttp3-demo ossl-nghttp3-demo-server
     15  1.1  christos 
     16  1.1  christos ossl-nghttp3-demo: ossl-nghttp3-demo.o ossl-nghttp3.o
     17  1.1  christos 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
     18  1.1  christos 
     19  1.1  christos ossl-nghttp3-demo-server: ossl-nghttp3-demo-server.o ossl-nghttp3.o
     20  1.1  christos 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
     21  1.1  christos 
     22  1.1  christos clean:
     23  1.1  christos 	$(RM) ossl-nghttp3-demo ossl-nghttp3-demo-server *.o
     24  1.1  christos 
     25  1.1  christos .PHONY: test
     26  1.1  christos test: all
     27  1.1  christos 	@echo "\nHTTP/3 tests:"
     28  1.1  christos 	@echo "skipped"
     29