Makefile-project-defines 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # -*- mode: makefile -*-
  2. # The first line sets the emacs major mode to Makefile
  3. ################################################################
  4. # Use this file to give project-specific definitions of the command
  5. # line arguments to pass to CBMC tools like goto-cc to build the goto
  6. # binaries and cbmc to do the property and coverage checking.
  7. #
  8. # Use this file to override most default definitions of variables in
  9. # Makefile.common.
  10. ################################################################
  11. # Flags to pass to goto-cc for compilation (typically those passed to gcc -c)
  12. COMPILE_FLAGS += -fPIC
  13. COMPILE_FLAGS += -std=gnu90
  14. # Path to litani executable, used for running proofs and displaying report
  15. LITANI ?= litani
  16. PROJECT_NAME = "FreeRTOS coreMQTT"
  17. # Flags to pass to goto-cc for linking (typically those passed to gcc)
  18. LINK_FLAGS =
  19. # Preprocessor include paths -I...
  20. INCLUDES += -I$(SRCDIR)/test/cbmc/include
  21. INCLUDES += -I$(SRCDIR)/source/include
  22. INCLUDES += -I$(SRCDIR)/source/src
  23. INCLUDES += -I$(SRCDIR)/source/interface
  24. # Preprocessor definitions -D...
  25. DEFINES += -Dmqtt_EXPORTS
  26. # Use the external solver kissat for property checking if it is available,
  27. # because it is much faster than the default solver minisat on MQTT.
  28. ifneq ($(shell which kissat),)
  29. EXTERNAL_SAT_SOLVER ?= kissat
  30. endif