Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # See LICENSE for licensing information.
  2. PROJECT = cowboy
  3. PROJECT_DESCRIPTION = Small, fast, modern HTTP server.
  4. PROJECT_VERSION = 2.0.0-pre.7
  5. PROJECT_REGISTERED = cowboy_clock
  6. # Options.
  7. COMPILE_FIRST = cowboy_middleware cowboy_stream cowboy_sub_protocol
  8. PLT_APPS = public_key ssl
  9. CT_OPTS += -ct_hooks cowboy_ct_hook [] # -boot start_sasl
  10. CI_OTP ?= OTP-18.0.3 OTP-18.1.5 OTP-18.2.4.1 OTP-18.3.4.5 OTP-19.0.7 OTP-19.1.6 OTP-19.2.3
  11. CI_HIPE ?= $(lastword $(CI_OTP))
  12. CI_ERLLVM ?= $(CI_HIPE)
  13. # Dependencies.
  14. LOCAL_DEPS = crypto
  15. DEPS = cowlib ranch
  16. dep_cowlib = git https://github.com/ninenines/cowlib master
  17. dep_ranch = git https://github.com/ninenines/ranch 1.3.0
  18. DOC_DEPS = asciideck
  19. TEST_DEPS = ct_helper gun
  20. dep_ct_helper = git https://github.com/extend/ct_helper master
  21. dep_gun = git https://github.com/ninenines/gun master
  22. # Standard targets.
  23. include erlang.mk
  24. # Compile options.
  25. ERLC_OPTS += +warn_export_all +warn_missing_spec +warn_untyped_record
  26. TEST_ERLC_OPTS += +'{parse_transform, eunit_autoexport}'
  27. # Generate rebar.config on build.
  28. app:: rebar.config
  29. # Also dialyze the tests.
  30. # DIALYZER_OPTS += --src -r test
  31. # Use erl_make_certs from the tested release.
  32. ci-setup:: clean deps test-deps
  33. $(gen_verbose) cp ~/.kerl/builds/$(CI_OTP_RELEASE)/otp_src_git/lib/ssl/test/erl_make_certs.erl deps/ct_helper/src/