| 1 |
# -*- mode: makefile -*- |
| 2 |
# The first line sets the emacs major mode to Makefile |
| 3 |
|
| 4 |
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 5 |
# SPDX-License-Identifier: Apache-2.0 |
| 6 |
|
| 7 |
################################################################ |
| 8 |
# Use this file to give project-specific definitions of the command |
| 9 |
# line arguments to pass to CBMC tools like goto-cc to build the goto |
| 10 |
# binaries and cbmc to do the property and coverage checking. |
| 11 |
# |
| 12 |
# Use this file to override most default definitions of variables in |
| 13 |
# Makefile.common. |
| 14 |
################################################################ |
| 15 |
|
| 16 |
# Flags to pass to goto-cc for compilation (typically those passed to gcc -c) |
| 17 |
# COMPILE_FLAGS = |
| 18 |
|
| 19 |
# Flags to pass to goto-cc for linking (typically those passed to gcc) |
| 20 |
# LINK_FLAGS = |
| 21 |
|
| 22 |
|
| 23 |
# Preprocessor include paths -I... |
| 24 |
# Consider adding |
| 25 |
# INCLUDES += -I$(CBMC_ROOT)/include |
| 26 |
# You will want to decide what order that comes in relative to the other |
| 27 |
# include directories in your project. |
| 28 |
# |
| 29 |
INCLUDES += -I$(CBMC_ROOT)/include |
| 30 |
INCLUDES += -I$(SRCDIR)/include |
| 31 |
|
| 32 |
|
| 33 |
# Preprocessor definitions -D... |
| 34 |
|
| 35 |
# Enables costly checks (e.g. ones that contain loops). |
| 36 |
# Don't execute deep checks by default. |
| 37 |
AWS_DEEP_CHECKS ?= 0 |
| 38 |
DEFINES += -DAWS_DEEP_CHECKS=$(AWS_DEEP_CHECKS) |
| 39 |
|
| 40 |
|
| 41 |
# Extra CBMC flags not enabled by Makefile.common |
| 42 |
# CHECKFLAGS += --enum-range-check |
| 43 |
CHECKFLAGS += --pointer-primitive-check |
| 44 |
|
| 45 |
|
| 46 |
# We override abort() to be assert(0), as it is not caught by |
| 47 |
# CBMC as a violation |
| 48 |
PROOF_SOURCES += $(PROOF_STUB)/abort_override_assert_false.c |
| 49 |
REMOVE_FUNCTION_BODY += abort |