Skip to content
Snippets Groups Projects
Commit 5d3ef797 authored by Andre Maroneze's avatar Andre Maroneze Committed by Virgile Prevosto
Browse files

[analysis-scripts] refactor template to reuse FRAMAC_SHARE

parent 93eb16d0
No related branches found
No related tags found
No related merge requests found
...@@ -31,11 +31,6 @@ makefile_dir := $(dir $(lastword $(MAKEFILE_LIST))) ...@@ -31,11 +31,6 @@ makefile_dir := $(dir $(lastword $(MAKEFILE_LIST)))
# Improves analysis time, at the cost of extra memory usage # Improves analysis time, at the cost of extra memory usage
export FRAMA_C_MEMORY_FOOTPRINT = 8 export FRAMA_C_MEMORY_FOOTPRINT = 8
# FRAMAC is defined in path.mk when it is included, so the
# line below will be safely ignored if this is the case.
# Otherwise, the user may supply it to indicate which Frama-C binary to use.
FRAMAC ?= frama-c
# analysis.mk contains the main rules and targets # analysis.mk contains the main rules and targets
include $(makefile_dir)/analysis.mk include $(makefile_dir)/analysis.mk
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
# an optional include, unnecessary if frama-c is in the PATH. # an optional include, unnecessary if frama-c is in the PATH.
FRAMAC ?= frama-c # FRAMAC is defined in path.mk when it is included, but the FRAMAC ?= frama-c # FRAMAC is defined in path.mk when it is included, but the
# user can override it in the command-line. # user can override it in the command-line.
include $(shell $(FRAMAC)-config -print-share-path)/analysis-scripts/prologue.mk FRAMAC_SHARE ?= $(shell $(FRAMAC)-config -print-share-path)
include $(FRAMAC_SHARE)/analysis-scripts/prologue.mk
############################################################################### ###############################################################################
# Edit below as needed. Suggested flags are optional. # Edit below as needed. Suggested flags are optional.
...@@ -38,5 +39,5 @@ main.parse: \ ...@@ -38,5 +39,5 @@ main.parse: \
main.c \ main.c \
### Epilogue. Do not modify this block. ####################################### ### Epilogue. Do not modify this block. #######################################
include $(shell $(FRAMAC)-config -print-share-path)/analysis-scripts/epilogue.mk include $(FRAMAC_SHARE)/analysis-scripts/prologue.mk
############################################################################### ###############################################################################
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
# an optional include, unnecessary if frama-c is in the PATH. # an optional include, unnecessary if frama-c is in the PATH.
FRAMAC ?= frama-c # FRAMAC is defined in path.mk when it is included, but the FRAMAC ?= frama-c # FRAMAC is defined in path.mk when it is included, but the
# user can override it in the command-line. # user can override it in the command-line.
include $(shell $(FRAMAC)-config -print-share-path)/analysis-scripts/prologue.mk FRAMAC_SHARE ?= $(shell $(FRAMAC)-config -print-share-path)
include $(FRAMAC_SHARE)/analysis-scripts/prologue.mk
############################################################################### ###############################################################################
# Edit below as needed. Suggested flags are optional. # Edit below as needed. Suggested flags are optional.
...@@ -45,5 +46,5 @@ fc_script_main.parse: \ ...@@ -45,5 +46,5 @@ fc_script_main.parse: \
../main3.c \ ../main3.c \
### Epilogue. Do not modify this block. ####################################### ### Epilogue. Do not modify this block. #######################################
include $(shell $(FRAMAC)-config -print-share-path)/analysis-scripts/epilogue.mk include $(FRAMAC_SHARE)/analysis-scripts/prologue.mk
############################################################################### ###############################################################################
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment