Debian Codegraph @

share/analysis-scripts/template.mk

raw
1 # Makefile template for Frama-C/Eva case studies.
2 # For details and usage information, see the Frama-C User Manual.
3
4 ### Prologue. Do not modify this block. #######################################
5 -include path.mk # path.mk contains variables specific to each user
6 # (e.g. FRAMAC, FRAMAC_GUI) and should not be versioned. It is
7 # an optional include, unnecessary if frama-c is in the PATH.
8 FRAMAC ?= frama-c # FRAMAC is defined in path.mk when it is included, but the
9 # user can override it in the command-line.
10 ifeq ($(FRAMAC_SHARE),)
11 FRAMAC_SHARE := $(shell $(FRAMAC)-config -print-share-path)
12 endif
13 include $(FRAMAC_SHARE)/analysis-scripts/prologue.mk
14 ###############################################################################
15
16 # Edit below as needed. Suggested flags are optional.
17
18 MACHDEP = x86_64
19
20 ## Preprocessing flags (for -cpp-extra-args)
21 CPPFLAGS += \
22
23 ## General flags
24 FCFLAGS += \
25 -add-symbolic-path=..:. \
26 -kernel-warn-key annot:missing-spec=abort \
27 -kernel-warn-key typing:implicit-function-declaration=abort \
28
29 ## Eva-specific flags
30 EVAFLAGS += \
31 -eva-warn-key builtins:missing-spec=abort \
32
33 ## WP-specific flags
34 WPFLAGS += \
35
36 ## GUI-only flags
37 FCGUIFLAGS += \
38
39 ## Analysis targets (suffixed with .eva)
40 TARGETS = main.eva
41
42 ### Each target <t>.eva needs a rule <t>.parse with source files as prerequisites
43 main.parse: \
44 main.c \
45
46 ### Epilogue. Do not modify this block. #######################################
47 include $(FRAMAC_SHARE)/analysis-scripts/epilogue.mk
48 ###############################################################################