diff --git a/Makefile b/Makefile index c51b3e95..ed3bc4c0 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,13 @@ LLQUEUE_DIR = $(CONTRIB_DIR)/CLinkedListQueue VPATH = src GCOV_OUTPUT = *.gcda *.gcno *.gcov + +ifdef RAFT_PRODUCTION +GCOV_CCFLAGS = +else GCOV_CCFLAGS = -fprofile-arcs -ftest-coverage +endif + SHELL = /bin/bash CFLAGS += -Iinclude -Werror -Werror=return-type -Werror=uninitialized -Wcast-align \ -Wno-pointer-sign -fno-omit-frame-pointer -fno-common -fsigned-char \ @@ -14,7 +20,13 @@ CFLAGS += -Iinclude -Werror -Werror=return-type -Werror=uninitialized -Wcast-ali UNAME := $(shell uname) ifeq ($(UNAME), Darwin) + +ifdef RAFT_PRODUCTION +ASANFLAGS = +else ASANFLAGS = -fsanitize=address +endif + SHAREDFLAGS = -dynamiclib SHAREDEXT = dylib # We need to include the El Capitan specific /usr/includes, aargh diff --git a/README.rst b/README.rst index 256c9a04..1a89972d 100644 --- a/README.rst +++ b/README.rst @@ -17,11 +17,20 @@ There are no dependencies, however https://github.com/willemt/linked-List-queue Building ======== +For debugging/development: + .. code-block:: bash :class: ignore make tests +For production (to omit coverage & debugging tools): + +.. code-block:: bash + :class: ignore + + RAFT_PRODUCTION=1 make + Quality Assurance =================