Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
5d3ef797
Commit
5d3ef797
authored
3 years ago
by
Andre Maroneze
Committed by
Virgile Prevosto
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[analysis-scripts] refactor template to reuse FRAMAC_SHARE
parent
93eb16d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
share/analysis-scripts/prologue.mk
+0
-5
0 additions, 5 deletions
share/analysis-scripts/prologue.mk
share/analysis-scripts/template.mk
+3
-2
3 additions, 2 deletions
share/analysis-scripts/template.mk
tests/fc_script/oracle/GNUmakefile
+3
-2
3 additions, 2 deletions
tests/fc_script/oracle/GNUmakefile
with
6 additions
and
9 deletions
share/analysis-scripts/prologue.mk
+
0
−
5
View file @
5d3ef797
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
share/analysis-scripts/template.mk
+
3
−
2
View file @
5d3ef797
...
@@ -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/
epi
logue.mk
include
$(
FRAMAC_SHARE
)/analysis-scripts/
pro
logue.mk
###############################################################################
###############################################################################
This diff is collapsed.
Click to expand it.
tests/fc_script/oracle/GNUmakefile
+
3
−
2
View file @
5d3ef797
...
@@ -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/
epi
logue.mk
include
$(
FRAMAC_SHARE
)/analysis-scripts/
pro
logue.mk
###############################################################################
###############################################################################
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment