Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down
9 changes: 9 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
=================

Expand Down