Debian Codegraph @

crt/s2n/tests/cbmc/proofs/Makefile-project-defines

raw
1 # -*- mode: makefile -*-
2 # The first line sets the emacs major mode to Makefile
3
4
5 ################################################################
6 # Use this file to give project-specific definitions of the command
7 # line arguments to pass to CBMC tools like goto-cc to build the goto
8 # binaries and cbmc to do the property and coverage checking.
9 #
10 # Use this file to override most default definitions of variables in
11 # Makefile.common.
12 ################################################################
13
14 # Flags to pass to goto-cc for compilation (typically those passed to gcc -c)
15 # COMPILE_FLAGS =
16
17 # Flags to pass to goto-cc for linking (typically those passed to gcc)
18 # LINK_FLAGS =
19
20 # Preprocessor include paths -I...
21 INCLUDES += -I$(CBMC_ROOT)/include
22 INCLUDES += -I$(CBMC_ROOT)/aws-verification-model-for-libcrypto/include
23 INCLUDES += -I$(SRCDIR)
24 INCLUDES += -I$(SRCDIR)/api
25 INCLUDES += -I$(SRCDIR)/crypto
26
27 # Include the s2n_prelude for macros like S2N_MIN/S2N_MAX
28 COMPILE_FLAGS += -include $(SRCDIR)/utils/s2n_prelude.h
29
30 # OpenSSL Model Source
31 OPENSSL_SOURCE = $(CBMC_ROOT)/aws-verification-model-for-libcrypto/source
32
33 # Preprocessor definitions -D...
34
35 # Whether a proof needs these checks should be decided on a proof by proof basis.
36 # Checks can be enabled by setting AWS_DEEP_CHECKS to 1 in the makefile
37 # of the proof that requires them
38 AWS_DEEP_CHECKS ?= 0
39 DEFINES += -DAWS_DEEP_CHECKS=$(AWS_DEEP_CHECKS)
40
41 # Extra CBMC flags not enabled by Makefile.common
42 # CHECKFLAGS += --enum-range-check
43 CHECKFLAGS += --pointer-primitive-check
44
45 ################################################################
46 # Remove function bodies that are not used in the proofs.
47 # Removing the function from the goto program helps CBMC's
48 # function pointer analysis
49
50 # We override abort() to be assert(0)
51 PROOF_SOURCES += $(PROOF_STUB)/abort_override_assert_false.c
52
53 # Useful for setting unwind limits to one more than some value.
54 addone = $(shell echo $$(( $(1) + 1)))