Makefile 909 B

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